blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
c4c34d1ec8625d2bd6f29a74bb5269300859070a
d5749c8baa3c653f7fb8a6006a0776306cd3cfca
/ClassAccessModifiers.cpp
c0a3a6c428767f4652df5b86215c66c4f6529bf1
[]
no_license
kupull74/test_c--
dd2d714501924a3592a9af121c425a09ffc94f4b
06567488268cdcde1f23c84e439f4e2e4e2ab095
refs/heads/master
2023-01-23T03:57:31.883412
2020-11-27T01:14:39
2020-11-27T01:14:39
311,860,275
0
0
null
null
null
null
UTF-8
C++
false
false
794
cpp
#include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <iostream> using namespace std; #include <dirent.h> #include <stdlib.h> #include <fcntl.h> class Box { public: double length; void setWidth(double param_width) { width = param_width; } double getWidth(void); void setLength(double length) { this->length = length; }; private: double width; }; double Box::getWidth(void) { return width; } // Scope resolution operator (::) int main() { Box BoxSecond; // Declare BoxSecond of type Box BoxSecond.setWidth(1324524524350.0); BoxSecond.length = 121345134513451.0; // volume = BoxSecond.width * BoxSecond.length; // Error double volume = BoxSecond.getWidth() * BoxSecond.length; cout << "Volume of BoxSecond : " << volume << endl; // Volume of BoxSecond : 2.65133e-313 return 0; }
[ "kupull@naver.com" ]
kupull@naver.com
f21d4a87cd24840f53eddfbcba7137d63a68a197
36be138bc6934a178df3af618bba04f9d5e10993
/chapter03/listing_3.2.cpp
c4d356bc7517917245513fcd199728e1df48b3b8
[]
no_license
Galibier/CppConcurrencyInAction
efb8c4968daa763f5e393e30c6eef98e04ad95f8
3779862da5628b22e7f8eefbc6e557055386e674
refs/heads/master
2021-05-13T11:36:41.928077
2020-07-15T16:21:08
2020-07-15T16:21:08
117,133,079
0
0
null
null
null
null
UTF-8
C++
false
false
523
cpp
#include <mutex> class some_data { int a; std::string b; public: void do_something() {} }; class data_wrapper { private: some_data data; std::mutex m; public: template<typename Function> void process_data(Function func) { std::lock_guard<std::mutex> l(m); func(data); } }; some_data* unprotected; void malicious_function(some_data& protected_data) { unprotected = &protected_data; } data_wrapper x; void foo() { x.process_data(malicious_function); unprotected->do_something(); } int main() { foo(); }
[ "cx.sjtu@gmail.com" ]
cx.sjtu@gmail.com
a0ed5b92e3c61d0238f49037b4a156fc33cf4097
4e8a440699ad4dfca23ea7bc4f8727c91e506220
/Bitmap/Bitmap/bitmap.h
d9c5b25958e18e370d9713a3ea40403b4811efff
[]
no_license
Wolfgangwgb/Code
3f3910e3298fcea8d768197c53d2c52337bb007f
352b4c3f39ac44ed163262cf047836714ac0aa93
refs/heads/master
2021-01-22T10:46:04.262041
2017-09-13T13:23:57
2017-09-13T13:23:57
92,653,587
1
1
null
null
null
null
GB18030
C++
false
false
694
h
#pragma once #include<vector> #include<iostream> class Bitmap { public: Bitmap(size_t size = 1024) { _vt.resize((size>>5)+1); } //设置某个数的位置1 void Set(size_t num) { size_t index = num >> 5; size_t pos = num % 32; _vt[index] |= (1 << pos);//从右至左依次增大 //_vt[index] |= (1<<(31-pos));//从左至右依次增大 } //设置某个数的位置为0 void Reset(size_t num) { size_t index = num >> 5; size_t pos = num % 32; _vt[index] &= (~(1 << pos)); } //判断一个数是否存在 bool Exist(size_t num) { size_t index = num >> 5; size_t pos = num % 32; return _vt[index] & (1 << pos); } private: std::vector<size_t> _vt; };
[ "handsomewgb@163.com" ]
handsomewgb@163.com
566cef640d403beef8410fa105384b2b220d56c4
6ce5b9e43eba4c66474edc3d40b505596643c996
/src/Interface/Application/GuiCommands.cc
67650a255b1f965ad1bbf28e9c3823ee31e65b5a
[ "MIT" ]
permissive
behollis/SCIRun
3312ccacd40bd583984f8d5b324ffd1305c2af60
59b92359dfab3a9bf300a49f5021850b35380b97
refs/heads/master
2021-01-18T08:33:09.905788
2016-05-20T21:21:23
2016-05-20T21:21:23
59,523,881
0
0
null
2016-05-23T22:55:31
2016-05-23T22:55:31
null
UTF-8
C++
false
false
10,376
cc
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <QtGui> #include <numeric> #include <Core/Algorithms/Base/AlgorithmVariableNames.h> #include <Core/Application/Application.h> #include <Core/Application/Preferences/Preferences.h> #include <Interface/Application/SCIRunMainWindow.h> #include <Interface/Application/GuiCommands.h> #include <Interface/Application/GuiLogger.h> #include <Interface/Application/NetworkEditor.h> // ReSharper disable once CppUnusedIncludeDirective #include <Interface/Application/NetworkEditorControllerGuiProxy.h> #include <Dataflow/Serialization/Network/XMLSerializer.h> #include <Dataflow/Serialization/Network/NetworkDescriptionSerialization.h> #include <Dataflow/Serialization/Network/Importer/NetworkIO.h> #include <Dataflow/Engine/Controller/NetworkEditorController.h> #include <Interface/Application/Utility.h> #include <Core/Logging/Log.h> #include <boost/range/adaptors.hpp> #include <boost/algorithm/string.hpp> #include <Core/Utils/CurrentFileName.h> using namespace SCIRun::Gui; using namespace SCIRun::Core; using namespace Commands; using namespace SCIRun::Dataflow::Networks; using namespace Algorithms; LoadFileCommandGui::LoadFileCommandGui() { addParameter(Name("FileNum"), 0); addParameter(Variables::Filename, std::string()); } bool LoadFileCommandGui::execute() { std::string inputFile; auto inputFilesFromCommandLine = Application::Instance().parameters()->inputFiles(); if (!inputFilesFromCommandLine.empty()) inputFile = inputFilesFromCommandLine[index_]; else { inputFile = get(Variables::Filename).toFilename().string(); if (mostRecentFileCode() == inputFile) inputFile = SCIRunMainWindow::Instance()->mostRecentFile().toStdString(); } return SCIRunMainWindow::Instance()->loadNetworkFile(QString::fromStdString(inputFile)); } bool ExecuteCurrentNetworkCommandGui::execute() { SCIRunMainWindow::Instance()->executeAll(); return true; } static const AlgorithmParameterName RunningPython("RunningPython"); QuitAfterExecuteCommandGui::QuitAfterExecuteCommandGui() { addParameter(RunningPython, false); } bool QuitAfterExecuteCommandGui::execute() { if (get(RunningPython).toBool()) SCIRunMainWindow::Instance()->skipSaveCheck(); SCIRunMainWindow::Instance()->setupQuitAfterExecute(); return true; } QuitCommandGui::QuitCommandGui() { addParameter(RunningPython, false); } bool QuitCommandGui::execute() { if (get(RunningPython).toBool()) SCIRunMainWindow::Instance()->skipSaveCheck(); SCIRunMainWindow::Instance()->quit(); exit(0); return true; } bool ShowMainWindowGui::execute() { auto mainWin = SCIRunMainWindow::Instance(); mainWin->activateWindow(); mainWin->raise(); mainWin->show(); return true; } ShowSplashScreenGui::ShowSplashScreenGui() { initSplashScreen(); } bool ShowSplashScreenGui::execute() { splash_->show(); splashTimer_->start(); splash_->showMessage("Welcome! Tip: Press F1 and click anywhere in the interface for helpful hints.", Qt::AlignBottom, Qt::white); qApp->processEvents(); return true; } void ShowSplashScreenGui::initSplashScreen() { splash_ = new QSplashScreen(nullptr, QPixmap(":/general/Resources/scirun_5_0_alpha.png"), Qt::WindowStaysOnTopHint); splashTimer_ = new QTimer; splashTimer_->setSingleShot( true ); splashTimer_->setInterval( 5000 ); QObject::connect( splashTimer_, SIGNAL( timeout() ), splash_, SLOT( close() )); } QSplashScreen* ShowSplashScreenGui::splash_ = 0; QTimer* ShowSplashScreenGui::splashTimer_ = 0; namespace { template <class PointIter> QPointF centroidOfPointRange(PointIter begin, PointIter end) { QPointF sum = std::accumulate(begin, end, QPointF(), [](const QPointF& acc, const typename PointIter::value_type& point) { return acc + QPointF(point.first, point.second); }); size_t num = std::distance(begin, end); return sum / num; } QPointF findCenterOfNetworkFile(const NetworkFile& file) { return findCenterOfNetwork(file.modulePositions); } } QPointF SCIRun::Gui::findCenterOfNetwork(const ModulePositions& positions) { auto pointRange = positions.modulePositions | boost::adaptors::map_values; return centroidOfPointRange(pointRange.begin(), pointRange.end()); } const char* SCIRun::Gui::addNewModuleActionTypePropertyName() { return "connectNewModuleSource"; } const char* SCIRun::Gui::insertNewModuleActionTypePropertyName() { return "inputPortToConnectPid"; } namespace std { template <typename T1, typename T2> std::ostream& operator<<(std::ostream& o, const std::pair<T1,T2>& p) { return o << p.first << "," << p.second; } } bool NetworkFileProcessCommand::execute() { auto filename = get(Variables::Filename).toFilename().string(); GuiLogger::Instance().logInfo("Attempting load of " + QString::fromStdString(filename)); try { auto file = processXmlFile(filename); if (file) { auto load = boost::bind(&NetworkFileProcessCommand::guiProcess, this, file); if (Core::Application::Instance().parameters()->isRegressionMode()) { load(); } else { int numModules = static_cast<int>(file->network.modules.size()); QProgressDialog progress("Loading network " + QString::fromStdString(filename), QString(), 0, numModules + 1, SCIRunMainWindow::Instance()); progress.connect(networkEditor_->getNetworkEditorController().get(), SIGNAL(networkDoneLoading(int)), SLOT(setValue(int))); progress.setWindowModality(Qt::WindowModal); progress.show(); progress.setValue(0); //TODO: trying to load in a separate thread exposed problems with the signal/slots related to wiring up the GUI elements, // so I'll come back to this idea when there's time to refactor that part of the code (NEC::loadNetwork) //QFuture<int> future = QtConcurrent::run(load); //progress.setValue(future.result()); networkEditor_->setVisibility(false); progress.setValue(load()); networkEditor_->setVisibility(true); } file_ = file; QPointF center = findCenterOfNetworkFile(*file); networkEditor_->centerOn(center); GuiLogger::Instance().logInfoStd("File load done (" + filename + ")."); SCIRun::Core::setCurrentFileName(filename); return true; } GuiLogger::Instance().logErrorStd("File load failed (" + filename + "): null xml returned."); } catch (ExceptionBase& e) { GuiLogger::Instance().logErrorStd("File load failed (" + filename + "): exception in load_xml, " + e.what()); } catch (std::exception& ex) { GuiLogger::Instance().logErrorStd("File load failed(" + filename + "): exception in load_xml, " + ex.what()); } catch (...) { GuiLogger::Instance().logErrorStd("File load failed(" + filename + "): Unknown exception in load_xml."); } return false; } int NetworkFileProcessCommand::guiProcess(const NetworkFileHandle& file) { networkEditor_->clear(); networkEditor_->loadNetwork(file); return static_cast<int>(file->network.modules.size()) + 1; } NetworkFileHandle FileOpenCommand::processXmlFile(const std::string& filename) { return XMLSerializer::load_xml<NetworkFile>(filename); } NetworkFileHandle FileImportCommand::processXmlFile(const std::string& filename) { auto dtdpath = Core::Application::Instance().executablePath(); const auto& modFactory = Core::Application::Instance().controller()->moduleFactory(); LegacyNetworkIO lnio(dtdpath.string(), modFactory, logContents_); return lnio.load_net(filename); } bool RunPythonScriptCommandGui::execute() { auto script = Application::Instance().parameters()->pythonScriptFile().get(); SCIRunMainWindow::Instance()->runPythonScript(QString::fromStdString(script.string())); return true; } bool SetupDataDirectoryCommandGui::execute() { auto dir = Application::Instance().parameters()->dataDirectory().get(); LOG_DEBUG("Data dir set to: " << dir << std::endl); SCIRunMainWindow::Instance()->setDataDirectory(QString::fromStdString(dir.string())); return true; } NetworkSaveCommand::NetworkSaveCommand() { addParameter(Variables::Filename, std::string()); } bool NetworkSaveCommand::execute() { auto filename = get(Variables::Filename).toFilename().string(); auto fileNameWithExtension = filename; if (!boost::algorithm::ends_with(fileNameWithExtension, ".srn5")) fileNameWithExtension += ".srn5"; auto file = Application::Instance().controller()->saveNetwork(); XMLSerializer::save_xml(*file, fileNameWithExtension, "networkFile"); SCIRunMainWindow::Instance()->setCurrentFile(QString::fromStdString(fileNameWithExtension)); SCIRunMainWindow::Instance()->statusBar()->showMessage("File saved: " + QString::fromStdString(filename), 2000); GuiLogger::Instance().logInfo("File save done: " + QString::fromStdString(filename)); SCIRunMainWindow::Instance()->setWindowModified(false); SCIRun::Core::setCurrentFileName(filename); return true; } NetworkFileProcessCommand::NetworkFileProcessCommand() : networkEditor_(SCIRunMainWindow::Instance()->networkEditor()) { addParameter(Variables::Filename, std::string()); }
[ "dwhite@sci.utah.edu" ]
dwhite@sci.utah.edu
dad614d720e909483e33fc741a059ca00dedd2d9
67662fce6ea9265d5b413b26b1dc66e898afe35b
/motoman_driver/src/simple_message/motoman_read_group_io.cpp
83412eb152ecaf51ee90fa061d66c5c51bb85005
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
gavanderhoorn/motoman
71194335d4a08b662148bd41e0566da90f3f08c7
63e624215180110474e0d89289f7434eb961d3b0
refs/heads/kinetic-devel
2023-07-07T21:14:16.399614
2023-03-21T12:15:18
2023-03-21T12:15:18
15,493,825
2
8
null
2020-10-22T19:30:23
2013-12-28T14:46:31
C++
UTF-8
C++
false
false
3,350
cpp
/* * Software License Agreement (BSD License) * * Copyright (c) 2021, Delft Robotics Institute * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Delft Robotics Institute, nor the names * of its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * * \author G.A. vd. Hoorn (TU Delft Robotics Institute) */ #ifdef ROS #include "motoman_driver/simple_message/motoman_read_group_io.h" #include "simple_message/shared_types.h" #include "simple_message/log_wrapper.h" #endif #ifdef MOTOPLUS #include "motoman_read_group_io.h" // NOLINT(build/include) #include "shared_types.h" // NOLINT(build/include) #include "log_wrapper.h" // NOLINT(build/include) #endif using industrial::shared_types::shared_int; namespace motoman { namespace simple_message { namespace io_ctrl { ReadGroupIO::ReadGroupIO(void) { this->init(); } ReadGroupIO::~ReadGroupIO(void) { } void ReadGroupIO::init() { // TODO( ): is '0' a good initial value? this->init(0); } void ReadGroupIO::init(shared_int address) { this->setAddress(address); } void ReadGroupIO::copyFrom(ReadGroupIO &src) { this->setAddress(src.getAddress()); } bool ReadGroupIO::operator==(ReadGroupIO &rhs) { bool rslt = this->address_ == rhs.address_; return rslt; } bool ReadGroupIO::load(industrial::byte_array::ByteArray *buffer) { LOG_COMM("Executing ReadGroupIO command load"); if (!buffer->load(this->address_)) { LOG_ERROR("Failed to load ReadGroupIO address"); return false; } LOG_COMM("ReadGroupIO data successfully loaded"); return true; } bool ReadGroupIO::unload(industrial::byte_array::ByteArray *buffer) { LOG_COMM("Executing ReadGroupIO command unload"); if (!buffer->unload(this->address_)) { LOG_ERROR("Failed to unload ReadGroupIO address"); return false; } LOG_COMM("ReadGroupIO data successfully unloaded"); return true; } } // namespace io_ctrl } // namespace simple_message } // namespace motoman
[ "g.a.vanderhoorn@tudelft.nl" ]
g.a.vanderhoorn@tudelft.nl
419c3d5062ef56c189b48b0aca295782c6dcbd4e
9407be4a4eacde5b5af70b64eb6beaa7a7617994
/BottomRight-k-turns.cpp
e9664c311ec55dec6e026fde537ca6955af913ec
[]
no_license
ManoharKoya/CompetitiveProgramming
10fc919a4a2b7a0189362ddba9ce158299519dc9
495c56bf9269819650879ffaecd3cffbea5e6e83
refs/heads/master
2021-08-17T09:34:41.127010
2020-06-09T09:32:54
2020-06-09T09:32:54
192,003,774
1
0
null
null
null
null
UTF-8
C++
false
false
805
cpp
#include<bits/stdc++.h> #include<vector> #include<iterator> #define lli long long int #define MOD 1000000007 #define pb push_back #define INF 10000000007 #define NA(i,s,n) for(lli i=s;i<n;i++) using namespace std; lli n,m; bool isValid(lli i,lli j){ return (i>=0 && i<n && j>=0 && j<m); } lli totWays(lli i,lli j,lli k,bool isCOl){ // base and overflow conditions if(k==-1 || isValid(i,j)) return 0; if(k==0 && i==n-1 && j==m-1) return 1; // recursion if(isCOl==true){ return totWays(i+1,j,k,isCOl)+totWays(i,j+1,k-1,!isCOl); } return totWays(i+1,j,k-1,!isCOl)+totWays(i,j+1,k,isCOl); } lli totWays(lli i,lli j,lli k){ return totWays(i+1,j,k,true)+totWays(i,j+1,k,false); } int main(){ lli k; cin>>n>>m>>k; cout<<totWays(0,0,k)<<endl; return 0; }
[ "koyasairammanohar@gmail.com" ]
koyasairammanohar@gmail.com
d07cc0ef7a8fc60a167a206b474e3a7bd7e138bb
a491298aedc4e57053b1f3953ed856605c73d4b4
/apps/ide/model/cprojectmodel.h
e09b87225a49b6a90fcbd3bcfdec017f7533baec
[]
no_license
nesicide/nesicide
da8f03744c7fcd864fe5f688fe2d510d0811ea1b
84aea00f256e5d044f16a920db0e4552b7c96221
refs/heads/master
2021-01-18T08:57:44.624844
2013-01-25T03:40:45
2013-01-25T03:40:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,052
h
#ifndef CPROJECTMODEL_H #define CPROJECTMODEL_H #include "model/iuuidvisitor.h" #include <QObject> class CNesicideProject; class CAttributeModel; class CBinaryFileModel; class CCartridgeModel; class CFilterModel; class CGraphicsBankModel; class CSourceFileModel; class CTileStampModel; class CProjectModel : public QObject { Q_OBJECT signals: void itemAdded(const QUuid &item); void itemRemoved(const QUuid & item); void reset(); public: CProjectModel(); ~CProjectModel(); void setProject(CNesicideProject* project); // Retrieve a list of all Uuids present in the project. QList<QUuid> getUuids() const; // Accepts a IUuidVisitor that receives additional type information // for the given Uuid. This allows making choices on the type of // underlying data without exposing data outside of models. // Furthermore, this prevents chained calls to getModel->contains(uuid) // methods. void visitDataItem(const QUuid& uuid, IUuidVisitor& visitor); // Submodel retrieval. CAttributeModel* getAttributeModel() { return m_pAttributeModel; } CBinaryFileModel* getBinaryFileModel() { return m_pBinaryFileModel; } CCartridgeModel* getCartridgeModel() { return m_pCartridgeModel; } CFilterModel* getFilterModel() { return m_pFilterModel; } CGraphicsBankModel* getGraphicsBankModel() { return m_pGraphicsBankModel; } CSourceFileModel* getSourceFileModel() { return m_pSourceFileModel; } CTileStampModel* getTileStampModel() { return m_pTileStampModel; } private: CNesicideProject* m_pProject; CAttributeModel* m_pAttributeModel; CBinaryFileModel* m_pBinaryFileModel; CCartridgeModel* m_pCartridgeModel; CFilterModel* m_pFilterModel; CGraphicsBankModel* m_pGraphicsBankModel; CSourceFileModel* m_pSourceFileModel; CTileStampModel* m_pTileStampModel; private slots: void onItemAdded(const QUuid & item); void onItemRemoved(const QUuid & item); }; #endif // CPROJECTMODEL_H
[ "jsolo@web.de" ]
jsolo@web.de
10e5ff4c6f4a7fd39f3e13d2c5aaceebc1ab3980
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir41110/file41143.cpp
fb8629a44024a9d7cc7caff16bbf6257443bfd36
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
#ifndef file41143 #error "macro file41143 must be defined" #endif static const char* file41143String = "file41143";
[ "tgeng@google.com" ]
tgeng@google.com
1d689ce956b8405fa52a3eaec638f954b122197c
f602735d1680b7794dcd2a9f179354e12ae940db
/timelinewidget.h
7349e2e2e501bbc505cc541b463f990d6e3805b9
[]
no_license
ojura/bugel
d91ef273636ec5d722b61b5d5ebe6e2c9b7830e6
d05a2bde03172931ce273507e4e997aa457ed4e7
refs/heads/master
2021-01-19T11:22:56.118852
2017-04-11T18:14:43
2017-04-11T18:14:43
87,963,428
0
0
null
2017-04-11T17:51:04
2017-04-11T17:51:04
null
UTF-8
C++
false
false
1,051
h
#ifndef TIMELINEWIDGET_H #define TIMELINEWIDGET_H #include <QWidget> #include <QElapsedTimer> class TimelineWidget : public QWidget { Q_OBJECT public: explicit TimelineWidget(QWidget *parent = 0); inline double cursor() const { return mCursor; } // in seconds protected: bool inRange(double time); int numSubTicks() const; double intervalLength() const; double pxPerSecond() const; void paintEvent(QPaintEvent* ev) /* override */; void mousePressEvent(QMouseEvent* ev) /* override */; // void mouseReleaseEvent(QMouseEvent* ev) /* override */; void wheelEvent(QWheelEvent* ev) /* override */; signals: void viewportChanged(double startTime, double length); void cursorMoved(double time); void timeClicked(double time); public slots: void setCursor(double time); void setLength(double length); private: double mCursor; // in seconds double mLength; // in seconds double mViewOffset; // in seconds double mViewLength; // in seconds }; #endif // TIMELINEWIDGET_H
[ "allofquist@yahoo.com" ]
allofquist@yahoo.com
4306b92bcb9d18b1d3adbc97dc1f8aa57edf3663
7bdd4cee3cba43fc7ea851c8250deebfa5dbf832
/build/Android/Debug/app/src/main/include/Fuse.Controls.Native.-890b856e.h
930939059a14265be33153a25c5fb2252c8daf7f
[]
no_license
chaejaeyoun/App_function_login-Signup
d26ab8aa843320a4e9452d2b3b2842443e59fc95
6c2113adc785d7e22fb0fa498fcf449d0c9e6f2a
refs/heads/master
2020-04-27T05:48:26.173232
2019-03-13T10:42:58
2019-03-13T10:42:58
174,090,861
0
0
null
null
null
null
UTF-8
C++
false
false
996
h
// This file was generated based on /usr/local/share/uno/Packages/Fuse.Controls.Native/1.10.0-rc1/Android/TextEdit.uno. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.h> namespace g{namespace Fuse{namespace Controls{namespace Native{namespace Android{struct SoftKeyboard;}}}}} namespace g{namespace Java{struct Object;}} namespace g{ namespace Fuse{ namespace Controls{ namespace Native{ namespace Android{ // internal static extern class SoftKeyboard :530 // { uClassType* SoftKeyboard_typeof(); void SoftKeyboard__HideKeyboard_fn(::g::Java::Object* hideKeyboardContext, ::g::Java::Object* hideKeyboardWindowToken); void SoftKeyboard__ShowKeyboard_fn(::g::Java::Object* viewHandle); struct SoftKeyboard : uObject { static void HideKeyboard(::g::Java::Object* hideKeyboardContext, ::g::Java::Object* hideKeyboardWindowToken); static void ShowKeyboard(::g::Java::Object* viewHandle); }; // } }}}}} // ::g::Fuse::Controls::Native::Android
[ "cowodbs156@gmail.com" ]
cowodbs156@gmail.com
817108ef6895e0d43f142fa27875ec849f299c51
6cfcd5a51f8023846c3951dbec57768624fb0521
/src/validator/GoValidator.h
5bfaf7af85d5763f9c1423e4960a787976e865ca
[ "LicenseRef-scancode-commons-clause", "Apache-2.0" ]
permissive
bright-starry-sky/nebula-graph
7716ac0113fdeb146565575ddbe192f21022576c
c08b248c69d7db40c0ba9011d4429083cf539bbd
refs/heads/master
2023-06-27T08:18:37.827508
2021-07-15T09:12:07
2021-07-15T09:12:07
288,594,041
1
0
Apache-2.0
2020-08-19T00:30:35
2020-08-19T00:30:35
null
UTF-8
C++
false
false
1,392
h
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #ifndef VALIDATOR_GOVALIDATOR_H_ #define VALIDATOR_GOVALIDATOR_H_ #include "planner/plan/Query.h" #include "validator/TraversalValidator.h" #include "context/ast/QueryAstContext.h" namespace nebula { namespace graph { class GoValidator final : public TraversalValidator { public: using VertexProp = nebula::storage::cpp2::VertexProp; using EdgeProp = nebula::storage::cpp2::EdgeProp; GoValidator(Sentence* sentence, QueryContext* context) : TraversalValidator(sentence, context) {} private: Status validateImpl() override; AstContext* getAstContext() override { return goCtx_.get(); } Status validateWhere(WhereClause* where); Status validateYield(YieldClause* yield); Status validateTruncate(TruncateClause* truncate); Status buildColumns(); void extractPropExprs(const Expression* expr); Expression* rewrite2VarProp(const Expression* expr); private: std::unique_ptr<GoContext> goCtx_; YieldColumns* inputPropCols_{nullptr}; std::unordered_map<std::string, YieldColumn*> propExprColMap_; }; } // namespace graph } // namespace nebula #endif
[ "noreply@github.com" ]
bright-starry-sky.noreply@github.com
0f6d8e35e7576255f5e52159ea0478b5b0f3d259
341a60ac6e33a87d5c7b5b9a09e8370a0dc6aa08
/proj.win32/Cell.cpp
e2de6b03240a8185163ec08b353145e1b27546bb
[]
no_license
zzh442856860/tanchishe
17305ca3b7f7a4c16261939cce896282be7a03fb
53f9ae439429cd7f1e11c03023eb610a2d405ef3
refs/heads/master
2021-01-23T04:13:41.171058
2014-05-05T11:22:07
2014-05-05T11:22:07
19,453,445
1
0
null
null
null
null
UTF-8
C++
false
false
1,359
cpp
#include "Cell.h" PngCell::PngCell(int cellX, int cellY, const char* pngFileName) { this->setCell(cellX, cellY); this->initWithFile(pngFileName); } PngCell::~PngCell() {} AnimatedCell::AnimatedCell(int cellX, int cellY, int spacing, const char* pngFileName) { this->setSpace(spacing); this->setPngFileName(pngFileName); animation_ = CCAnimation::create(); CCImage* image = new CCImage(); image->initWithImageFile(pngFileName); CCTexture2D* texture = new CCTexture2D(); texture->initWithImage(image); oneWidth_ = texture->getPixelsWide() / spacing; oneHeight_ = texture->getPixelsHigh(); for (int i=0; i<spacing; i++) { animation_->addSpriteFrameWithTexture(texture, CCRectMake(i*oneWidth_, 0, oneWidth_, oneHeight_)); } CCSpriteFrame* frm = ((CCAnimationFrame*)(animation_->getFrames()->objectAtIndex(0)))->getSpriteFrame(); this->initWithSpriteFrame(frm); animation_->setDelayPerUnit(0.5f); animate_ = CCRepeatForever::create(CCAnimate::create(animation_)); setCell(cellX, cellY); } AnimatedCell::AnimatedCell(AnimatedCell& cell) { AnimatedCell(cell.getCellX(), cell.getCellY(), cell.getSpace(), cell.getPngFileName().c_str()); } AnimatedCell::~AnimatedCell() {} void AnimatedCell::startAnimation(const float interval) { //this->stopAction(animate_); animation_->setDelayPerUnit(interval); this->runAction(animate_); }
[ "zzh442856860@163.com" ]
zzh442856860@163.com
c9dc329c98f95ac068db5a3fe94a780fa58d125e
aaba9be682e05e7a114f75078acdf928bdea81d9
/ElfFile.h
f86f33cf10dc7d7648f1c92acdfcba8faf51254f
[]
no_license
Inori/elfstuff
16b979691f3b99faa241b43d49fcb5a69a83509e
d2a9d4b628e8467dbc661962938eb10f54580bb5
refs/heads/master
2020-09-17T04:28:55.846576
2019-07-21T21:24:18
2019-07-21T21:24:18
223,988,876
1
0
null
2019-11-25T16:06:14
2019-11-25T16:06:13
null
UTF-8
C++
false
false
5,215
h
#pragma once #include "ElfFileTypes.h" #include "VirtualMemory.h" /* version 1: 0x40 bytes params: sceProcessName sceUserMainThreadName sceUserMainThreadPriority sceUserMainThreadStackSize version 2: 0x48 bytes possibly null params? */ struct SceElfProcparam { u64 size; u32 magic; u32 version; u64 sdk_version; //u64 params[0]; }; namespace Simulator { struct Executor; } #define DW_EH_PE_absptr 0x00 #define DW_EH_PE_omit 0xff #define DW_EH_PE_uleb128 0x01 #define DW_EH_PE_udata2 0x02 #define DW_EH_PE_udata4 0x03 #define DW_EH_PE_udata8 0x04 #define DW_EH_PE_sleb128 0x09 #define DW_EH_PE_sdata2 0x0A #define DW_EH_PE_sdata4 0x0B #define DW_EH_PE_sdata8 0x0C #define DW_EH_PE_signed 0x08 #define DW_EH_PE_pcrel 0x10 #define DW_EH_PE_textrel 0x20 #define DW_EH_PE_datarel 0x30 #define DW_EH_PE_funcrel 0x40 #define DW_EH_PE_aligned 0x50 #define DW_EH_PE_indirect 0x80 typedef enum _UNWIND_OP_CODES { UWOP_PUSH_NONVOL = 0, /* info == register number */ UWOP_ALLOC_LARGE, /* no info, alloc size in next 2 slots */ UWOP_ALLOC_SMALL, /* info == size of allocation / 8 - 1 */ UWOP_SET_FPREG, /* no info, FP = RSP + UNWIND_INFO.FPRegOffset*16 */ UWOP_SAVE_NONVOL, /* info == register number, offset in next slot */ UWOP_SAVE_NONVOL_FAR, /* info == register number, offset in next 2 slots */ UWOP_SAVE_XMM128, /* info == XMM reg number, offset in next slot */ UWOP_SAVE_XMM128_FAR, /* info == XMM reg number, offset in next 2 slots */ UWOP_PUSH_MACHFRAME /* info == 0: no error-code, 1: error-code */ } UNWIND_CODE_OPS; enum UNWIND_REGISTER : u8 { RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI, R8, R9, R10, R11, R12, R13, R14, R15, }; typedef union _UNWIND_CODE { struct { u8 CodeOffset; u8 UnwindOp : 4; u8 OpInfo : 4; }; u16 FrameOffset; } UNWIND_CODE, *PUNWIND_CODE; typedef struct _UNWIND_INFO { u8 Version : 3; u8 Flags : 5; u8 SizeOfProlog; u8 CountOfCodes; u8 FrameRegister : 4; u8 FrameOffset : 4; UNWIND_CODE UnwindCode[1]; /* UNWIND_CODE MoreUnwindCode[((CountOfCodes + 1) & ~1) - 1]; * union { * OPTIONAL ULONG ExceptionHandler; * OPTIONAL ULONG FunctionEntry; * }; * OPTIONAL ULONG ExceptionData[]; */ } UNWIND_INFO, *PUNWIND_INFO; struct eh_frame_hdr { u8 version; u8 eh_frame_ptr_enc; u8 fde_count_enc; u8 table_enc; }; struct eh_cie { uintptr_t caf; intptr_t daf; u8 fde_enc; const u8 *insns; size_t insns_len; }; struct eh_fde { eh_cie cie; uintptr_t start; uintptr_t end; const u8 *insns; size_t insns_len; }; struct eh_fde_rel { u32 start; u32 end; uintptr_t caf; intptr_t daf; u32 init_insns; u32 init_insns_len; u32 insns; u32 insns_len; }; struct ElfEHInfo { std::vector<eh_fde_rel> fdes; bool Init(const u8 *base, const eh_frame_hdr *hdr); bool TranslateCFI(PUNWIND_INFO ui, const eh_fde_rel &fde, uintptr_t base); bool Install(const void *code_base, void *eh_base); size_t GetNativeSize(); }; struct ElfFile { std::unique_ptr<VirtualMemory::MappedObject> object; u8 *file; Elf64_Ehdr *header; std::vector<Elf64_Phdr *> pheaders; u8 *dynlibdata; Elf64_Dyn *dynamic; u64 procparam_rva; std::unique_ptr<ElfEHInfo> eh_info; u32 plt_offset; template<typename T> struct DynList { T *ptr; size_t num; }; DynList<const char> dynstr; DynList<Elf64_Sym> dynsym; DynList<Elf64_Rela> rela; DynList<Elf64_Rela> jmprel; // XXX Currently not tracking attributes of modules or libraries... struct ModuleInfo { u16 id; u8 ver_major; u8 ver_minor; const char *name; }; std::vector<ModuleInfo> modules; struct LibraryInfo { u16 id; u16 version; const char *name; }; std::vector<LibraryInfo> libraries; u64 load_mem_offset; u64 load_mem_size; VirtualMemory::Allocation relocbase; std::map<std::string, uintptr_t> symbol_map; struct PltRecord { uintptr_t slot_offset; u16 mid; u64 nid; }; std::vector<PltRecord> plt_slots; bool Load(const std::string path); bool ParseHeaders(); bool ParseDynamic(); bool CheckSegments(); VirtualMemory::Protection GetSegProt(const Elf64_Phdr &phdr); bool Map(); void ProcessRelocations(Simulator::Executor *exec, const DynList<Elf64_Rela> &relocs); bool FriendlySymbolName(const char *name, std::string *friendly); void AllocatePltSlot(const char *name, const Elf64_Rela &reloc); void SetupPltResolver(Simulator::Executor *exec); bool SetSegmentProtections(); };
[ "noreply@github.com" ]
Inori.noreply@github.com
9f8cb782b15758b103a7ec4f5a656e1a6273e2e8
2d50cec1bd91b82663656891660e7c9d89ffc153
/lib/benchmark/src/benchmark.cc
29bfa3512f95edf15206457093dc94ce8ec4efbf
[ "Apache-2.0", "MIT" ]
permissive
Wizermil/premultiply_alpha
b123c08e75a051a26d1dd2cbddb8770f87f0d5ed
4f271c4ed4dfa749517cdc51a3215c217e09c597
refs/heads/master
2022-12-10T00:58:41.572954
2021-11-21T13:48:25
2021-11-21T13:48:31
191,039,908
6
0
MIT
2022-11-22T07:37:03
2019-06-09T18:14:38
C++
UTF-8
C++
false
false
17,102
cc
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include "benchmark/benchmark.h" #include "benchmark_api_internal.h" #include "benchmark_runner.h" #include "internal_macros.h" #ifndef BENCHMARK_OS_WINDOWS #ifndef BENCHMARK_OS_FUCHSIA #include <sys/resource.h> #endif #include <sys/time.h> #include <unistd.h> #endif #include <algorithm> #include <atomic> #include <condition_variable> #include <cstdio> #include <cstdlib> #include <fstream> #include <iostream> #include <memory> #include <string> #include <thread> #include <utility> #include "check.h" #include "colorprint.h" #include "commandlineflags.h" #include "complexity.h" #include "counter.h" #include "internal_macros.h" #include "log.h" #include "mutex.h" #include "re.h" #include "statistics.h" #include "string_util.h" #include "thread_manager.h" #include "thread_timer.h" DEFINE_bool(benchmark_list_tests, false, "Print a list of benchmarks. This option overrides all other " "options."); DEFINE_string(benchmark_filter, ".", "A regular expression that specifies the set of benchmarks " "to execute. If this flag is empty, or if this flag is the " "string \"all\", all benchmarks linked into the binary are " "run."); DEFINE_double(benchmark_min_time, 0.5, "Minimum number of seconds we should run benchmark before " "results are considered significant. For cpu-time based " "tests, this is the lower bound on the total cpu time " "used by all threads that make up the test. For real-time " "based tests, this is the lower bound on the elapsed time " "of the benchmark execution, regardless of number of " "threads."); DEFINE_int32(benchmark_repetitions, 1, "The number of runs of each benchmark. If greater than 1, the " "mean and standard deviation of the runs will be reported."); DEFINE_bool( benchmark_report_aggregates_only, false, "Report the result of each benchmark repetitions. When 'true' is specified " "only the mean, standard deviation, and other statistics are reported for " "repeated benchmarks. Affects all reporters."); DEFINE_bool( benchmark_display_aggregates_only, false, "Display the result of each benchmark repetitions. When 'true' is " "specified only the mean, standard deviation, and other statistics are " "displayed for repeated benchmarks. Unlike " "benchmark_report_aggregates_only, only affects the display reporter, but " "*NOT* file reporter, which will still contain all the output."); DEFINE_string(benchmark_format, "console", "The format to use for console output. Valid values are " "'console', 'json', or 'csv'."); DEFINE_string(benchmark_out_format, "json", "The format to use for file output. Valid values are " "'console', 'json', or 'csv'."); DEFINE_string(benchmark_out, "", "The file to write additional output to"); DEFINE_string(benchmark_color, "auto", "Whether to use colors in the output. Valid values: " "'true'/'yes'/1, 'false'/'no'/0, and 'auto'. 'auto' means to use " "colors if the output is being sent to a terminal and the TERM " "environment variable is set to a terminal type that supports " "colors."); DEFINE_bool(benchmark_counters_tabular, false, "Whether to use tabular format when printing user counters to " "the console. Valid values: 'true'/'yes'/1, 'false'/'no'/0." "Defaults to false."); DEFINE_int32(v, 0, "The level of verbose logging to output"); namespace benchmark { namespace internal { // FIXME: wouldn't LTO mess this up? void UseCharPointer(char const volatile*) {} } // namespace internal State::State(IterationCount max_iters, const std::vector<int64_t>& ranges, int thread_i, int n_threads, internal::ThreadTimer* timer, internal::ThreadManager* manager) : total_iterations_(0), batch_leftover_(0), max_iterations(max_iters), started_(false), finished_(false), error_occurred_(false), range_(ranges), complexity_n_(0), counters(), thread_index(thread_i), threads(n_threads), timer_(timer), manager_(manager) { CHECK(max_iterations != 0) << "At least one iteration must be run"; CHECK_LT(thread_index, threads) << "thread_index must be less than threads"; // Note: The use of offsetof below is technically undefined until C++17 // because State is not a standard layout type. However, all compilers // currently provide well-defined behavior as an extension (which is // demonstrated since constexpr evaluation must diagnose all undefined // behavior). However, GCC and Clang also warn about this use of offsetof, // which must be suppressed. #if defined(__INTEL_COMPILER) #pragma warning push #pragma warning(disable:1875) #elif defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Winvalid-offsetof" #endif // Offset tests to ensure commonly accessed data is on the first cache line. const int cache_line_size = 64; static_assert(offsetof(State, error_occurred_) <= (cache_line_size - sizeof(error_occurred_)), ""); #if defined(__INTEL_COMPILER) #pragma warning pop #elif defined(__GNUC__) #pragma GCC diagnostic pop #endif } void State::PauseTiming() { // Add in time accumulated so far CHECK(started_ && !finished_ && !error_occurred_); timer_->StopTimer(); } void State::ResumeTiming() { CHECK(started_ && !finished_ && !error_occurred_); timer_->StartTimer(); } void State::SkipWithError(const char* msg) { CHECK(msg); error_occurred_ = true; { MutexLock l(manager_->GetBenchmarkMutex()); if (manager_->results.has_error_ == false) { manager_->results.error_message_ = msg; manager_->results.has_error_ = true; } } total_iterations_ = 0; if (timer_->running()) timer_->StopTimer(); } void State::SetIterationTime(double seconds) { timer_->SetIterationTime(seconds); } void State::SetLabel(const char* label) { MutexLock l(manager_->GetBenchmarkMutex()); manager_->results.report_label_ = label; } void State::StartKeepRunning() { CHECK(!started_ && !finished_); started_ = true; total_iterations_ = error_occurred_ ? 0 : max_iterations; manager_->StartStopBarrier(); if (!error_occurred_) ResumeTiming(); } void State::FinishKeepRunning() { CHECK(started_ && (!finished_ || error_occurred_)); if (!error_occurred_) { PauseTiming(); } // Total iterations has now wrapped around past 0. Fix this. total_iterations_ = 0; finished_ = true; manager_->StartStopBarrier(); } namespace internal { namespace { void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks, BenchmarkReporter* display_reporter, BenchmarkReporter* file_reporter) { // Note the file_reporter can be null. CHECK(display_reporter != nullptr); // Determine the width of the name field using a minimum width of 10. bool might_have_aggregates = FLAGS_benchmark_repetitions > 1; size_t name_field_width = 10; size_t stat_field_width = 0; for (const BenchmarkInstance& benchmark : benchmarks) { name_field_width = std::max<size_t>(name_field_width, benchmark.name.str().size()); might_have_aggregates |= benchmark.repetitions > 1; for (const auto& Stat : *benchmark.statistics) stat_field_width = std::max<size_t>(stat_field_width, Stat.name_.size()); } if (might_have_aggregates) name_field_width += 1 + stat_field_width; // Print header here BenchmarkReporter::Context context; context.name_field_width = name_field_width; // Keep track of running times of all instances of current benchmark std::vector<BenchmarkReporter::Run> complexity_reports; // We flush streams after invoking reporter methods that write to them. This // ensures users get timely updates even when streams are not line-buffered. auto flushStreams = [](BenchmarkReporter* reporter) { if (!reporter) return; std::flush(reporter->GetOutputStream()); std::flush(reporter->GetErrorStream()); }; if (display_reporter->ReportContext(context) && (!file_reporter || file_reporter->ReportContext(context))) { flushStreams(display_reporter); flushStreams(file_reporter); for (const auto& benchmark : benchmarks) { RunResults run_results = RunBenchmark(benchmark, &complexity_reports); auto report = [&run_results](BenchmarkReporter* reporter, bool report_aggregates_only) { assert(reporter); // If there are no aggregates, do output non-aggregates. report_aggregates_only &= !run_results.aggregates_only.empty(); if (!report_aggregates_only) reporter->ReportRuns(run_results.non_aggregates); if (!run_results.aggregates_only.empty()) reporter->ReportRuns(run_results.aggregates_only); }; report(display_reporter, run_results.display_report_aggregates_only); if (file_reporter) report(file_reporter, run_results.file_report_aggregates_only); flushStreams(display_reporter); flushStreams(file_reporter); } } display_reporter->Finalize(); if (file_reporter) file_reporter->Finalize(); flushStreams(display_reporter); flushStreams(file_reporter); } std::unique_ptr<BenchmarkReporter> CreateReporter( std::string const& name, ConsoleReporter::OutputOptions output_opts) { typedef std::unique_ptr<BenchmarkReporter> PtrType; if (name == "console") { return PtrType(new ConsoleReporter(output_opts)); } else if (name == "json") { return PtrType(new JSONReporter); } else if (name == "csv") { return PtrType(new CSVReporter); } else { std::cerr << "Unexpected format: '" << name << "'\n"; std::exit(1); } } } // end namespace bool IsZero(double n) { return std::abs(n) < std::numeric_limits<double>::epsilon(); } ConsoleReporter::OutputOptions GetOutputOptions(bool force_no_color) { int output_opts = ConsoleReporter::OO_Defaults; auto is_benchmark_color = [force_no_color] () -> bool { if (force_no_color) { return false; } if (FLAGS_benchmark_color == "auto") { return IsColorTerminal(); } return IsTruthyFlagValue(FLAGS_benchmark_color); }; if (is_benchmark_color()) { output_opts |= ConsoleReporter::OO_Color; } else { output_opts &= ~ConsoleReporter::OO_Color; } if (FLAGS_benchmark_counters_tabular) { output_opts |= ConsoleReporter::OO_Tabular; } else { output_opts &= ~ConsoleReporter::OO_Tabular; } return static_cast<ConsoleReporter::OutputOptions>(output_opts); } } // end namespace internal size_t RunSpecifiedBenchmarks() { return RunSpecifiedBenchmarks(nullptr, nullptr); } size_t RunSpecifiedBenchmarks(BenchmarkReporter* display_reporter) { return RunSpecifiedBenchmarks(display_reporter, nullptr); } size_t RunSpecifiedBenchmarks(BenchmarkReporter* display_reporter, BenchmarkReporter* file_reporter) { std::string spec = FLAGS_benchmark_filter; if (spec.empty() || spec == "all") spec = "."; // Regexp that matches all benchmarks // Setup the reporters std::ofstream output_file; std::unique_ptr<BenchmarkReporter> default_display_reporter; std::unique_ptr<BenchmarkReporter> default_file_reporter; if (!display_reporter) { default_display_reporter = internal::CreateReporter( FLAGS_benchmark_format, internal::GetOutputOptions()); display_reporter = default_display_reporter.get(); } auto& Out = display_reporter->GetOutputStream(); auto& Err = display_reporter->GetErrorStream(); std::string const& fname = FLAGS_benchmark_out; if (fname.empty() && file_reporter) { Err << "A custom file reporter was provided but " "--benchmark_out=<file> was not specified." << std::endl; std::exit(1); } if (!fname.empty()) { output_file.open(fname); if (!output_file.is_open()) { Err << "invalid file name: '" << fname << std::endl; std::exit(1); } if (!file_reporter) { default_file_reporter = internal::CreateReporter( FLAGS_benchmark_out_format, ConsoleReporter::OO_None); file_reporter = default_file_reporter.get(); } file_reporter->SetOutputStream(&output_file); file_reporter->SetErrorStream(&output_file); } std::vector<internal::BenchmarkInstance> benchmarks; if (!FindBenchmarksInternal(spec, &benchmarks, &Err)) return 0; if (benchmarks.empty()) { Err << "Failed to match any benchmarks against regex: " << spec << "\n"; return 0; } if (FLAGS_benchmark_list_tests) { for (auto const& benchmark : benchmarks) Out << benchmark.name.str() << "\n"; } else { internal::RunBenchmarks(benchmarks, display_reporter, file_reporter); } return benchmarks.size(); } void RegisterMemoryManager(MemoryManager* manager) { internal::memory_manager = manager; } namespace internal { void PrintUsageAndExit() { fprintf(stdout, "benchmark" " [--benchmark_list_tests={true|false}]\n" " [--benchmark_filter=<regex>]\n" " [--benchmark_min_time=<min_time>]\n" " [--benchmark_repetitions=<num_repetitions>]\n" " [--benchmark_report_aggregates_only={true|false}]\n" " [--benchmark_display_aggregates_only={true|false}]\n" " [--benchmark_format=<console|json|csv>]\n" " [--benchmark_out=<filename>]\n" " [--benchmark_out_format=<json|console|csv>]\n" " [--benchmark_color={auto|true|false}]\n" " [--benchmark_counters_tabular={true|false}]\n" " [--v=<verbosity>]\n"); exit(0); } void ParseCommandLineFlags(int* argc, char** argv) { using namespace benchmark; BenchmarkReporter::Context::executable_name = (argc && *argc > 0) ? argv[0] : "unknown"; for (int i = 1; i < *argc; ++i) { if (ParseBoolFlag(argv[i], "benchmark_list_tests", &FLAGS_benchmark_list_tests) || ParseStringFlag(argv[i], "benchmark_filter", &FLAGS_benchmark_filter) || ParseDoubleFlag(argv[i], "benchmark_min_time", &FLAGS_benchmark_min_time) || ParseInt32Flag(argv[i], "benchmark_repetitions", &FLAGS_benchmark_repetitions) || ParseBoolFlag(argv[i], "benchmark_report_aggregates_only", &FLAGS_benchmark_report_aggregates_only) || ParseBoolFlag(argv[i], "benchmark_display_aggregates_only", &FLAGS_benchmark_display_aggregates_only) || ParseStringFlag(argv[i], "benchmark_format", &FLAGS_benchmark_format) || ParseStringFlag(argv[i], "benchmark_out", &FLAGS_benchmark_out) || ParseStringFlag(argv[i], "benchmark_out_format", &FLAGS_benchmark_out_format) || ParseStringFlag(argv[i], "benchmark_color", &FLAGS_benchmark_color) || // "color_print" is the deprecated name for "benchmark_color". // TODO: Remove this. ParseStringFlag(argv[i], "color_print", &FLAGS_benchmark_color) || ParseBoolFlag(argv[i], "benchmark_counters_tabular", &FLAGS_benchmark_counters_tabular) || ParseInt32Flag(argv[i], "v", &FLAGS_v)) { for (int j = i; j != *argc - 1; ++j) argv[j] = argv[j + 1]; --(*argc); --i; } else if (IsFlag(argv[i], "help")) { PrintUsageAndExit(); } } for (auto const* flag : {&FLAGS_benchmark_format, &FLAGS_benchmark_out_format}) if (*flag != "console" && *flag != "json" && *flag != "csv") { PrintUsageAndExit(); } if (FLAGS_benchmark_color.empty()) { PrintUsageAndExit(); } } int InitializeStreams() { static std::ios_base::Init init; return 0; } } // end namespace internal void Initialize(int* argc, char** argv) { internal::ParseCommandLineFlags(argc, argv); internal::LogLevel() = FLAGS_v; } bool ReportUnrecognizedArguments(int argc, char** argv) { for (int i = 1; i < argc; ++i) { fprintf(stderr, "%s: error: unrecognized command-line flag: %s\n", argv[0], argv[i]); } return argc > 1; } } // end namespace benchmark
[ "mathieu.garaud@gmail.com" ]
mathieu.garaud@gmail.com
def09603458a760c6ccc44ee7af0005d736eb880
06f53c62aa6daf15fce3159aaa7b070ce7f23fe2
/Todo.cpp
153f4ec55f487c9593b7e6b97fbb9f744f5b3942
[]
no_license
ramanakeerthi/Mini-C-Projects
3cccc9f7c76a340a2bfa2ddc131720ae8de9dff9
5eb209c129dd7e1b5adc1bdf7f6dfb63a1b72759
refs/heads/master
2020-06-21T13:06:27.379063
2016-11-25T21:53:50
2016-11-25T21:53:50
74,786,311
0
0
null
null
null
null
UTF-8
C++
false
false
1,755
cpp
#include <iostream> #include <fstream> #include <algorithm> #include <string> void get_valid_date_input(std::string input); bool check_valid_month(std::string month); using namespace std; int main() { cout << "Welcome to your to-do list! You have two options:\n"; string input; cout << "Enter 'Check' if you'd like to check a date, or 'Write' if you'd like to write to a date: "; cin >> input; std::transform(input.begin(), input.end(), input.begin(), ::tolower); cout << "\n"; while(input != "write" && input != "check") { cout << "Sorry! Your input didn't match one of the two options. If you'd like to continue, enter 'write' or 'check' or 'exit' to exit the program: "; cin >> input; std::transform(input.begin(), input.end(), input.begin(), ::tolower); if(input == "exit") exit(0); } get_valid_date_input(input); } void get_valid_date_input(std::string input) { if(input == "check") cout << "We'll need a date for you to " << input << " from!\n"; else cout << "We'll need a date for you to " << input << " to!\n"; std::string year, month, day; cout << "Please enter the year: "; cin >> year; cout << "Please enter the month with correct spelling! "; cin >> month; while(!check_valid_month(month)) { cout << "Sorry, you entered an invalid month! Please re-enter a valid month: "; cin >> month; } } bool check_valid_month(std::string month) { std::transform(month.begin(), month.end(), month.begin(), ::tolower); if(month != "january" && month != "february" && month != "march" && month != "april" && month != "may" && month != "june" && month != "july" && month != "august" && month != "september" && month != "october" && month != "november" && month != "december") return false; return true; }
[ "ramanak@umich.edu" ]
ramanak@umich.edu
64b26f021b9b191dc7b9c7000b46ecb5f733dd95
68be857f8a58392318ec3634a31719062bd2cf12
/apps/c/jac2/openmp4/res_omp4kernel.cpp
f245038b6be3eb7716de927e01e13219482ec207
[ "BSD-2-Clause" ]
permissive
octurion/OP2-Common
775b8344f89e9cb58f82bd7ef22420fa2d1b37b1
a8b00f8538c2d1726765c53c849ae43dd0180256
refs/heads/master
2020-08-02T19:44:52.913824
2019-12-02T01:24:51
2019-12-02T01:24:51
211,484,766
0
0
NOASSERTION
2019-09-28T10:40:45
2019-09-28T10:40:44
null
UTF-8
C++
false
false
2,967
cpp
// // auto-generated by op2.py // //user function //user function void res_omp4_kernel(double *data0, int dat0size, int *map1, int map1size, float *arg3, float *data1, int dat1size, float *data2, int dat2size, int *col_reord, int set_size1, int start, int end, int num_teams, int nthread); // host stub function void op_par_loop_res(char const *name, op_set set, op_arg arg0, op_arg arg1, op_arg arg2, op_arg arg3){ float*arg3h = (float *)arg3.data; int nargs = 4; op_arg args[4]; args[0] = arg0; args[1] = arg1; args[2] = arg2; args[3] = arg3; // initialise timers double cpu_t1, cpu_t2, wall_t1, wall_t2; op_timing_realloc(0); op_timers_core(&cpu_t1, &wall_t1); OP_kernels[0].name = name; OP_kernels[0].count += 1; int ninds = 2; int inds[4] = {-1,0,1,-1}; if (OP_diags>2) { printf(" kernel routine with indirection: res\n"); } // get plan int set_size = op_mpi_halo_exchanges_cuda(set, nargs, args); #ifdef OP_PART_SIZE_0 int part_size = OP_PART_SIZE_0; #else int part_size = OP_part_size; #endif #ifdef OP_BLOCK_SIZE_0 int nthread = OP_BLOCK_SIZE_0; #else int nthread = OP_block_size; #endif float arg3_l = arg3h[0]; int ncolors = 0; int set_size1 = set->size + set->exec_size; if (set->size >0) { //Set up typed device pointers for OpenMP int *map1 = arg1.map_data_d; int map1size = arg1.map->dim * set_size1; double* data0 = (double*)arg0.data_d; int dat0size = getSetSizeFromOpArg(&arg0) * arg0.dat->dim; float *data1 = (float *)arg1.data_d; int dat1size = getSetSizeFromOpArg(&arg1) * arg1.dat->dim; float *data2 = (float *)arg2.data_d; int dat2size = getSetSizeFromOpArg(&arg2) * arg2.dat->dim; op_plan *Plan = op_plan_get_stage(name,set,part_size,nargs,args,ninds,inds,OP_COLOR2); ncolors = Plan->ncolors; int *col_reord = Plan->col_reord; // execute plan for ( int col=0; col<Plan->ncolors; col++ ){ if (col==1) { op_mpi_wait_all_cuda(nargs, args); } int start = Plan->col_offsets[0][col]; int end = Plan->col_offsets[0][col+1]; res_omp4_kernel(data0, dat0size, map1, map1size, &arg3_l, data1, dat1size, data2, dat2size, col_reord, set_size1, start, end, part_size != 0 ? (end - start - 1) / part_size + 1 : (end - start - 1) / nthread, nthread); } OP_kernels[0].transfer += Plan->transfer; OP_kernels[0].transfer2 += Plan->transfer2; } if (set_size == 0 || set_size == set->core_size || ncolors == 1) { op_mpi_wait_all_cuda(nargs, args); } // combine reduction data op_mpi_set_dirtybit_cuda(nargs, args); if (OP_diags>1) deviceSync(); // update kernel record op_timers_core(&cpu_t2, &wall_t2); OP_kernels[0].time += wall_t2 - wall_t1; }
[ "regulyistvan@gmail.com" ]
regulyistvan@gmail.com
9a3bacde4c229c39b39386df1482b13bfd124d9b
39809caf2d12342e5f1d88597c5903f4cfa56858
/c++_2/choka2.cpp
d40f8dc917954e83dc83ea4f01ff6b65acc2f4ba
[]
no_license
hard747/c
5f67d2449d7e9cbae56f1554ce49fba0cea970fb
8d75a04d291082becfc2ef623d542ae42931a686
refs/heads/master
2021-04-22T15:13:16.345472
2020-04-17T08:51:35
2020-04-17T08:51:35
249,856,657
2
0
null
null
null
null
UTF-8
C++
false
false
855
cpp
#include <iostream> using namespace std; int main () { int h,n,m; cout << " INTRODUCIR HORA" << endl; cin >> h; cout << "INTRODUCIR MINUTOS" << endl; cin>>m; if (((h<0 )||(h>=24))||(( m<0)||(m>59))) { n=1; } else if ((h==8) && (m==0)) { n=2; } else if ((h >= 8) && (m>0) && (m <=59)) { n=3; } /*else if ((h>8) && (m>=0)&&(m<=59)) { n=4; }*/ else if ((h<8) && (m>=0)&&(m<=59)) { n=4; } switch(n){ case 1: { cout << "HORA INCORRECTA" <<endl; break; } case 2: { cout << "HORA EXACTA" <<endl; break; } case 3: { cout << "RETRASADO " << h-8 <<" HORAS "<< m << " MINUTOS" << endl; break; } case 4: { cout << "ADELANTADO " << 8-h-1 << " HORAS " << 60-m << " MINUTOS" << endl; break; } } return 0; }
[ "bansmp717_4@hotmail.com" ]
bansmp717_4@hotmail.com
1616d7f6d48038ecede3a25c89627601bae39bbe
f1403a72184fa96ee3b433a21e1288d92bdb43fa
/Classes/Sprite/RespirationSprite.h
16692864d218dfa348d27ec9806d4b3ff48f2caf
[]
no_license
spocklin/BackToTheFuture
6e4d4e793a650c900e372c2c7f74ed717765875d
94ff229dd4e899658663cb3c01a25004840e4936
refs/heads/master
2021-01-22T04:14:44.310808
2017-02-10T19:26:20
2017-02-10T19:26:20
81,519,746
0
0
null
null
null
null
UTF-8
C++
false
false
408
h
#ifndef _RESPIRATION_SPRITE_H_ #define _RESPIRATION_SPRITE_H_ #include "cocos2d.h" USING_NS_CC; class RespirationSprite : public Sprite { public: virtual bool RespirationInit(const std::string SpriteFrameName); CREATE_FUNC(RespirationSprite); static RespirationSprite* createRespirationSprite(const std::string SpriteFrameName); private: void startRespiration(float dt); }; #endif
[ "lin.rongshu@163.com" ]
lin.rongshu@163.com
e9d818b33398583db32c5d57618587d052087d74
64bf21e9b4ca104557d05dc90a70e9fc3c3544a4
/tests/pyre.lib/grid/rep_at.cc
0731c548482dfcd1a45fec90fc291152ce411970
[ "BSD-3-Clause" ]
permissive
pyre/pyre
e6341a96a532dac03f5710a046c3ebbb79c26395
d741c44ffb3e9e1f726bf492202ac8738bb4aa1c
refs/heads/main
2023-08-08T15:20:30.721308
2023-07-20T07:51:29
2023-07-20T07:51:29
59,451,598
27
13
BSD-3-Clause
2023-07-02T07:14:50
2016-05-23T04:17:24
Python
UTF-8
C++
false
false
721
cc
// -*- c++ -*- // // michael a.g. aïvázis <michael.aivazis@para-sim.com> // (c) 1998-2023 all rights reserved // get the grid #include <pyre/grid.h> // alias the rep using rep_t = pyre::grid::rep_t<int, 4>; // bounds safe data access int main(int argc, char * argv[]) { // initialize the journal pyre::journal::init(argc, argv); pyre::journal::application("rep_at"); // make a channel pyre::journal::debug_t channel("pyre.grid.rep"); // make a rep constexpr rep_t rep { 0, 1, 2, 3 }; // verify the contents static_assert(rep.at(0) == 0); // show me channel << "rep: {" << rep << "}" << pyre::journal::endl(__HERE__); // all done return 0; } // end of file
[ "michael.aivazis@para-sim.com" ]
michael.aivazis@para-sim.com
18392b94e7b54b34ad9a5acf6faa8f416e5b35c5
8dc2b1e763b0a0797bdc23ada25bd750abb1e090
/LSD/test.cpp
abbf4151ec053b4a2687b8a964c0f4a4e9eb49e1
[]
no_license
lcbwn/LineSegmentDetector17
f68ff14633ac92178492a57244d8b2c5a3a3db50
7dc2c67e1c5110d4efc93231c1c122bc98e47c1c
refs/heads/master
2020-05-04T17:20:55.470508
2019-03-28T09:08:19
2019-03-28T09:08:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
136
cpp
#include <opencv.hpp> using namespace cv; int main() { Mat image(100, 100, CV_8UC1, Scalar(255)); imshow("1", image); waitKey(0); }
[ "pyrokinecist@aliyun.com" ]
pyrokinecist@aliyun.com
68b7d02dc884f5930ccc8516fa0bf34106d27912
72ee5e535b74abc750b0306af980a3c482d7670a
/Source/Laboratoare/Tema3/Object2D.h
eadb3187120beb9c6fe74fe1a5e3959469bce332
[]
no_license
alexerares/Bow-and-Arrow-Skyroads
5b332bc0af60a5d83d7f45b5ca7888e5c96429a5
7d3ba8e41bb6ea95287ac1255ecee93fdffe9d69
refs/heads/master
2023-02-26T09:45:42.965666
2021-02-02T21:01:25
2021-02-02T21:01:25
335,421,129
0
0
null
null
null
null
UTF-8
C++
false
false
2,077
h
#pragma once #include <string> #include <include/glm.h> #include <Core/GPU/Mesh.h> namespace Object2D { // Create square with given bottom left corner, length and color Mesh* CreateSquare(std::string name, glm::vec3 leftBottomCorner, float length, glm::vec3 color, bool fill = false); Mesh* CreateCircle(std::string name, glm::vec3 center, float radius, glm::vec3 color, bool fill = false); Mesh* CreateLine(std::string name, glm::vec3 leftCorner, float length, glm::vec3 color, bool fill = false); Mesh* CreateTri(std::string name, glm::vec3 leftCorner, float length, glm::vec3 color, bool fill = false); Mesh* CreateBaloon(std::string name, glm::vec3 center, float radius, glm::vec3 color, bool fill = false); Mesh* CreatePolilinie(std::string name, glm::vec3 center, float radius, glm::vec3 color, bool fill = false); Mesh* CreateShuriken(std::string name, glm::vec3 center, float radius, glm::vec3 color, bool fill = false); Mesh* CreatePowerBar(std::string name, glm::vec3 leftCorner, float length, float dim, glm::vec3 color, bool fill = false); Mesh* CreateFreezBar(std::string name, glm::vec3 leftCorner, float length, float dim, glm::vec3 color, bool fill = false); Mesh* CreateScore(std::string name, glm::vec3 leftBottomCorner, float length, glm::vec3 color, bool fill = false); Mesh* CreateFuel(std::string name, glm::vec3 leftBottomCorner, float length, glm::vec3 color, bool fill); Mesh* CreateHeart(std::string name, glm::vec3 leftBottomCorner, glm::vec3 color, bool fill = false); Mesh* CreateG(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateA(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateM(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateE(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateO(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateV(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateE2(std::string name, glm::vec3 color, bool fill = false); Mesh* CreateR(std::string name, glm::vec3 color, bool fill = false); }
[ "raresgabrielalexe@yahoo.ro" ]
raresgabrielalexe@yahoo.ro
0b84d31f9fa40b4320decfd414db992e45d99b5e
d1055d56eaa134744c9d2283b8ede9165b239654
/RLogin/SerEntPage.cpp
e9d11f4b87c93639e5a13ca49f5b07489f87ae23
[ "MIT" ]
permissive
archvile/RLogin
c06821c3ddaf7b3af949882c5ddebca3b8ccb4e0
384fdd23f37a578998e978f3a5b8a543cdf8704d
refs/heads/master
2021-05-06T12:28:47.506623
2017-12-03T23:07:48
2017-12-03T23:07:48
null
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
14,058
cpp
// SerEntPage.cpp : インプリメンテーション ファイル // #include "stdafx.h" #include "rlogin.h" #include "MainFrm.h" #include "RLoginDoc.h" #include "RLoginView.h" #include "TextRam.h" #include "Data.h" #include "ComSock.h" #include "OptDlg.h" #include "SerEntPage.h" #include "ChatDlg.h" #include "ProxyDlg.h" #include "EnvDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSerEntPage プロパティ ページ IMPLEMENT_DYNCREATE(CSerEntPage, CTreePage) CSerEntPage::CSerEntPage() : CTreePage(CSerEntPage::IDD) , m_UsePassDlg(FALSE) { m_EntryName = _T(""); m_HostName = _T(""); m_PortName = _T(""); m_UserName = _T(""); m_PassName = _T(""); m_TermName = _T(""); m_KanjiCode = 0; m_ProtoType = 0; m_DefComPort = _T(""); m_IdkeyName = _T(""); m_Memo = _T(""); m_Group = _T(""); m_BeforeEntry = _T(""); m_UsePassDlg = FALSE; m_UseProxyDlg = FALSE; m_bOptFixed = FALSE; } CSerEntPage::~CSerEntPage() { } void CSerEntPage::DoDataExchange(CDataExchange* pDX) { CTreePage::DoDataExchange(pDX); DDX_Text(pDX, IDC_ENTRYNAME, m_EntryName); DDX_CBString(pDX, IDC_SERVERNAME, m_HostName); DDX_CBString(pDX, IDC_SOCKNO, m_PortName); DDX_CBString(pDX, IDC_LOGINNAME, m_UserName); DDX_Text(pDX, IDC_PASSWORD, m_PassName); DDX_CBString(pDX, IDC_TERMNAME, m_TermName); DDX_Radio(pDX, IDC_KANJICODE1, m_KanjiCode); DDX_Radio(pDX, IDC_PROTO1, m_ProtoType); DDX_Text(pDX, IDC_ENTRYMEMO, m_Memo); DDX_CBString(pDX, IDC_GROUP, m_Group); DDX_CBString(pDX, IDC_BEFORE, m_BeforeEntry); DDX_Check(pDX, IDC_CHECK1, m_UsePassDlg); DDX_Check(pDX, IDC_CHECK2, m_bOptFixed); } BEGIN_MESSAGE_MAP(CSerEntPage, CTreePage) ON_BN_CLICKED(IDC_COMCONFIG, OnComconfig) ON_BN_CLICKED(IDC_KEYFILESELECT, OnKeyfileselect) ON_CONTROL_RANGE(BN_CLICKED, IDC_PROTO1, IDC_PROTO6, OnProtoType) ON_EN_CHANGE(IDC_ENTRYNAME, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_SERVERNAME, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_SOCKNO, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_LOGINNAME, OnUpdateEdit) ON_EN_CHANGE(IDC_PASSWORD, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_TERMNAME, OnUpdateEdit) ON_CONTROL_RANGE(BN_CLICKED, IDC_KANJICODE1, IDC_KANJICODE4, OnUpdateCheck) ON_BN_CLICKED(IDC_CHATEDIT, &CSerEntPage::OnChatEdit) ON_BN_CLICKED(IDC_PROXYSET, &CSerEntPage::OnProxySet) ON_BN_CLICKED(IDC_TERMCAP, &CSerEntPage::OnTermcap) ON_EN_CHANGE(IDC_ENTRYMEMO, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_GROUP, OnUpdateEdit) ON_CBN_EDITCHANGE(IDC_BEFORE, OnUpdateEdit) ON_BN_CLICKED(IDC_CHECK1, OnUpdateOption) ON_BN_CLICKED(IDC_ICONFILE, &CSerEntPage::OnIconfile) ON_BN_CLICKED(IDC_CHECK2, OnUpdateOptFixed) END_MESSAGE_MAP() void CSerEntPage::SetEnableWind() { int n; CWnd *pWnd; static LPCTSTR DefPortName[] = { _T(""), _T("login"), _T("telnet"), _T("ssh"), _T("COM1"), _T("") }; static const struct { int nId; BOOL mode[6]; } ItemTab[] = { /* drect login telnet ssh com pipe */ { IDC_COMCONFIG, { FALSE, FALSE, FALSE, FALSE, TRUE, FALSE } }, { IDC_KEYFILESELECT, { FALSE, FALSE, FALSE, TRUE, FALSE, FALSE } }, { IDC_SOCKNO, { TRUE, TRUE, TRUE, TRUE, TRUE, FALSE } }, { IDC_LOGINNAME, { FALSE, TRUE, TRUE, TRUE, TRUE, TRUE } }, { IDC_PASSWORD, { FALSE, TRUE, TRUE, TRUE, TRUE, TRUE } }, { IDC_TERMNAME, { FALSE, TRUE, TRUE, TRUE, FALSE, FALSE } }, { IDC_PROXYSET, { TRUE, TRUE, TRUE, TRUE, FALSE, FALSE } }, { IDC_TERMCAP, { FALSE, FALSE, TRUE, TRUE, FALSE, FALSE } }, { IDC_CHECK1, { FALSE, TRUE, TRUE, TRUE, TRUE, TRUE } }, { 0 } }; for ( n = 0 ; ItemTab[n].nId != 0 ; n++ ) { if ( (pWnd = GetDlgItem(ItemTab[n].nId)) != NULL ) pWnd->EnableWindow(ItemTab[n].mode[m_ProtoType]); } switch(m_ProtoType) { case PROTO_COMPORT: if ( m_PortName.Left(3).Compare(_T("COM")) != 0 ) m_PortName = m_DefComPort; break; case PROTO_SSH: case PROTO_LOGIN: case PROTO_TELNET: if ( _tstoi(m_PortName) <= 0 ) m_PortName = DefPortName[m_ProtoType]; break; case PROTO_DIRECT: case PROTO_PIPE: break; } UpdateData(FALSE); } ///////////////////////////////////////////////////////////////////////////// // CSerEntPage メッセージ ハンドラ void CSerEntPage::DoInit() { CComSock com(NULL); m_EntryName = m_pSheet->m_pEntry->m_EntryName; m_HostName = m_pSheet->m_pEntry->m_HostNameProvs; m_PortName = m_pSheet->m_pEntry->m_PortName; m_UserName = m_pSheet->m_pEntry->m_UserNameProvs; m_PassName = m_pSheet->m_pEntry->m_PassNameProvs; m_TermName = m_pSheet->m_pEntry->m_TermName; m_IdkeyName = m_pSheet->m_pEntry->m_IdkeyName; m_KanjiCode = m_pSheet->m_pEntry->m_KanjiCode; m_ProtoType = m_pSheet->m_pEntry->m_ProtoType; m_ProxyMode = m_pSheet->m_pEntry->m_ProxyMode; m_ProxyHost = m_pSheet->m_pEntry->m_ProxyHostProvs; m_ProxyPort = m_pSheet->m_pEntry->m_ProxyPort; m_ProxyUser = m_pSheet->m_pEntry->m_ProxyUserProvs; m_ProxyPass = m_pSheet->m_pEntry->m_ProxyPassProvs; m_SSL_Keep = m_pSheet->m_pEntry->m_ProxySSLKeep; m_Memo = m_pSheet->m_pEntry->m_Memo; m_Group = m_pSheet->m_pEntry->m_Group; m_BeforeEntry = m_pSheet->m_pEntry->m_BeforeEntry; m_IconName = m_pSheet->m_pEntry->m_IconName; m_bOptFixed = m_pSheet->m_pEntry->m_bOptFixed; m_ExtEnvStr = m_pSheet->m_pParamTab->m_ExtEnvStr; m_UsePassDlg = (m_pSheet->m_pTextRam->IsOptEnable(TO_RLUSEPASS) ? TRUE : FALSE); m_UseProxyDlg = (m_pSheet->m_pTextRam->IsOptEnable(TO_PROXPASS) ? TRUE : FALSE); if ( m_PortName.Compare(_T("serial")) == 0 ) { com.GetMode(m_HostName); m_PortName = com.m_ComName; } UpdateData(FALSE); } BOOL CSerEntPage::OnInitDialog() { int n, i; CString str; CComboBox *pCombo; CButton *pCheck; DWORD pb = CComSock::AliveComPort(); ASSERT(m_pSheet != NULL && m_pSheet->m_pEntry != NULL); CTreePage::OnInitDialog(); if ( (pCombo = (CComboBox *)GetDlgItem(IDC_SOCKNO)) != NULL ) { for ( n = 1 ; n <= 31 ; n++ ) { str.Format(_T("COM%d"), n); if ( (pb & (1 << n)) != 0 ) { if ( (i = pCombo->FindStringExact((-1), str)) == CB_ERR ) pCombo->AddString(str); if ( m_DefComPort.IsEmpty() ) m_DefComPort = str; } else if ( (i = pCombo->FindStringExact((-1), str)) != CB_ERR ) { pCombo->DeleteString(i); } } } CServerEntryTab *pTab = &(((CMainFrame *)AfxGetMainWnd())->m_ServerEntryTab); if ( (pCombo = (CComboBox *)GetDlgItem(IDC_SERVERNAME)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_HostName; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (pCombo = (CComboBox *)GetDlgItem(IDC_LOGINNAME)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_UserName; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (pCombo = (CComboBox *)GetDlgItem(IDC_TERMNAME)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_TermName; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (pCombo = (CComboBox *)GetDlgItem(IDC_SOCKNO)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_PortName; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (pCombo = (CComboBox *)GetDlgItem(IDC_GROUP)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_Group; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (pCombo = (CComboBox *)GetDlgItem(IDC_BEFORE)) != NULL ) { for ( n = 0 ; n < pTab->m_Data.GetSize() ; n++ ) { str = pTab->m_Data[n].m_EntryName; if ( !str.IsEmpty() && pCombo->FindStringExact((-1), str) == CB_ERR ) pCombo->AddString(str); } } if ( (m_pSheet->m_psh.dwFlags & PSH_NOAPPLYNOW) == 0 && (pCheck = (CButton *)GetDlgItem(IDC_CHECK2)) != NULL ) pCheck->EnableWindow(FALSE); DoInit(); SetEnableWind(); return TRUE; } BOOL CSerEntPage::OnApply() { ASSERT(m_pSheet != NULL && m_pSheet->m_pEntry != NULL); UpdateData(TRUE); m_pSheet->m_pEntry->m_EntryName = m_EntryName; m_pSheet->m_pEntry->m_HostName = m_HostName; m_pSheet->m_pEntry->m_PortName = m_PortName; m_pSheet->m_pEntry->m_UserName = m_UserName; m_pSheet->m_pEntry->m_PassName = m_PassName; m_pSheet->m_pEntry->m_TermName = m_TermName; m_pSheet->m_pEntry->m_IdkeyName = m_IdkeyName; m_pSheet->m_pEntry->m_KanjiCode = m_KanjiCode; m_pSheet->m_pEntry->m_ProtoType = m_ProtoType; m_pSheet->m_pEntry->m_ProxyMode = m_ProxyMode; m_pSheet->m_pEntry->m_ProxyHost = m_ProxyHost; m_pSheet->m_pEntry->m_ProxyPort = m_ProxyPort; m_pSheet->m_pEntry->m_ProxyUser = m_ProxyUser; m_pSheet->m_pEntry->m_ProxyPass = m_ProxyPass; m_pSheet->m_pEntry->m_Memo = m_Memo; m_pSheet->m_pEntry->m_Group = m_Group; m_pSheet->m_pEntry->m_HostNameProvs = m_HostName; m_pSheet->m_pEntry->m_UserNameProvs = m_UserName; m_pSheet->m_pEntry->m_PassNameProvs = m_PassName; m_pSheet->m_pEntry->m_ProxyHostProvs = m_ProxyHost; m_pSheet->m_pEntry->m_ProxyUserProvs = m_ProxyUser; m_pSheet->m_pEntry->m_ProxyPassProvs = m_ProxyPass; m_pSheet->m_pEntry->m_ProxySSLKeep = m_SSL_Keep; m_pSheet->m_pEntry->m_BeforeEntry = m_BeforeEntry; m_pSheet->m_pParamTab->m_ExtEnvStr = m_ExtEnvStr; m_pSheet->m_pTextRam->SetOption(TO_RLUSEPASS, m_UsePassDlg); m_pSheet->m_pTextRam->SetOption(TO_PROXPASS, m_UseProxyDlg); m_pSheet->m_pEntry->m_IconName = m_IconName; m_pSheet->m_pEntry->m_bPassOk = TRUE; m_pSheet->m_pEntry->m_bOptFixed = m_bOptFixed; return TRUE; } void CSerEntPage::OnReset() { ASSERT(m_pSheet != NULL && m_pSheet->m_pEntry != NULL); DoInit(); SetModified(FALSE); } void CSerEntPage::OnComconfig() { CComSock com(NULL); UpdateData(TRUE); if ( m_PortName.Left(3).CompareNoCase(_T("COM")) == 0 ) { com.m_ComPort = (-1); com.GetMode(m_HostName); if ( com.m_ComPort != _tstoi(m_PortName.Mid(3)) ) m_HostName = m_PortName; } com.ConfigDlg(this, m_HostName); UpdateData(FALSE); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnKeyfileselect() { UpdateData(TRUE); CFileDialog dlg(TRUE, _T(""), m_IdkeyName, OFN_HIDEREADONLY, CStringLoad(IDS_FILEDLGALLFILE), this); if ( dlg.DoModal() != IDOK ) { if ( m_IdkeyName.IsEmpty() || MessageBox(CStringLoad(IDS_IDKEYFILEDELREQ), _T("Question"), MB_ICONQUESTION | MB_YESNO) != IDYES ) return; m_IdkeyName.Empty(); } else m_IdkeyName = dlg.GetPathName(); UpdateData(FALSE); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnProtoType(UINT nID) { UpdateData(TRUE); SetEnableWind(); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnUpdateCheck(UINT nID) { SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnUpdateEdit() { SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnUpdateOption() { SetModified(TRUE); m_pSheet->m_ModFlag |= (UMOD_TEXTRAM | UMOD_PARAMTAB); } void CSerEntPage::OnChatEdit() { CChatDlg dlg; dlg.m_Script = m_pSheet->m_pEntry->m_ChatScript; if ( dlg.DoModal() != IDOK ) return; m_pSheet->m_pEntry->m_ChatScript = dlg.m_Script; SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnProxySet() { CProxyDlg dlg; dlg.m_ProxyMode = m_ProxyMode & 7; dlg.m_SSLMode = m_ProxyMode >> 3; dlg.m_ServerName = m_ProxyHost; dlg.m_PortName = m_ProxyPort; dlg.m_UserName = m_ProxyUser; dlg.m_PassWord = m_ProxyPass; dlg.m_SSL_Keep = m_SSL_Keep; dlg.m_UsePassDlg = m_UseProxyDlg; if ( dlg.DoModal() != IDOK ) return; m_ProxyMode = dlg.m_ProxyMode | (dlg.m_SSLMode << 3); m_ProxyHost = dlg.m_ServerName; m_ProxyPort = dlg.m_PortName; m_ProxyUser = dlg.m_UserName; m_ProxyPass = dlg.m_PassWord; m_SSL_Keep = dlg.m_SSL_Keep; m_UseProxyDlg = dlg.m_UsePassDlg; SetModified(TRUE); m_pSheet->m_ModFlag |= (UMOD_ENTRY | UMOD_PARAMTAB); } void CSerEntPage::OnTermcap() { int n; CEnvDlg dlg; CComboBox *pCombo; UpdateData(TRUE); dlg.m_Env.SetNoSort(TRUE); dlg.m_Env.GetString(m_ExtEnvStr); if ( !m_TermName.IsEmpty() ) { dlg.m_Env[_T("TERM")].m_Value = 0; dlg.m_Env[_T("TERM")].m_String = m_TermName; } if ( dlg.DoModal() != IDOK ) return; if ( (n = dlg.m_Env.Find(_T("TERM"))) >= 0 ) { dlg.m_Env[_T("TERM")].m_Value = 0; if ( !dlg.m_Env[_T("TERM")].m_String.IsEmpty() ) m_TermName = dlg.m_Env[_T("TERM")]; } dlg.m_Env.SetString(m_ExtEnvStr); if ( (pCombo = (CComboBox *)GetDlgItem(IDC_TERMNAME)) != NULL ) { if ( pCombo->FindStringExact(0, m_TermName) < 0 ) pCombo->AddString(m_TermName); } UpdateData(FALSE); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_PARAMTAB; } void CSerEntPage::OnIconfile() { UpdateData(TRUE); CFileDialog dlg(TRUE, _T(""), m_IconName, OFN_HIDEREADONLY, CStringLoad(IDS_FILEDLGICONGRAP), this); if ( dlg.DoModal() != IDOK ) { if ( m_IconName.IsEmpty() || MessageBox(CStringLoad(IDS_ICONFILEDELREQ), _T("Question"), MB_ICONQUESTION | MB_YESNO) != IDYES ) return; m_IconName.Empty(); } else m_IconName = dlg.GetPathName(); UpdateData(FALSE); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; } void CSerEntPage::OnUpdateOptFixed() { UpdateData(TRUE); SetModified(TRUE); m_pSheet->m_ModFlag |= UMOD_ENTRY; m_pSheet->m_bOptFixed = m_bOptFixed; }
[ "kmiya@gem.or.jp" ]
kmiya@gem.or.jp
16bf9d5297c295d621ac092971af7e40a9525236
e6df3b7240f76b489d3bd1f4d6017438ddc712f4
/Dropbox/CMPS 109/asg2/asg2/file_sys.cpp
4ca2b932b181bea074307a03e58fdc187f034c41
[]
no_license
lvien/CMPM-120
c4afb1dcb7224e2c4ff1fe23185f3c25b2470379
729c361791567f85ebfa6574253c738a37cb3d46
refs/heads/master
2020-05-20T01:19:26.956952
2019-05-07T06:21:23
2019-05-07T06:21:23
185,308,699
0
0
null
2019-05-07T06:29:22
2019-05-07T02:48:33
C++
UTF-8
C++
false
false
20,295
cpp
// $Id: file_sys.cpp,v 1.6 2018-06-27 14:44:57-07 - - $ #include <iostream> #include <stdexcept> #include <unordered_map> using namespace std; #include "debug.h" #include "file_sys.h" int inode::next_inode_nr {1}; //creates directory name by adding '/' to end string valid_dir(const string& path) { unsigned int pos = path.find_first_of("/"); unsigned int size = path.size()-1; if (pos >= size) //slash char is omitted or at end { if (pos == size) //slash char is at end return path.substr(0,size); //remove slash return string(path); //return as is } return ""; //fail code } struct file_type_hash { size_t operator() (file_type type) const { return static_cast<size_t> (type); } }; ostream& operator<< (ostream& out, file_type type) { static unordered_map<file_type,string,file_type_hash> hash { {file_type::PLAIN_TYPE, "PLAIN_TYPE"}, {file_type::DIRECTORY_TYPE, "DIRECTORY_TYPE"}, }; return out << hash[type]; } ostream& operator<< (ostream& outs, const inode& that) { that.contents->print(); return outs<<""; } inode_state::inode_state() { DEBUGF ('i', "root = " << root << ", cwd = " << cwd << ", prompt = \"" << prompt() << "\""); // the root is a directory root = inode_ptr(new inode(file_type::DIRECTORY_TYPE)); cwd = root; //cwd is the root cwd->contents->set_parent(root,"."); //itself is itself cwd->contents->set_parent(root,".."); //parent is itself } void inode_state::change_prompt(const wordvec& key) { if (key.size() > 1) //user entered something prompt_ = key[1] + ' '; } const string& inode_state::prompt() const { return prompt_; } void inode_state::print(const wordvec& filename) { if (filename.size() > 1) //pathname specified { auto end = filename.size(); for (unsigned int i = 1; i < end; i++) { inode_ptr path_file = find({"",filename[i]}); if (path_file) { //is a directory if (path_file->type() == file_type::DIRECTORY_TYPE) { string path = filename[i]; //no slash for special directories if (path[0] != '.' && path != ".." && path[0] != '/') path = "/"+path; cout<<filename[i]<<":"<<endl; cout<<*path_file<<endl; } else cout<<*path_file<<endl; //is a file } else complain()<<filename[i]+": No such directory exists\n"; } } else { cout<<pwd()<<":"<<endl; cout<<*cwd<<endl; } } void inode_state::print_all(const wordvec& filename) { if (filename.size() > 1) //pathname specified { auto end = filename.size(); for (unsigned int i = 1; i < end; i++) { inode_ptr path_file = find({"",filename[i]}); if (path_file) { //is a directory if (path_file->type() == file_type::DIRECTORY_TYPE) { string path = filename[i]; //no slash for special directories if (path[0] != '.' && path != ".." && path[0] != '/') path = "/"+path; path_file->contents->print_all(path); } else cout<<*path_file<<endl; //is a file } else complain()<<filename[i]+": No such directory"<<endl; } } else cwd->contents->print_all(pwd()); } ostream& operator<< (ostream& out, const inode_state& state) { out << "inode_state: root = " << state.root << ", cwd = " << state.cwd; return out; } string inode_state::pwd(wordvec pathname) { if (pathname.size() == 0) //no argument pathname = cwd_path; //cwd_path string path = ""; path += '/'; if (pathname.size() > 0) { unsigned int end = pathname.size()-1; for (unsigned int i = 0; i < end; i++) path += pathname[i] + "/"; path += pathname[end]; } return path; } inode_ptr inode_state::find(const wordvec& filename) { if (filename.size() > 1) //path is specified { //does path start with '/'? bool isroot = ((filename[1][0] == '/') ? true:false); //turn target path into wordvec wordvec target = split(filename[1], "/"); if (target.size()) { inode_ptr new_dir; if (isroot) //starting from root { //find target directory starting at root if possible new_dir = root->contents->find(target); } else //start at cwd //start search at cwd new_dir = cwd->contents->find(target); if (new_dir) //exists return new_dir; else return nullptr; } } return root; } void inode_state::chdir(const wordvec& cmd) { inode_ptr file = find(cmd); if (file) //does file exist { if (file->type() == file_type::DIRECTORY_TYPE) { if (cmd.size() > 1) //more than one arg cwd_path = update_cwd(split(cmd[1],"/")); //update cwd else cwd_path = {}; //set cwd to root cwd = file; //set new cwd } else complain()<<cmd[1]+" is not a directory"<<endl; } else complain()<<cmd[1]<<": No such directory"<<endl; } size_t inode_state::size() const { return root->contents->size(); } void inode_state::readfile(const wordvec& filename) { if (filename.size() > 1) //filename(s) specified { auto size = filename.size(); //number of files to cat //cat all specified files for (unsigned int i = 1; i < size; i++) { string key = filename[i]; inode_ptr file = cwd; //path specified wordvec path; if (key.find("/") < key.size()) { path = {"", key}; file = find(path); } else //file is within cwd { path = {"",filename[i]}; file = find(path); } if (file) { if (file->contents->type() == file_type::PLAIN_TYPE) cout<<file->contents->readfile()<<endl; else complain()<<key<<" is a directory"<<endl; } else complain()<<key<<": No such file"<<endl; } } else complain()<<"No filename specified"<<endl; } wordvec inode_state::parent_dir (const string& newdata, string& target) { //split into wordvec wordvec path = split(newdata,"/"); if (path.size()) //not root { target = path.back(); //get target file path.pop_back(); if (path.size()) path = {"",pwd(path)}; //put path back as vec else path = {"",""}; return path; } return {}; } inode_ptr inode_state::pull_parent(const string& path) { string filename; //make valid path wordvec dest = parent_dir(path,filename); return find(dest); } bool inode_state::writefile (const wordvec& newdata) { if (newdata.size() > 1) { wordvec content; //contents of file string filename = newdata[1]; //filename inode_ptr parent = cwd; //it's a path if (newdata[1].find("/") < newdata[1].size()) { wordvec path = parent_dir(newdata[1], filename); parent = pull_parent(newdata[1]); if (!parent) //parent dir not found { complain()<<newdata[1] <<": No such directory"<<endl; return false; } if (parent->contents->type() != file_type::DIRECTORY_TYPE) { complain()<<newdata[1] <<" is a file"<<endl; return false; } } //get contents if (newdata.size() > 2) { content = newdata; //remove cmd and pathname content.erase(content.begin()); content.erase(content.begin()); } parent = parent->contents->mkfile(filename); if (parent) //successfully made/overwritten { parent->contents->writefile(content); return true; } else { complain()<<filename<<" is a directory"<<endl; return false; } } complain()<<"No name specified"<<endl; return false; } bool inode_state::rmr(const wordvec &filename) { if (filename.size() > 1) { inode_ptr file = cwd; wordvec path = cwd_path; string target = filename[1]; //remove file within a path if (target.find("/") < target.size()) { path = {"",target}; parent_dir(filename[1], target); //pull file file = find(path); } else file = find(filename); //don't ever try to delete parent folders! //also if file exists if (file && (target != ".." && target != ".")) { if (file == root) { complain()<<"Cannot delete root!"<<endl; return false; } //target is plain file if (file->contents->type() == file_type::PLAIN_TYPE) { //delete file from parent directory file = pull_parent(filename[1]); file->contents->remove(target); } else { file->contents->rmr(); //delete everything within //remove folder itself pull_parent(filename[1])->contents->remove(target); } return true; } else complain()<<target<<": No such file"<<endl; } else complain()<<"No name specified"<<endl; return false; } bool inode_state::remove (const wordvec &filename) { if (filename.size() > 1) { inode_ptr file = cwd; wordvec path; string target = filename[1]; //remove file within a path if (target.find("/") < target.size()) { parent_dir(filename[1], target); //find parent directory //since remove can only be called from directory type file = pull_parent(filename[1]); if (!file) { complain()<<filename[1]<<" is an invalid path"<<endl; return false; } } //don't ever try to delete parent folders! if (target != ".." && target != ".") { if (file->contents->type() == file_type::DIRECTORY_TYPE) { file->contents->remove(target); return true; } complain()<<target<<" is a file"<<endl; } else complain()<<"Access denied"<<endl; } else complain()<<"No name specified"<<endl; return false; } void inode_state::mkdir (const wordvec& dirname) { bool error = false; if (dirname.size() > 1) { unsigned int size = dirname.size(); //get total directories //this can make multiple directories for (unsigned int i = 1; i < size; i++) { //split path into vector string dest = dirname[i]; inode_ptr file = cwd; inode_ptr newest = nullptr; if (dirname[i].find("/") < dirname[i].size()) { parent_dir(dirname[i],dest); file = pull_parent(dirname[i]); if (file) newest = file->contents->mkdir(dest); else { error = true; complain()<<dirname[i]<<" does not exist"<<endl; } } else newest = file->contents->mkdir(dest); //path was made if (newest) //path is valid { newest->contents->set_parent(file, ".."); newest->contents->set_parent(newest,"."); } else if (!error) { complain()<<dest <<": Pathname already exists"<<endl; } } } else complain()<<"No name specified"<<endl; } //turn cmd into a wordvec target path wordvec inode_state::update_cwd(const wordvec& cmd) { wordvec path = cwd_path; unsigned int end = cmd.size(); unsigned int size = path.size(); string dir = ""; for (unsigned int i = 0; i < end; i++) { dir = cmd[i]; //get directory name if (dir == ".."){ if (size > 0) path.pop_back(); //go up one level from cwd } else if (dir != ".") path.push_back(dir); //go down one folder from cwd size--; } return path; } inode::inode(file_type type): inode_nr (next_inode_nr++) { switch (type) { case file_type::PLAIN_TYPE: contents = make_shared<plain_file>(); break; case file_type::DIRECTORY_TYPE: contents = make_shared<directory>(); break; } DEBUGF ('i', "inode " << inode_nr << ", type = " << type); } int inode::get_inode_nr() const { DEBUGF ('i', "inode = " << inode_nr); return inode_nr; } void inode::print_all(const string &path) { contents->print_all(path); } void inode::rmr() { contents->rmr(); } inode_ptr inode::find(const wordvec& path) { return contents->find(path); } size_t inode::size() { return contents->size(); } file_type inode::type() { return contents->type(); } file_error::file_error (const string& what): runtime_error (what) { } file_type plain_file::type() const { return file_type::PLAIN_TYPE; } size_t plain_file::size() const { size_t size = 0; auto end = data.end(); for (auto i = data.begin(); i != end; i++) { size += i->size(); if (i != end-1) size++; } DEBUGF ('i', "size = " << size); return size; } void plain_file::set_parent(const inode_ptr&, const string&){ throw file_error ("is a plain file"); } const wordvec& plain_file::readfile() { DEBUGF ('i', data); return data; } void plain_file::writefile (const wordvec& words) { data = words; } void plain_file::rmr() { throw file_error("is a plain file"); } void plain_file::remove (const string&) { throw file_error ("is a plain file"); } inode_ptr plain_file::mkdir (const string&) { throw file_error ("is a plain file"); } inode_ptr plain_file::mkfile (const string&) { throw file_error ("is a plain file"); } inode_ptr plain_file::find(const wordvec&) { throw file_error ("is a plain file"); } void plain_file::print() { for (auto i = data.begin(); i != data.end(); i++) cout<<*i<<" "; } void plain_file::print_all(const string &) { } size_t directory::size() const { size_t size = dirents.size(); DEBUGF ('i', "size = " << size); return size; } const wordvec& directory::readfile() { throw file_error ("is a directory"); } file_type directory::type() const { return file_type::DIRECTORY_TYPE; } void directory::writefile (const wordvec&) { throw file_error ("is a directory"); } void directory::remove (const string& filename) { DEBUGF ('i', filename); if (file_exists(filename)) { inode_ptr file = dirents[filename]; //get file at index //is plain file if (file->type() == file_type::PLAIN_TYPE) { dirents[filename] = nullptr; dirents.erase(dirents.find(filename)); //erase from map } else if (file->type() == file_type::DIRECTORY_TYPE && file->size() <= 2) { dirents[filename] = nullptr; dirents.erase(dirents.find(filename)); //erase from map } else complain()<<filename<<": Directory is full"<<endl; } else complain()<<filename<<": No such file or directory"<<endl; } void directory::rmr () { auto end = dirents.end(); file_type type; string index; //remove parent directories dirents["."] = nullptr; dirents[".."] = nullptr; dirents.erase(dirents.find(".")); dirents.erase(dirents.find("..")); for (auto i = dirents.begin(); i != end; i++) { type = i->second->type(); index = i->first; if (type == file_type::PLAIN_TYPE) { dirents[index] = nullptr; dirents.erase(dirents.find(index)); //erase from map } else { //recursively remove subdirectories dirents[index]->rmr(); dirents[index] = nullptr; dirents.erase(dirents.find(index)); } } } bool directory::file_exists(const string &name) { return dirents.find(name) != dirents.end(); } void directory::set_parent(const inode_ptr& me, const string& key) { dirents[key] = me; } inode_ptr directory::mkdir (const string& dirname) { // directory name does not exist if (!file_exists(dirname)) { inode_ptr temp(new inode(file_type::DIRECTORY_TYPE)); //create new directory within map dirents[dirname] = temp; return temp; } DEBUGF ('i', dirname); return nullptr; } inode_ptr directory::mkfile (const string& filename) { // filename doesn't exist if (!file_exists(filename)) { //make new plain file inode_ptr temp(new inode(file_type::PLAIN_TYPE)); dirents[filename] = temp; //create new plain file within map return temp; //return newly created file } else { if (dirents[filename]->type() == file_type::PLAIN_TYPE) //return existing file for overwriting return dirents[filename]; } DEBUGF ('i', filename); return nullptr; //directory has same name } inode_ptr directory::find(const wordvec& path) { //recursive function if (path.size() < 1) //no path specified return nullptr; string key = path[0]; //get name of next directory wordvec new_path (path); //remove name of first directory new_path.erase(new_path.begin()); if (file_exists(key)) //name exists { if (new_path.size() > 0) //still more directories to go { //path is a directory if (dirents[key]->type() == file_type::DIRECTORY_TYPE) return dirents[key]->find(new_path); //recursive search } else return dirents[key]; //this is the final directory } return nullptr; //not found } void directory::print() { //loop through table for (auto i = dirents.begin(); i != dirents.end(); i++) { auto index = i->first; //get directory //print size and directory name cout<<" "<<dirents[index]->get_inode_nr() <<" "<<dirents[index]->size()<<" "<<index; //is directory type if (dirents[index]->type() == file_type::DIRECTORY_TYPE) { //not the parent folders if (index != "." && index != "..") cout<<"/"; //indicate it's a directory } cout<<endl; } } void directory::print_all(const string& path) { cout<<path<<":"<<endl; //display path print(); //print this directory first //go through all files in directory for (auto i = dirents.begin(); i != dirents.end(); i++) { auto dir = dirents[i->first]; //is a directory if (dir->type() == file_type::DIRECTORY_TYPE) { //don't go into parent folders if (i->first != "." && i->first != "..") //print slash between only if it is not root dir->print_all(path+((path=="/")?"":"/")+i->first); } } }
[ "lvien@ucsc.edu" ]
lvien@ucsc.edu
af436d2188e72b0cf238e47eb8a3b30e06ca0e65
7b98e0029f2089ad68a47eac29cbe524bba6636e
/src/main.cpp
ff56742d375879ed7976d0f82abedcd49c0cc6ee
[ "BSD-3-Clause" ]
permissive
wwyf/ioat-bench
d3ea03ebe2ff630d514cd330c9782cd0f1f9f8c4
98d9d953c471f0bc22cf70d04a463209385bcec2
refs/heads/main
2023-04-03T02:31:13.484792
2021-03-25T11:14:31
2021-03-25T11:14:31
351,050,910
1
0
null
null
null
null
UTF-8
C++
false
false
13,929
cpp
#include <iostream> #include <vector> #include <algorithm> #include <chrono> #include <spdk/stdinc.h> #include <spdk/ioat.h> #include <spdk/env.h> #include <spdk/queue.h> #include <spdk/string.h> #include <libpmemobj.h> static int init(void) { struct spdk_env_opts opts; spdk_env_opts_init(&opts); opts.name = "ioat_bench"; opts.core_mask = "0x1"; if (spdk_env_init(&opts) < 0) { return 1; } return 0; } // test one channel namespace test1{ static bool probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev) { printf(" Found matching device at %04x:%02x:%02x.%x " "vendor:0x%04x device:0x%04x\n", spdk_pci_device_get_domain(pci_dev), spdk_pci_device_get_bus(pci_dev), spdk_pci_device_get_dev(pci_dev), spdk_pci_device_get_func(pci_dev), spdk_pci_device_get_vendor_id(pci_dev), spdk_pci_device_get_device_id(pci_dev)); return true; } static void attach_cb(void *cb_ctx, struct spdk_pci_device *pci_dev, struct spdk_ioat_chan *ioat) { struct spdk_ioat_chan ** chan_ptr = (struct spdk_ioat_chan **)(cb_ctx); if ( (*chan_ptr) == NULL){ *chan_ptr = ioat; } } struct spdk_ioat_chan * ioat_init_one_chan(void) { struct spdk_ioat_chan * chan = NULL; if (spdk_ioat_probe((void *)(&chan), probe_cb, attach_cb) != 0) { fprintf(stderr, "ioat_probe() failed\n"); return NULL; } return chan; } void ioat_done(void *cb_arg){ int * done = (int*)cb_arg; *done = 1; } void test1(){ struct spdk_ioat_chan * chan = NULL; chan = ioat_init_one_chan(); int length = 16; int * buffer_src = (int *)spdk_dma_zmalloc(length*sizeof(int), sizeof(int), NULL); int * buffer_dst = (int *)spdk_dma_zmalloc(length*sizeof(int), sizeof(int), NULL); std::cout << "buffer_src" << std::endl; for (int i = 0; i < length; i++){ buffer_src[i] = i; std::cout << buffer_src[i] << std::endl; } std::cout << "buffer_dst" << std::endl; for (int i = 0; i < length; i++){ std::cout << buffer_dst[i] << std::endl; } int done = 0; spdk_ioat_submit_copy( chan, &done, ioat_done, buffer_dst, buffer_src, length*sizeof(int) ); while (!done){ spdk_ioat_process_events(chan); } std::cout << "buffer_src" << std::endl; for (int i = 0; i < length; i++){ std::cout << buffer_src[i] << std::endl; } std::cout << "buffer_dst" << std::endl; for (int i = 0; i < length; i++){ std::cout << buffer_dst[i] << std::endl; } spdk_ioat_detach(chan); } } // test one channel namespace bench_spdk_ioatdma_one_chan{ static bool probe_cb(void *cb_ctx, struct spdk_pci_device *pci_dev) { printf(" Found matching device at %04x:%02x:%02x.%x " "vendor:0x%04x device:0x%04x\n", spdk_pci_device_get_domain(pci_dev), spdk_pci_device_get_bus(pci_dev), spdk_pci_device_get_dev(pci_dev), spdk_pci_device_get_func(pci_dev), spdk_pci_device_get_vendor_id(pci_dev), spdk_pci_device_get_device_id(pci_dev)); return true; } static void attach_cb(void *cb_ctx, struct spdk_pci_device *pci_dev, struct spdk_ioat_chan *ioat) { struct spdk_ioat_chan ** chan_ptr = (struct spdk_ioat_chan **)(cb_ctx); if ( (*chan_ptr) == NULL){ *chan_ptr = ioat; } } struct spdk_ioat_chan * ioat_init_one_chan(void) { struct spdk_ioat_chan * chan = NULL; if (spdk_ioat_probe((void *)(&chan), probe_cb, attach_cb) != 0) { fprintf(stderr, "ioat_probe() failed\n"); return NULL; } return chan; } void print_header(){ std::cout << "type" << "," << "block_count" << "," << "block_size" << "," << "duration" << "," << "bandwidth(MB/s)" << "," << "latency(ns/op)"; std::cout << std::endl; } void print_result(const char* type, uint64_t block_count, uint64_t block_size, uint64_t duration){ std::cout << type << "," << block_count << "," << block_size << "," << duration << "," << (block_count * block_size * 1000LL * 1000LL * 1000LL /duration)/(1024*1024) // bandwidth MB/s << "," << duration/block_count; // latency ns/op std::cout << std::endl; } void ioat_done(void *cb_arg){ int * done = (int*)cb_arg; *done = 1; } void spdk_copy(struct spdk_ioat_chan * chan , uint64_t block_count, uint64_t block_size){ int check_count = 16; // prepare copy task char * buffer_src = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); char * buffer_dst = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); // std::cout << "init buffer_src" << std::endl; for (uint64_t i = 0; i < block_count * block_size ; i++){ buffer_src[i] = i % 255; } std::vector<int> iters; for (uint64_t i = 0; i < block_count; i++){ iters.push_back(i); } // std::random_shuffle(iters.begin(), iters.end()); // std::cout << "init ok" << std::endl; int done = 0; int cur_block = 0; uint64_t duration = 0; // ns auto start_time = std::chrono::system_clock::now(); // main loop for (uint64_t i = 0; i < block_count; i++){ cur_block = iters[i]; start_time = std::chrono::system_clock::now(); done = 0; spdk_ioat_submit_copy( chan, &done, ioat_done, buffer_dst + cur_block*block_size, buffer_src + cur_block*block_size, block_size ); while (!done){ spdk_ioat_process_events(chan); } duration += std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::system_clock::now() - start_time).count(); } print_result("ioat", block_count, block_size, duration); // std::cout << "buffer_src" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_src[i] << " "; // } // std::cout << std::endl; // std::cout << "buffer_dst" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_dst[i] << " "; // } // std::cout << std::endl; spdk_dma_free(buffer_dst); spdk_dma_free(buffer_src); } void memcpy_copy(uint64_t block_count, uint64_t block_size){ int check_count = 16; // prepare copy task char * buffer_src = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); char * buffer_dst = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); // std::cout << "init buffer_src" << std::endl; for (uint64_t i = 0; i < block_count * block_size ; i++){ buffer_src[i] = i % 255; } std::vector<int> iters; for (uint64_t i = 0; i < block_count; i++){ iters.push_back(i); } // std::random_shuffle(iters.begin(), iters.end()); // std::cout << "init ok" << std::endl; int done = 0; int cur_block = 0; uint64_t duration = 0; // ns auto start_time = std::chrono::system_clock::now(); // main loop for (uint64_t i = 0; i < block_count; i++){ cur_block = iters[i]; start_time = std::chrono::system_clock::now(); done = 0; memcpy( buffer_dst + cur_block*block_size, buffer_src + cur_block*block_size, block_size ); duration += std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::system_clock::now() - start_time).count(); } print_result("memcpy", block_count, block_size, duration); // std::cout << "buffer_src" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_src[i] << " "; // } // std::cout << std::endl; // std::cout << "buffer_dst" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_dst[i] << " "; // } // std::cout << std::endl; spdk_dma_free(buffer_dst); spdk_dma_free(buffer_src); } void pmem_memcpy_copy(PMEMobjpool * pop, uint64_t block_count, uint64_t block_size){ int check_count = 16; // prepare copy task PMEMoid buffer_dst_oid; pmemobj_zalloc(pop, &buffer_dst_oid, (block_count*block_size)+4096, 0); char * buffer_src = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); char * buffer_dst = ((char *)pmemobj_direct(buffer_dst_oid)) + 48; // std::cout << "init buffer_src" << std::endl; for (uint64_t i = 0; i < block_count * block_size ; i++){ buffer_src[i] = i % 255; } std::vector<int> iters; for (uint64_t i = 0; i < block_count; i++){ iters.push_back(i); } // std::random_shuffle(iters.begin(), iters.end()); // std::cout << "init ok" << std::endl; int done = 0; int cur_block = 0; uint64_t duration = 0; // ns auto start_time = std::chrono::system_clock::now(); // main loop for (uint64_t i = 0; i < block_count; i++){ cur_block = iters[i]; start_time = std::chrono::system_clock::now(); done = 0; // memcpy( // buffer_dst + cur_block*block_size, // buffer_src + cur_block*block_size, // block_size // ); // FIXME: will stall pmemobj_memcpy_persist( pop, buffer_dst + cur_block*block_size, buffer_src + cur_block*block_size, block_size ); duration += std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::system_clock::now() - start_time).count(); } print_result("pmem-memcpy", block_count, block_size, duration); // std::cout << "buffer_src" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_src[i] << " "; // } // std::cout << std::endl; // std::cout << "buffer_dst" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_dst[i] << " "; // } // std::cout << std::endl; spdk_dma_free(buffer_src); pmemobj_free(&buffer_dst_oid); } void pmem_spdk_copy(PMEMobjpool * pop, struct spdk_ioat_chan * chan ,uint64_t block_count, uint64_t block_size){ int check_count = 16; // prepare copy task PMEMoid buffer_dst_oid; pmemobj_zalloc(pop, &buffer_dst_oid, (block_count*block_size)+4096, 0); char * buffer_src = (char *)spdk_dma_zmalloc(block_count*block_size, block_size, NULL); char * buffer_dst = ((char *)pmemobj_direct(buffer_dst_oid)) + 48; // std::cout << "init buffer_src" << std::endl; for (uint64_t i = 0; i < block_count * block_size ; i++){ buffer_src[i] = i % 255; } std::vector<int> iters; for (uint64_t i = 0; i < block_count; i++){ iters.push_back(i); } // std::random_shuffle(iters.begin(), iters.end()); // std::cout << "init ok" << std::endl; int done = 0; int cur_block = 0; uint64_t duration = 0; // ns auto start_time = std::chrono::system_clock::now(); // main loop for (uint64_t i = 0; i < block_count; i++){ cur_block = iters[i]; start_time = std::chrono::system_clock::now(); done = 0; // FIXME: will stall spdk_ioat_submit_copy( chan, &done, ioat_done, buffer_dst + cur_block*block_size, buffer_src + cur_block*block_size, block_size ); while (!done){ spdk_ioat_process_events(chan); } duration += std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::system_clock::now() - start_time).count(); } print_result("pmem-memcpy", block_count, block_size, duration); // std::cout << "buffer_src" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_src[i] << " "; // } // std::cout << std::endl; // std::cout << "buffer_dst" << std::endl; // for (uint64_t i = 0; i < check_count; i++){ // std::cout << (int)buffer_dst[i] << " "; // } // std::cout << std::endl; spdk_dma_free(buffer_src); pmemobj_free(&buffer_dst_oid); } void bench_dram_copy(){ uint64_t one_gb = 1ULL*1024ULL*1024ULL*1024ULL; // uint64_t max_capacity = 2ULL*1024ULL*1024ULL*1024ULL; uint64_t max_capacity = 512ULL*1024ULL*1024ULL; std::string pool_file = "/mnt/pmem/test_write_pool"; std::remove(pool_file.c_str()); sleep(2); PMEMobjpool * pop = pmemobj_create(pool_file.c_str(), "TEST_WRITE", max_capacity + one_gb, 0066); std::vector<uint64_t> block_sizes; std::vector<uint64_t> block_counts; // uint64_t block_size_start = 64; uint64_t block_size_start = 4096; for (uint64_t block_size = block_size_start; block_size <= 1024*1024*8; block_size *= 2){ block_sizes.push_back(block_size); block_counts.push_back(max_capacity/block_size); } int length_block_sizes = block_sizes.size(); struct spdk_ioat_chan * chan = NULL; chan = ioat_init_one_chan(); print_header(); for (int i = 0; i < length_block_sizes; i++){ spdk_copy(chan, block_counts[i],block_sizes[i]); memcpy_copy(block_counts[i],block_sizes[i]); pmem_memcpy_copy(pop, block_counts[i], block_sizes[i]); pmem_spdk_copy(pop, chan, block_counts[i], block_sizes[i]); } spdk_ioat_detach(chan); pmemobj_close(pop); std::remove(pool_file.c_str()); } } // namespace bench_spdk_ioatdma_queue_depth { // struct ioat_task { // void* buffer_src; // void* buffer_dst; // } // void prepare_ioat_task(){ // } // } int main(){ std::cout << "hello, spdk" << std::endl; if (init() != 0) { return 1; } // test1::test1(); bench_spdk_ioatdma_one_chan::bench_dram_copy(); return 0; }
[ "w.y.ff@163.com" ]
w.y.ff@163.com
93691f8d1e9152be6515f7d90a230aef5c424fa7
74c436dbeb958516a93eab5b5ebb916464e7dc75
/main.cpp
e687123d03bc57152cb62849b802b6a924bbee3d
[]
no_license
fan0210/divide_dataset
18fc71b4015774886c7f99550d02b34b2589df3f
e37dabda1dfaf7b150f320bfbdb25e45f662b27b
refs/heads/master
2020-05-09T02:08:23.309670
2019-04-12T09:46:47
2019-04-12T09:46:47
180,979,415
0
0
null
null
null
null
GB18030
C++
false
false
4,287
cpp
#ifdef _WIN32 #include <filesystem> namespace fs = std::tr2::sys; #else #include <boost/filesystem.hpp> namespace fs = boost::filesystem; #endif #include <iostream> #include <random> int divede(const double *rate, //分割比例,rate[0]为训练数据比例,rate[1]为测试数据比例 const std::string &srcPath, //需要分割的数据path,注意默认为path下还会有所有数据的种类目录比如 people1,people2,car1,car2,car3等,而不是图像文件和xml文件 const std::string &trainPath, //存放分割得到的训练数据的目录 const std::string &testPath, //存放分割得到的测试数据的目录 const std::string &extension = ".jpg" //图像扩展名 ) { if (!fs::exists(srcPath)) { std::cout << "path[ " << srcPath << " ] doesn't exists." << std::endl; return EXIT_FAILURE; } if (!fs::exists(trainPath)) fs::create_directory(trainPath); if (!fs::exists(testPath)) fs::create_directory(testPath); std::cout << "[\n"<< trainPath <<"\n"<< testPath <<"\n]创建完毕.."<< std::endl << std::endl; std::vector<std::string> filenames; fs::path path(srcPath); fs::directory_iterator endIter; for (fs::directory_iterator iter(path); iter != endIter; ++iter) { std::string category_file = iter->path().filename().string(); std::string train_category_file = trainPath + "/" + category_file; std::string test_category_file = testPath + "/" + category_file; std::cout << "find category " << category_file << std::endl; if (!fs::exists(train_category_file)) fs::create_directory(train_category_file); if (!fs::exists(test_category_file)) fs::create_directory(test_category_file); fs::path dirPath(iter->path()); fs::directory_iterator dirEndIter; for (fs::directory_iterator fileIter(dirPath); fileIter != dirEndIter; ++fileIter) { if (fileIter->path().extension() == extension) { std::string filename = "/" + category_file + "/" + fileIter->path().filename().string(); filename.erase(filename.find(extension), extension.size()); filenames.push_back(filename); } } } std::cout << "[\n" << trainPath << "\n" << testPath << "\n]下的category文件夹创建完毕..\n" << std::endl; std::cout << "共有 " << filenames.size() << " 条数据\n" << std::endl; std::cout << "开始划分数据..\n" << std::endl; std::random_shuffle(filenames.begin(), filenames.end()); size_t size = filenames.size(); size_t progress_count = size / 100; size_t train_num = rate[0] * size; #ifdef _WIN32 auto copy_option = fs::copy_options::overwrite_existing; #else auto copy_option = fs::copy_option::overwrite_if_exists; #endif for (int i = 0; i < size; ++i) { if (i%progress_count == 0) std::cout << "已完成 [ " << i / progress_count << "% ].." << std::endl; if (i < train_num) { std::string src_img_path = srcPath + filenames[i]+ extension; std::string tar_img_path = trainPath + filenames[i]+ extension; std::string src_xml_path = srcPath + filenames[i] + ".xml"; std::string tar_xml_path = trainPath + filenames[i] + ".xml"; fs::copy_file(src_img_path, tar_img_path, copy_option); fs::copy_file(src_xml_path, tar_xml_path, copy_option); } else { std::string src_img_path = srcPath + filenames[i] + extension; std::string tar_img_path = testPath + filenames[i] + extension; std::string src_xml_path = srcPath + filenames[i] + ".xml"; std::string tar_xml_path = testPath + filenames[i] + ".xml"; fs::copy_file(src_img_path, tar_img_path, copy_option); fs::copy_file(src_xml_path, tar_xml_path, copy_option); } } return EXIT_SUCCESS; } int main() { int EXIT_STATUS = EXIT_SUCCESS; double divide_rate[2]{ 0.8,0.2}; std::string srcPath = "D:/BaiduNetdiskDownload/data_training_V4/data"; std::string trainPath = "D:/BaiduNetdiskDownload/data_training_V4/data_train"; std::string testPath = "D:/BaiduNetdiskDownload/data_training_V4/data_test"; EXIT_STATUS = divede(divide_rate, srcPath, trainPath, testPath); std::cout << "数据划分完成!\n" << std::endl; std::cout << "Please check divided data in\n" << trainPath << "\n" << testPath << std::endl; system("pause"); return EXIT_STATUS; }
[ "noreply@github.com" ]
fan0210.noreply@github.com
cc080c209ba4b765ba1e65d8cbf0f794b5fe94a7
f23061a39d24b6a0f4d165b6ead11e767dbea35a
/1/Ex2.cpp
77f781a1723e9f7a8f5fce67055d5a1749cc3dce
[]
no_license
Dobrovenskis/C_prog
909a59745ae9e4bc8138558b4b413a2a92effdb7
ba0be5e3ad805a710abd37f7ce3f7004dca93673
refs/heads/master
2023-04-23T21:00:13.168984
2021-05-17T08:51:23
2021-05-17T08:51:23
334,923,133
0
0
null
null
null
null
UTF-8
C++
false
false
191
cpp
#include <iostream> #include <math.h> int main() { int x; int y; std::cin >> x; std::cin >> y; auto z = sqrt(x*x + y*y); std::cout << z << std::endl; return 0; }
[ "dobrovenskis.rv@phystech.edu" ]
dobrovenskis.rv@phystech.edu
8a6012f0f65d90488cb20f2c804e7a03269c57bd
3b084e3dd39850597bdc22ca8accb4c84706b643
/Computer Graphics Prticl E/FractalsSerpienskyTriangle.cpp
8e571c4d3dd2aebb2bd813265232bec55cfd0137
[]
no_license
prasadgujar/Programming
bc429430056db6b5d1bea23df4a66af800861e0e
3622ba240f3727c27ce26e70bfeafffb1553f6b7
refs/heads/master
2021-01-25T16:59:54.056472
2018-01-14T12:37:17
2018-01-14T12:37:17
102,753,402
0
0
null
null
null
null
UTF-8
C++
false
false
636
cpp
#include<stdio.h> #include<graphics.h> void drawtriangle(int x1, int y1, int x2, int y2, int x3, int y3) { if(x1-x2 > 4) { line(x1,y1,x2,y2); line(x2,y2,x3,y3); line(x3,y3,x1,y1); drawtriangle(x1,y1,(x1+x2)/2, (y1+y2)/2, (x1+x3)/2, (y1+y3)/2); drawtriangle((x1+x2)/2, (y1+y2)/2,x2,y2, (x2+x3)/2, (y2+y3)/2); drawtriangle((x1+x3)/2, (y1+y3)/2,(x2+x3)/2, (y2+y3)/2, x3, y3); } return; } int main() { int gd=DETECT, gm; initgraph(&gd,&gm,""); drawtriangle(getmaxx()/2, 0, 0, getmaxy(), getmaxx(), getmaxy()); getch(); closegraph(); return(0); }
[ "prasadgujar16@gmail.com" ]
prasadgujar16@gmail.com
c66813dc27d9e2abdd65f8383ff554f59fae05f5
0a60b3b6e8107b9babb1d2681328e11e32a4fc66
/Threader/Spec/MSWin/src/winntThrMgr.cpp
36a13b976f7c7442454ed5b1a617b934aaec3661
[]
no_license
hugodro/Plzen-GenComp
9857a2f372c89058218ae7fafb4f06c429563981
b6df4d06b685b2e8e67ac1a08b343b8deaaac275
refs/heads/master
2022-07-16T22:55:10.229262
2020-05-20T01:11:49
2020-05-20T01:11:49
265,406,873
0
0
null
null
null
null
UTF-8
C++
false
false
902
cpp
/************************************************** * File: winntThrMgr.cc. * Desc: Implementation of the WntThreadManager class * Module: AkraLog : JavaKit. * Rev: 23 septembre 1997 : REV 0 : Hugo DesRosiers : Creation. **************************************************/ #include "winntThread.h" #include "winntThrMgr.h" WntThreadManager::WntThreadManager(JVCup *aCup) : JVThreadManager(aCup) { } void WntThreadManager::lowLevelInit(void) { centralCond= new WntJVCondition(); centralLock= new WntJVMutex(); } JVThread *WntThreadManager::createThread(unsigned int anID, JVThreadSet *aSet) { return (JVThread *)new WntJVThread(anID, aSet); } JVThread *WntThreadManager::createThread(unsigned int anID, JVThread *aParent) { return (JVThread *)new WntJVThread(anID, aParent); } JVSynchronizer *WntThreadManager::createSynchronizer(void) { return new WntJVSynchro(); }
[ "" ]
76da9a5aaa8041d370e4b1cbe3d8261f96292b98
83f4d580e60eeceaf8587463d2c3e94cd0001ee6
/timetable-generator/timetable-generator/weighting.hpp
7394dde292fb9e2619e4b77d2e6351134bc1672e
[ "MIT" ]
permissive
ApplePy/timetable-generator
36ee0dd88cc0e56b68c079a9de5aafcdbca169af
fb4d7ede66ed17f3c2c0f760f5d836b90b4bd8c6
refs/heads/master
2021-05-31T03:12:12.105994
2016-02-10T16:20:29
2016-02-10T16:20:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,615
hpp
// // weighting.hpp // timetable-generator // // Created by Darryl Murray on 2015-06-30. // Copyright © 2015 Darryl Murray. All rights reserved. // #ifndef weighting_cpp #define weighting_cpp #include <vector> #include <string> #include <cmath> #include "dist/json/json.h" #include "math_funcs.hpp" #include <assert.h> using std::vector; using std::string; using std::pow; using Json::Value; //EXTERNAL VARAIBLES extern std::mutex globalMutex; extern const std::vector<std::string> componentsList; //DECLARATIONS /**"weight_course" helper function Covers weighting overlap into lunch time, distance from 8:30am, and weights longer courses heavier since they're more difficult to move. */ double weight_time(const int startTime, const int endTime); ///"weight_course" helper function void weight_component(Value& course, const string selector); /** Weight design: Each course's component starts off at a 5000 weighting Each course component's weight gets subtracted by the formula x^1.2 where x is the number of minutes from 8:30am A course component that goes into the 12:00-1:00pm block is subtracted 800 weighting points A course component gets 300/60 * x added to it's weighting, where x is number of minutes the component consumes The final weighting is subtracted by log_10(x)*1000, where x is the number of sections the course has If a component section has multiple classes, weight each one, then find the mean If a class is taught by Quazi Rahman, it gets added a 5000 weighting */ void weight_course(vector<Value>::iterator coursePtr); #endif /* weighting_cpp */
[ "darrylmurray@me.com" ]
darrylmurray@me.com
68791f90707df70b74e962ae48c2cd8d0f916da3
021cc0d46ba9bbfdb4746bb695b7dc1fb78dfc47
/RenderEngine/GraphicsPad/RenderEngine/VertexShaderInfo.h
94e206e963f9326e2d66eab03efb47ee19916881
[]
no_license
Andrew199617/Imagine
1407057d989fda993e541565acc218a9de6152fa
f2f0f0296433995dec9bbf7a3bcbea15b73209df
refs/heads/master
2021-01-17T20:50:47.782839
2017-02-14T20:25:49
2017-02-14T20:25:49
59,882,742
0
0
null
null
null
null
UTF-8
C++
false
false
1,207
h
#pragma once #include "GL\glew.h" #pragma warning(push) #pragma warning (disable:4201) #include <glm.hpp> #pragma warning(pop) #include <string> #include "..\ConfigReader.h" class VertexShaderInfo { public: VertexShaderInfo(const char* path = "..\\Graphicspad\\Shader\\VertexShaderCode.glsl"); ~VertexShaderInfo(); std::string readShaderCode(const char* filename); bool checkShaderStatus(GLuint shaderID); bool checkProgStatus(GLuint programID); void installShader(GLuint fragmentShaderID); void useProgram(); GLuint getProgramID(); public: //UL = UniformLocation const char* shaderLocation; GLuint programID; GLint uPercentLerped; static float percentLerped; GLint uLightPositionUL; static glm::vec3 lightPosition; GLint percentRippledUniformLocaton; GLint densityUniformLocation; GLint frequencyUniformLocation; float percentRippled; float density; static float uMin, uMax; static float uR; static float uD; GLuint uObjectColor; GLint uDUniformLocation; GLint uMinUL, uMaxUL; GLint uTexCoordOffsetUL; GLint uIsBumpedUL; GLint uModelViewMatrixUL; GLint uProjectionMatrixUL; GLint uModelViewProjectionMatrixUL; GLint uNormalMatrixUL; static GLuint uRenderedTexUL; };
[ "andrewmauro199617@yahoo.com" ]
andrewmauro199617@yahoo.com
93d06216b1f07070b5e5246937eaaa9aa06bb3d3
3a7cea52cbc6dd0394a2f164516f770e4bff818d
/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
ab5c97918e6bbb99e188892754c638a28e1aa1cd
[ "BSD-3-Clause" ]
permissive
gyf821/chromium
d73b4219963b6827ecd9a8cf9995147dcf10cafd
04968fe41e04b5f33305d9584561909760d9c3c7
refs/heads/master
2023-03-04T13:49:23.432721
2017-06-02T22:34:00
2017-06-02T22:34:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
18,783
cc
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.h" #include <vector> #include "base/android/jni_string.h" #include "base/bind.h" #include "base/guid.h" #include "base/logging.h" #include "base/memory/ptr_util.h" #include "chrome/browser/android/offline_pages/downloads/offline_page_infobar_delegate.h" #include "chrome/browser/android/offline_pages/downloads/offline_page_notification_bridge.h" #include "chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h" #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" #include "chrome/browser/android/offline_pages/offline_page_utils.h" #include "chrome/browser/android/offline_pages/recent_tab_helper.h" #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" #include "chrome/browser/android/tab_android.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile_android.h" #include "components/offline_pages/core/background/request_coordinator.h" #include "components/offline_pages/core/client_namespace_constants.h" #include "components/offline_pages/core/client_policy_controller.h" #include "components/offline_pages/core/downloads/download_ui_item.h" #include "components/offline_pages/core/offline_page_feature.h" #include "components/offline_pages/core/offline_page_model.h" #include "content/public/browser/browser_context.h" #include "content/public/browser/download_manager.h" #include "content/public/browser/download_url_parameters.h" #include "content/public/browser/navigation_entry.h" #include "content/public/browser/web_contents.h" #include "jni/OfflinePageDownloadBridge_jni.h" #include "net/base/filename_util.h" #include "net/traffic_annotation/network_traffic_annotation.h" #include "url/gurl.h" using base::android::AttachCurrentThread; using base::android::ConvertJavaStringToUTF8; using base::android::ConvertUTF8ToJavaString; using base::android::ConvertUTF16ToJavaString; using base::android::JavaParamRef; using base::android::ScopedJavaGlobalRef; using base::android::ScopedJavaLocalRef; namespace offline_pages { namespace android { namespace { class DownloadUIAdapterDelegate : public DownloadUIAdapter::Delegate { public: explicit DownloadUIAdapterDelegate(OfflinePageModel* model); // DownloadUIAdapter::Delegate bool IsVisibleInUI(const ClientId& client_id) override; bool IsTemporarilyHiddenInUI(const ClientId& client_id) override; void SetUIAdapter(DownloadUIAdapter* ui_adapter) override; private: // Not owned, cached service pointer. OfflinePageModel* model_; }; DownloadUIAdapterDelegate::DownloadUIAdapterDelegate(OfflinePageModel* model) : model_(model) {} bool DownloadUIAdapterDelegate::IsVisibleInUI(const ClientId& client_id) { const std::string& name_space = client_id.name_space; return model_->GetPolicyController()->IsSupportedByDownload(name_space) && base::IsValidGUID(client_id.id); } bool DownloadUIAdapterDelegate::IsTemporarilyHiddenInUI( const ClientId& client_id) { return false; } void DownloadUIAdapterDelegate::SetUIAdapter(DownloadUIAdapter* ui_adapter) {} // TODO(dewittj): Move to Download UI Adapter. content::WebContents* GetWebContentsFromJavaTab( const ScopedJavaGlobalRef<jobject>& j_tab_ref) { JNIEnv* env = AttachCurrentThread(); TabAndroid* tab = TabAndroid::GetNativeTab(env, j_tab_ref); if (!tab) return nullptr; return tab->web_contents(); } void SavePageIfNotNavigatedAway(const GURL& url, const GURL& original_url, const ScopedJavaGlobalRef<jobject>& j_tab_ref) { content::WebContents* web_contents = GetWebContentsFromJavaTab(j_tab_ref); if (!web_contents) return; // This ignores fragment differences in URLs, bails out only if tab has // navigated away and not just scrolled to a fragment. GURL current_url = web_contents->GetLastCommittedURL(); if (!OfflinePageUtils::EqualsIgnoringFragment(current_url, url)) return; offline_pages::ClientId client_id; client_id.name_space = offline_pages::kDownloadNamespace; client_id.id = base::GenerateGUID(); int64_t request_id = OfflinePageModel::kInvalidOfflineId; if (offline_pages::IsBackgroundLoaderForDownloadsEnabled()) { // Post disabled request before passing the download task to the tab helper. // This will keep the request persisted in case Chrome is evicted from RAM // or closed by the user. // Note: the 'disabled' status is not persisted (stored in memory) so it // automatically resets if Chrome is re-started. offline_pages::RequestCoordinator* request_coordinator = offline_pages::RequestCoordinatorFactory::GetForBrowserContext( web_contents->GetBrowserContext()); if (request_coordinator) { offline_pages::RequestCoordinator::SavePageLaterParams params; params.url = current_url; params.client_id = client_id; params.availability = RequestCoordinator::RequestAvailability::DISABLED_FOR_OFFLINER; params.original_url = original_url; request_id = request_coordinator->SavePageLater(params); } else { DVLOG(1) << "SavePageIfNotNavigatedAway has no valid coordinator."; } } // Pass request_id to the current tab's helper to attempt download right from // the tab. If unsuccessful, it'll enable the already-queued request for // background offliner. Same will happen if Chrome is terminated since // 'disabled' status of the request is RAM-stored info. offline_pages::RecentTabHelper* tab_helper = RecentTabHelper::FromWebContents(web_contents); if (!tab_helper) { if (request_id != OfflinePageModel::kInvalidOfflineId) { offline_pages::RequestCoordinator* request_coordinator = offline_pages::RequestCoordinatorFactory::GetForBrowserContext( web_contents->GetBrowserContext()); if (request_coordinator) request_coordinator->EnableForOffliner(request_id, client_id); else DVLOG(1) << "SavePageIfNotNavigatedAway has no valid coordinator."; } return; } tab_helper->ObserveAndDownloadCurrentPage(client_id, request_id); OfflinePageNotificationBridge notification_bridge; notification_bridge.ShowDownloadingToast(); } void DuplicateCheckDone(const GURL& url, const GURL& original_url, const ScopedJavaGlobalRef<jobject>& j_tab_ref, OfflinePageUtils::DuplicateCheckResult result) { if (result == OfflinePageUtils::DuplicateCheckResult::NOT_FOUND) { SavePageIfNotNavigatedAway(url, original_url, j_tab_ref); return; } content::WebContents* web_contents = GetWebContentsFromJavaTab(j_tab_ref); if (!web_contents) return; bool duplicate_request_exists = result == OfflinePageUtils::DuplicateCheckResult::DUPLICATE_REQUEST_FOUND; OfflinePageInfoBarDelegate::Create( base::Bind(&SavePageIfNotNavigatedAway, url, original_url, j_tab_ref), url, duplicate_request_exists, web_contents); } void ToJavaOfflinePageDownloadItemList( JNIEnv* env, jobject j_result_obj, const std::vector<const DownloadUIItem*>& items) { for (const auto* item : items) { Java_OfflinePageDownloadBridge_createDownloadItemAndAddToList( env, j_result_obj, ConvertUTF8ToJavaString(env, item->guid), ConvertUTF8ToJavaString(env, item->url.spec()), item->download_state, item->download_progress_bytes, ConvertUTF16ToJavaString(env, item->title), ConvertUTF8ToJavaString(env, item->target_path.value()), item->start_time.ToJavaTime(), item->total_bytes); } } ScopedJavaLocalRef<jobject> ToJavaOfflinePageDownloadItem( JNIEnv* env, const DownloadUIItem& item) { return Java_OfflinePageDownloadBridge_createDownloadItem( env, ConvertUTF8ToJavaString(env, item.guid), ConvertUTF8ToJavaString(env, item.url.spec()), item.download_state, item.download_progress_bytes, ConvertUTF16ToJavaString(env, item.title), ConvertUTF8ToJavaString(env, item.target_path.value()), item.start_time.ToJavaTime(), item.total_bytes); } std::vector<int64_t> FilterRequestsByGuid( std::vector<std::unique_ptr<SavePageRequest>> requests, const std::string& guid, ClientPolicyController* policy_controller) { std::vector<int64_t> request_ids; for (const auto& request : requests) { if (request->client_id().id == guid && policy_controller->IsSupportedByDownload( request->client_id().name_space)) { request_ids.push_back(request->request_id()); } } return request_ids; } void CancelRequestCallback(const MultipleItemStatuses&) { // Results ignored here, as UI uses observer to update itself. } void CancelRequestsContinuation( content::BrowserContext* browser_context, const std::string& guid, std::vector<std::unique_ptr<SavePageRequest>> requests) { RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context); if (coordinator) { std::vector<int64_t> request_ids = FilterRequestsByGuid( std::move(requests), guid, coordinator->GetPolicyController()); coordinator->RemoveRequests(request_ids, base::Bind(&CancelRequestCallback)); } else { LOG(WARNING) << "CancelRequestsContinuation has no valid coordinator."; } } void PauseRequestsContinuation( content::BrowserContext* browser_context, const std::string& guid, std::vector<std::unique_ptr<SavePageRequest>> requests) { RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context); if (coordinator) coordinator->PauseRequests(FilterRequestsByGuid( std::move(requests), guid, coordinator->GetPolicyController())); else LOG(WARNING) << "PauseRequestsContinuation has no valid coordinator."; } void ResumeRequestsContinuation( content::BrowserContext* browser_context, const std::string& guid, std::vector<std::unique_ptr<SavePageRequest>> requests) { RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context); if (coordinator) coordinator->ResumeRequests(FilterRequestsByGuid( std::move(requests), guid, coordinator->GetPolicyController())); else LOG(WARNING) << "ResumeRequestsContinuation has no valid coordinator."; } } // namespace OfflinePageDownloadBridge::OfflinePageDownloadBridge( JNIEnv* env, const JavaParamRef<jobject>& obj, DownloadUIAdapter* download_ui_adapter, content::BrowserContext* browser_context) : weak_java_ref_(env, obj), download_ui_adapter_(download_ui_adapter), browser_context_(browser_context) { DCHECK(download_ui_adapter_); download_ui_adapter_->AddObserver(this); } OfflinePageDownloadBridge::~OfflinePageDownloadBridge() {} // static bool OfflinePageDownloadBridge::Register(JNIEnv* env) { return RegisterNativesImpl(env); } void OfflinePageDownloadBridge::Destroy(JNIEnv* env, const JavaParamRef<jobject>&) { download_ui_adapter_->RemoveObserver(this); delete this; } void OfflinePageDownloadBridge::GetAllItems( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jobject>& j_result_obj) { DCHECK(j_result_obj); std::vector<const DownloadUIItem*> items = download_ui_adapter_->GetAllItems(); ToJavaOfflinePageDownloadItemList(env, j_result_obj, items); } ScopedJavaLocalRef<jobject> OfflinePageDownloadBridge::GetItemByGuid( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); const DownloadUIItem* item = download_ui_adapter_->GetItem(guid); if (item == nullptr) return ScopedJavaLocalRef<jobject>(); return ToJavaOfflinePageDownloadItem(env, *item); } void OfflinePageDownloadBridge::DeleteItemByGuid( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); download_ui_adapter_->DeleteItem(guid); } jlong OfflinePageDownloadBridge::GetOfflineIdByGuid( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); return download_ui_adapter_->GetOfflineIdByGuid(guid); } void OfflinePageDownloadBridge::StartDownload( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jobject>& j_tab) { TabAndroid* tab = TabAndroid::GetNativeTab(env, j_tab); if (!tab) return; content::WebContents* web_contents = tab->web_contents(); if (!web_contents) return; GURL url = web_contents->GetLastCommittedURL(); if (url.is_empty()) return; GURL original_url = offline_pages::OfflinePageUtils::GetOriginalURLFromWebContents( web_contents); // If the page is not a HTML page, route to DownloadManager. if (!offline_pages::OfflinePageUtils::CanDownloadAsOfflinePage( url, web_contents->GetContentsMimeType())) { content::DownloadManager* dlm = content::BrowserContext::GetDownloadManager( web_contents->GetBrowserContext()); std::unique_ptr<content::DownloadUrlParameters> dl_params( content::DownloadUrlParameters::CreateForWebContentsMainFrame( web_contents, url)); content::NavigationEntry* entry = web_contents->GetController().GetLastCommittedEntry(); // |entry| should not be null since otherwise an empty URL is returned from // calling GetLastCommittedURL and we should bail out earlier. DCHECK(entry); content::Referrer referrer = content::Referrer::SanitizeForRequest(url, entry->GetReferrer()); dl_params->set_referrer(referrer); dl_params->set_prefer_cache(true); dl_params->set_prompt(false); dlm->DownloadUrl(std::move(dl_params), NO_TRAFFIC_ANNOTATION_YET); return; } ScopedJavaGlobalRef<jobject> j_tab_ref(env, j_tab); OfflinePageUtils::CheckDuplicateDownloads( tab->GetProfile()->GetOriginalProfile(), url, base::Bind(&DuplicateCheckDone, url, original_url, j_tab_ref)); } void OfflinePageDownloadBridge::CancelDownload( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context_); if (coordinator) { coordinator->GetAllRequests( base::Bind(&CancelRequestsContinuation, browser_context_, guid)); } else { LOG(WARNING) << "CancelDownload has no valid coordinator."; } } void OfflinePageDownloadBridge::PauseDownload( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context_); if (coordinator) { coordinator->GetAllRequests( base::Bind(&PauseRequestsContinuation, browser_context_, guid)); } else { LOG(WARNING) << "PauseDownload has no valid coordinator."; } } void OfflinePageDownloadBridge::ResumeDownload( JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jstring>& j_guid) { std::string guid = ConvertJavaStringToUTF8(env, j_guid); RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context_); if (coordinator) { coordinator->GetAllRequests( base::Bind(&ResumeRequestsContinuation, browser_context_, guid)); } else { LOG(WARNING) << "ResumeDownload has no valid coordinator."; } } void OfflinePageDownloadBridge::ResumePendingRequestImmediately( JNIEnv* env, const JavaParamRef<jobject>& obj) { RequestCoordinator* coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context_); if (coordinator) coordinator->StartImmediateProcessing(base::Bind([](bool result) {})); else LOG(WARNING) << "ResumePendingRequestImmediately has no valid coordinator."; } void OfflinePageDownloadBridge::ItemsLoaded() { JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jobject> obj = weak_java_ref_.get(env); if (obj.is_null()) return; Java_OfflinePageDownloadBridge_downloadItemsLoaded(env, obj); } void OfflinePageDownloadBridge::ItemAdded(const DownloadUIItem& item) { JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jobject> obj = weak_java_ref_.get(env); if (obj.is_null()) return; Java_OfflinePageDownloadBridge_downloadItemAdded( env, obj, ToJavaOfflinePageDownloadItem(env, item)); } void OfflinePageDownloadBridge::ItemDeleted(const std::string& guid) { JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jobject> obj = weak_java_ref_.get(env); if (obj.is_null()) return; Java_OfflinePageDownloadBridge_downloadItemDeleted( env, obj, ConvertUTF8ToJavaString(env, guid)); } void OfflinePageDownloadBridge::ItemUpdated(const DownloadUIItem& item) { JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jobject> obj = weak_java_ref_.get(env); if (obj.is_null()) return; Java_OfflinePageDownloadBridge_downloadItemUpdated( env, obj, ToJavaOfflinePageDownloadItem(env, item)); } static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj, const JavaParamRef<jobject>& j_profile) { content::BrowserContext* browser_context = ProfileAndroid::FromProfileAndroid(j_profile); OfflinePageModel* offline_page_model = OfflinePageModelFactory::GetForBrowserContext(browser_context); DCHECK(offline_page_model); DownloadUIAdapter* adapter = DownloadUIAdapter::FromOfflinePageModel(offline_page_model); if (!adapter) { RequestCoordinator* request_coordinator = RequestCoordinatorFactory::GetForBrowserContext(browser_context); DCHECK(request_coordinator); adapter = new DownloadUIAdapter( offline_page_model, request_coordinator, base::MakeUnique<DownloadUIAdapterDelegate>(offline_page_model)); DownloadUIAdapter::AttachToOfflinePageModel(base::WrapUnique(adapter), offline_page_model); } return reinterpret_cast<jlong>( new OfflinePageDownloadBridge(env, obj, adapter, browser_context)); } } // namespace android } // namespace offline_pages
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
d7b92cc101857c02479909be7b29977a559416df
c46bf728fce5b554ee947f45f0acd2303f5af205
/samples/deeplearning/gxm/include/Solver.hpp
ac33e5a3ed5db2e045a7b609d86049174a6031d3
[ "BSD-3-Clause" ]
permissive
adarshpatil/libxsmm
25af4c9b3467a5ac2dc4d243508f5b80578b2307
26e329eb26e1f5a925d92a0a46bb30e6e3af423d
refs/heads/master
2020-03-09T15:57:37.146639
2018-04-10T01:27:44
2018-04-10T01:27:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,880
hpp
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ** Redistribution and use in source and binary forms, with or without ** ** modification, are permitted provided that the following conditions ** ** are met: ** ** 1. Redistributions of source code must retain the above copyright ** ** notice, this list of conditions and the following disclaimer. ** ** 2. Redistributions in binary form must reproduce the above copyright ** ** notice, this list of conditions and the following disclaimer in the ** ** documentation and/or other materials provided with the distribution. ** ** 3. Neither the name of the copyright holder nor the names of its ** ** contributors may be used to endorse or promote products derived ** ** from this software without specific prior written permission. ** ** ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** ** HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED ** ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ** ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ** ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ** ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ******************************************************************************/ /* Sasikanth Avancha, Dhiraj Kalamkar (Intel Corp.) ******************************************************************************/ #pragma once #include <string> #include "assert.h" #include "MLNode.hpp" #include "Engine.hpp" #include <math.h> using namespace std; class SolverParams : public MLParams { public: SolverParams(void){} virtual ~SolverParams(void) {} void setLRPolicy(string p) {lr_policy_ = p;} string getLRPolicy() { return lr_policy_; } void setGamma(float g) { gamma_ = g; } float getGamma() { return gamma_; } void setPower(float p) { power_ = p; } float getPower() { return power_; } void setStepSize(int s) { step_size_ = s; } int getStepSize() { return step_size_; } void setMaxIter(int i) { max_iter_ = i; } int getMaxIter() { return max_iter_; } void setLearningRate(float lr) { lr_.push_back(lr); } float getLearningRate() { return lr_[0]; } void setLearningRates(vector<float> lr) { for(int i=0; i<lr.size(); i++) lr_.push_back(lr[i]); } const vector<float>& getLearningRates() const { return lr_; } void setWarmupLR(float lr) { warmup_lr_.push_back(lr); } float getWarmupLR() { return warmup_lr_[0]; } void setMomentum(float m) { momentum_.push_back(m); } float getMomentum() { return momentum_[0]; } void setMomentums(vector<float> m) { for(int i=0; i<m.size(); i++) momentum_.push_back(m[i]); } const vector<float>& getMomentums() const { return momentum_; } void setWeightDecay(float d) { decay_.push_back(d); } float getWeightDecay() { return decay_[0]; } void setWeightDecays(vector<float> d) { for(int i=0; i<d.size(); i++) decay_.push_back(d[i]); } const vector<float>& getWeightDecays() const { return decay_; } void setLRChangeEpochs(vector<int> e) { for(int i=0; i<e.size(); i++) lrcepochs_.push_back(e[i]); } const vector<int>& getLRChangeEpochs() const { return lrcepochs_; } void setStepValues(vector<int> s) { stepvalues_.resize(s.size()); for(int i=0; i<s.size(); i++) stepvalues_[i] = s[i]; } const vector<int>& getStepValues() const { return stepvalues_; } void setWarmupEpochs(int we) { warmup_epochs_ = we; } int getWarmupEpochs() { return warmup_epochs_; } void setEpochs(int e) { epochs_ = e; } int getEpochs() { return epochs_; } void setTestEpoch(int te) { test_epoch_ = te; } int getTestEpoch() { return test_epoch_; } void setSolverType(string s) { solver_type_ = s; } string getSolverType() { return solver_type_; } void setGlobalFlag(bool g) { global_ = g; } bool getGlobalFlag() { return global_; } protected: vector<float> lr_, momentum_, decay_, warmup_lr_; vector<int> lrcepochs_, stepvalues_; int epochs_, test_epoch_, step_size_, max_iter_; string solver_type_, lr_policy_; float gamma_, power_; int warmup_epochs_; bool global_; }; static SolverParams* parseSolverParams(SolverParameter* p) { SolverParams* sp = new SolverParams(); vector<float> temp; vector<int> itemp; string policy = p->lr_policy(); sp->setLRPolicy(policy); if(policy.compare("pcl_dnn") == 0) { assert(p->learning_rate_size() > 0); for(int i=0; i<p->learning_rate_size(); i++) temp.push_back(p->learning_rate(i)); sp->setLearningRates(temp); temp.clear(); assert(p->momentum_size() > 0); for(int i=0; i<p->momentum_size(); i++) temp.push_back(p->momentum(i)); sp->setMomentums(temp); temp.clear(); assert(p->weight_decay_size() > 0); for(int i=0; i<p->weight_decay_size(); i++) temp.push_back(p->weight_decay(i)); sp->setWeightDecays(temp); assert(p->lr_change_epochs_size() > 0); for(int i=0; i<p->lr_change_epochs_size(); i++) itemp.push_back(p->lr_change_epochs(i)); sp->setLRChangeEpochs(itemp); } else // all other policy types implemented via formula { sp->setLearningRate(p->learning_rate(0)); sp->setWarmupLR(p->warmup_lr(0)); sp->setMomentum(p->momentum(0)); sp->setWeightDecay(p->weight_decay(0)); sp->setPower(p->power()); sp->setGamma(p->gamma()); sp->setStepSize(p->stepsize()); sp->setMaxIter(p->max_iter()); if(p->step_values_size() > 0) { itemp.resize(p->step_values_size()); for(int i=0; i<itemp.size(); i++) itemp[i] = p->step_values(i); sp->setStepValues(itemp); } sp->setWarmupEpochs(p->warmup_epochs()); } assert(p->max_epochs() >= 1); sp->setEpochs(p->max_epochs()); assert(p->test_epoch() >= 1); sp->setTestEpoch(p->test_epoch()); sp->setSolverType(p->type()); sp->setGlobalFlag(p->global()); return sp; } class SolverNode : public MLNode { public: SolverNode(SolverParams* p, MLEngine* e); virtual ~SolverNode(void) {} void applyUpdate(float *blob, float *inc, float *grad, int size, float lr_mult, float decay_mult); void applyUpdate(float *blob, float *inc, float *grad, int size, float* lr_mult, float* decay_mult); bool getGlobalFlag() { return global_; } protected: vector<float> lr_, momentum_, decay_; vector<int> lrcepochs_, stepvalues_; int epochs_, test_epoch_, step_size_, max_iter_; int stepidx_, warmup_max_epoch_; bool global_; string solver_type_, lr_policy_; map<int, vector<float>> hpmap_; float base_lr_, lrval_, mval_, decayval_; float gamma_, power_, warmup_lr_; float mc_, mc1_, mc2_, prev_lrval_=-1, prev_lrval_1_=-1; MLEngine *eptr_; };
[ "alexander.heinecke@intel.com" ]
alexander.heinecke@intel.com
c6a61764759949913bf02b54def66b41cbb38472
549526b112480aab8d7d1c2a9f930fd37d080254
/Payload/IPayload.h
670252589dc82a7ebed5505dd341a74743a66377
[]
no_license
topkoong/NoSqlDb
c53de06f70fad22db117e967f6356121733b2759
55e3b675eab322a2bfc2e49a65405bebcecd5ff4
refs/heads/master
2021-04-06T09:57:46.510656
2018-03-11T01:30:09
2018-03-11T01:30:09
124,710,460
1
0
null
null
null
null
UTF-8
C++
false
false
1,318
h
#pragma once /////////////////////////////////////////////////////////////////////// // IPayLoad.h - declare language for serializing a PayLoad instance // // ver 1.0 // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2018 // /////////////////////////////////////////////////////////////////////// /* * Note: * - It is common practice to define C++ interfaces as structs with * pure virtual methods, including a virtual destructor. * - If a class derives from IPayLoad and fails to implement the * pure virtual method toXmlElement, the class will be abstract * and compilation will fail for statements that declare the PayLoad. * - static methods cannot be virtual, and we need fromXmlElement to * be static, because we may not have a PayLoad instance to invoke * it when deserializing. * - IPayLoad defers implementation to the PayLoad class. If that * class fails to implement the method, builds will fail to link. */ namespace NoSqlDb { #include "../XmlDocument/XmlElement.h" using Xml = std::string; using Sptr = std::shared_ptr<XmlProcessing::AbstractXmlElement>; template<typename P> struct IPayLoad { virtual Sptr toXmlElement() = 0; static P fromXmlElement(Sptr elem); virtual ~IPayLoad() {}; }; }
[ "engineer_top@msn.com" ]
engineer_top@msn.com
270b16fca98cf5d345b2d78484ee908e7b0d5eb9
409d35f206f779461563029c519cf4749719dfab
/Export/mac64/cpp/obj/src/openfl/_v2/display/Graphics.cpp
36d58b8f1b20c8d0a559077c2e982d23c8f0e9cc
[]
no_license
JayArmstrongGames/SushiCat
80f0d9688dc0a0b7d715654fd9cdf357cf53ae9a
2d49002d4c478c92531771d9adc20bc1d725f178
refs/heads/master
2021-01-20T12:21:12.479251
2014-10-21T11:39:15
2014-10-21T11:39:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
41,204
cpp
#include <hxcpp.h> #ifndef INCLUDED_openfl__v2_Lib #include <openfl/_v2/Lib.h> #endif #ifndef INCLUDED_openfl__v2_display_BitmapData #include <openfl/_v2/display/BitmapData.h> #endif #ifndef INCLUDED_openfl__v2_display_CapsStyle #include <openfl/_v2/display/CapsStyle.h> #endif #ifndef INCLUDED_openfl__v2_display_Graphics #include <openfl/_v2/display/Graphics.h> #endif #ifndef INCLUDED_openfl__v2_display_IBitmapDrawable #include <openfl/_v2/display/IBitmapDrawable.h> #endif #ifndef INCLUDED_openfl__v2_display_IGraphicsData #include <openfl/_v2/display/IGraphicsData.h> #endif #ifndef INCLUDED_openfl__v2_display_JointStyle #include <openfl/_v2/display/JointStyle.h> #endif #ifndef INCLUDED_openfl__v2_display_LineScaleMode #include <openfl/_v2/display/LineScaleMode.h> #endif #ifndef INCLUDED_openfl__v2_display_SpreadMethod #include <openfl/_v2/display/SpreadMethod.h> #endif #ifndef INCLUDED_openfl__v2_display_Tilesheet #include <openfl/_v2/display/Tilesheet.h> #endif #ifndef INCLUDED_openfl__v2_display_TriangleCulling #include <openfl/_v2/display/TriangleCulling.h> #endif #ifndef INCLUDED_openfl__v2_geom_Matrix #include <openfl/_v2/geom/Matrix.h> #endif #ifndef INCLUDED_openfl_display_GradientType #include <openfl/display/GradientType.h> #endif #ifndef INCLUDED_openfl_display_GraphicsPathWinding #include <openfl/display/GraphicsPathWinding.h> #endif #ifndef INCLUDED_openfl_display_InterpolationMethod #include <openfl/display/InterpolationMethod.h> #endif namespace openfl{ namespace _v2{ namespace display{ Void Graphics_obj::__construct(Dynamic handle) { HX_STACK_FRAME("openfl._v2.display.Graphics","new",0x320113da,"openfl._v2.display.Graphics.new","openfl/_v2/display/Graphics.hx",29,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(handle,"handle") { HX_STACK_LINE(29) this->__handle = handle; } ; return null(); } //Graphics_obj::~Graphics_obj() { } Dynamic Graphics_obj::__CreateEmpty() { return new Graphics_obj; } hx::ObjectPtr< Graphics_obj > Graphics_obj::__new(Dynamic handle) { hx::ObjectPtr< Graphics_obj > result = new Graphics_obj(); result->__construct(handle); return result;} Dynamic Graphics_obj::__Create(hx::DynamicArray inArgs) { hx::ObjectPtr< Graphics_obj > result = new Graphics_obj(); result->__construct(inArgs[0]); return result;} Void Graphics_obj::arcTo( Float controlX,Float controlY,Float x,Float y){ { HX_STACK_FRAME("openfl._v2.display.Graphics","arcTo",0x0fa49667,"openfl._v2.display.Graphics.arcTo","openfl/_v2/display/Graphics.hx",36,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(controlX,"controlX") HX_STACK_ARG(controlY,"controlY") HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_LINE(36) ::openfl::_v2::display::Graphics_obj::lime_gfx_arc_to(this->__handle,controlX,controlY,x,y); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,arcTo,(void)) Void Graphics_obj::beginBitmapFill( ::openfl::_v2::display::BitmapData bitmap,::openfl::_v2::geom::Matrix matrix,hx::Null< bool > __o_repeat,hx::Null< bool > __o_smooth){ bool repeat = __o_repeat.Default(true); bool smooth = __o_smooth.Default(false); HX_STACK_FRAME("openfl._v2.display.Graphics","beginBitmapFill",0x89c95c15,"openfl._v2.display.Graphics.beginBitmapFill","openfl/_v2/display/Graphics.hx",43,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(bitmap,"bitmap") HX_STACK_ARG(matrix,"matrix") HX_STACK_ARG(repeat,"repeat") HX_STACK_ARG(smooth,"smooth") { HX_STACK_LINE(43) ::openfl::_v2::display::Graphics_obj::lime_gfx_begin_bitmap_fill(this->__handle,bitmap->__handle,matrix,repeat,smooth); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,beginBitmapFill,(void)) Void Graphics_obj::beginFill( int color,hx::Null< Float > __o_alpha){ Float alpha = __o_alpha.Default(1.0); HX_STACK_FRAME("openfl._v2.display.Graphics","beginFill",0xad51c846,"openfl._v2.display.Graphics.beginFill","openfl/_v2/display/Graphics.hx",50,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(color,"color") HX_STACK_ARG(alpha,"alpha") { HX_STACK_LINE(50) ::openfl::_v2::display::Graphics_obj::lime_gfx_begin_fill(this->__handle,color,alpha); } return null(); } HX_DEFINE_DYNAMIC_FUNC2(Graphics_obj,beginFill,(void)) Void Graphics_obj::beginGradientFill( ::openfl::display::GradientType type,Dynamic colors,Dynamic alphas,Dynamic ratios,::openfl::_v2::geom::Matrix matrix,::openfl::_v2::display::SpreadMethod spreadMethod,::openfl::display::InterpolationMethod interpolationMethod,hx::Null< Float > __o_focalPointRatio){ Float focalPointRatio = __o_focalPointRatio.Default(0.0); HX_STACK_FRAME("openfl._v2.display.Graphics","beginGradientFill",0xef29e156,"openfl._v2.display.Graphics.beginGradientFill","openfl/_v2/display/Graphics.hx",55,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(type,"type") HX_STACK_ARG(colors,"colors") HX_STACK_ARG(alphas,"alphas") HX_STACK_ARG(ratios,"ratios") HX_STACK_ARG(matrix,"matrix") HX_STACK_ARG(spreadMethod,"spreadMethod") HX_STACK_ARG(interpolationMethod,"interpolationMethod") HX_STACK_ARG(focalPointRatio,"focalPointRatio") { HX_STACK_LINE(57) if (((matrix == null()))){ HX_STACK_LINE(59) ::openfl::_v2::geom::Matrix _g = ::openfl::_v2::geom::Matrix_obj::__new(null(),null(),null(),null(),null(),null()); HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(59) matrix = _g; HX_STACK_LINE(60) matrix->createGradientBox((int)200,(int)200,(int)0,(int)-100,(int)-100); } HX_STACK_LINE(64) int _g1 = type->__Index(); HX_STACK_VAR(_g1,"_g1"); HX_STACK_LINE(64) int _g2; HX_STACK_VAR(_g2,"_g2"); HX_STACK_LINE(64) if (((spreadMethod == null()))){ HX_STACK_LINE(64) _g2 = (int)0; } else{ HX_STACK_LINE(64) _g2 = spreadMethod->__Index(); } HX_STACK_LINE(64) int _g3; HX_STACK_VAR(_g3,"_g3"); HX_STACK_LINE(64) if (((interpolationMethod == null()))){ HX_STACK_LINE(64) _g3 = (int)0; } else{ HX_STACK_LINE(64) _g3 = interpolationMethod->__Index(); } HX_STACK_LINE(64) ::openfl::_v2::display::Graphics_obj::lime_gfx_begin_gradient_fill(this->__handle,_g1,colors,alphas,ratios,matrix,_g2,_g3,focalPointRatio); } return null(); } HX_DEFINE_DYNAMIC_FUNC8(Graphics_obj,beginGradientFill,(void)) Void Graphics_obj::clear( ){ { HX_STACK_FRAME("openfl._v2.display.Graphics","clear",0x327c0787,"openfl._v2.display.Graphics.clear","openfl/_v2/display/Graphics.hx",71,0xef949733) HX_STACK_THIS(this) HX_STACK_LINE(71) ::openfl::_v2::display::Graphics_obj::lime_gfx_clear(this->__handle); } return null(); } HX_DEFINE_DYNAMIC_FUNC0(Graphics_obj,clear,(void)) Void Graphics_obj::copyFrom( ::openfl::_v2::display::Graphics sourceGraphics){ { HX_STACK_FRAME("openfl._v2.display.Graphics","copyFrom",0x144aee05,"openfl._v2.display.Graphics.copyFrom","openfl/_v2/display/Graphics.hx",78,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(sourceGraphics,"sourceGraphics") HX_STACK_LINE(78) ::openfl::_v2::Lib_obj::notImplemented(HX_CSTRING("Graphics.copyFrom")); } return null(); } HX_DEFINE_DYNAMIC_FUNC1(Graphics_obj,copyFrom,(void)) Void Graphics_obj::curveTo( Float controlX,Float controlY,Float anchorX,Float anchorY){ { HX_STACK_FRAME("openfl._v2.display.Graphics","curveTo",0xf275e884,"openfl._v2.display.Graphics.curveTo","openfl/_v2/display/Graphics.hx",85,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(controlX,"controlX") HX_STACK_ARG(controlY,"controlY") HX_STACK_ARG(anchorX,"anchorX") HX_STACK_ARG(anchorY,"anchorY") HX_STACK_LINE(85) ::openfl::_v2::display::Graphics_obj::lime_gfx_curve_to(this->__handle,controlX,controlY,anchorX,anchorY); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,curveTo,(void)) Void Graphics_obj::drawCircle( Float x,Float y,Float radius){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawCircle",0x1bac6cfa,"openfl._v2.display.Graphics.drawCircle","openfl/_v2/display/Graphics.hx",92,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_ARG(radius,"radius") HX_STACK_LINE(92) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_ellipse(this->__handle,(x - radius),(y - radius),(radius * (int)2),(radius * (int)2)); } return null(); } HX_DEFINE_DYNAMIC_FUNC3(Graphics_obj,drawCircle,(void)) Void Graphics_obj::drawEllipse( Float x,Float y,Float width,Float height){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawEllipse",0x3102d2b4,"openfl._v2.display.Graphics.drawEllipse","openfl/_v2/display/Graphics.hx",99,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_ARG(width,"width") HX_STACK_ARG(height,"height") HX_STACK_LINE(99) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_ellipse(this->__handle,x,y,width,height); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,drawEllipse,(void)) Void Graphics_obj::drawGraphicsData( Array< ::Dynamic > graphicsData){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawGraphicsData",0x0a0d42ff,"openfl._v2.display.Graphics.drawGraphicsData","openfl/_v2/display/Graphics.hx",104,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(graphicsData,"graphicsData") HX_STACK_LINE(106) Dynamic handles = Dynamic( Array_obj<Dynamic>::__new() ); HX_STACK_VAR(handles,"handles"); HX_STACK_LINE(108) { HX_STACK_LINE(108) int _g = (int)0; HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(108) while((true)){ HX_STACK_LINE(108) if ((!(((_g < graphicsData->length))))){ HX_STACK_LINE(108) break; } HX_STACK_LINE(108) ::openfl::_v2::display::IGraphicsData datum = graphicsData->__get(_g).StaticCast< ::openfl::_v2::display::IGraphicsData >(); HX_STACK_VAR(datum,"datum"); HX_STACK_LINE(108) ++(_g); HX_STACK_LINE(110) handles->__Field(HX_CSTRING("push"),true)(datum->__handle); } } HX_STACK_LINE(114) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_data(this->__handle,handles); } return null(); } HX_DEFINE_DYNAMIC_FUNC1(Graphics_obj,drawGraphicsData,(void)) Void Graphics_obj::drawGraphicsDatum( ::openfl::_v2::display::IGraphicsData graphicsDatum){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawGraphicsDatum",0xc18d6dfa,"openfl._v2.display.Graphics.drawGraphicsDatum","openfl/_v2/display/Graphics.hx",121,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(graphicsDatum,"graphicsDatum") HX_STACK_LINE(121) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_datum(this->__handle,graphicsDatum->__handle); } return null(); } HX_DEFINE_DYNAMIC_FUNC1(Graphics_obj,drawGraphicsDatum,(void)) Void Graphics_obj::drawPoints( Array< Float > xy,Array< int > pointRGBA,hx::Null< int > __o_defaultRGBA,hx::Null< Float > __o_size){ int defaultRGBA = __o_defaultRGBA.Default(-1); Float size = __o_size.Default(-1.0); HX_STACK_FRAME("openfl._v2.display.Graphics","drawPoints",0xbccd0d0d,"openfl._v2.display.Graphics.drawPoints","openfl/_v2/display/Graphics.hx",128,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(xy,"xy") HX_STACK_ARG(pointRGBA,"pointRGBA") HX_STACK_ARG(defaultRGBA,"defaultRGBA") HX_STACK_ARG(size,"size") { HX_STACK_LINE(128) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_points(this->__handle,xy,pointRGBA,defaultRGBA,false,size); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,drawPoints,(void)) Void Graphics_obj::drawRect( Float x,Float y,Float width,Float height){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawRect",0xabfad98e,"openfl._v2.display.Graphics.drawRect","openfl/_v2/display/Graphics.hx",135,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_ARG(width,"width") HX_STACK_ARG(height,"height") HX_STACK_LINE(135) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_rect(this->__handle,x,y,width,height); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,drawRect,(void)) Void Graphics_obj::drawRoundRect( Float x,Float y,Float width,Float height,Float radiusX,Dynamic radiusY){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawRoundRect",0x6ea8e3e8,"openfl._v2.display.Graphics.drawRoundRect","openfl/_v2/display/Graphics.hx",142,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_ARG(width,"width") HX_STACK_ARG(height,"height") HX_STACK_ARG(radiusX,"radiusX") HX_STACK_ARG(radiusY,"radiusY") HX_STACK_LINE(142) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_round_rect(this->__handle,x,y,width,height,radiusX,( (((radiusY == null()))) ? Dynamic(radiusX) : Dynamic(radiusY) )); } return null(); } HX_DEFINE_DYNAMIC_FUNC6(Graphics_obj,drawRoundRect,(void)) Void Graphics_obj::drawRoundRectComplex( Float x,Float y,Float width,Float height,Float topLeftRadius,Float topRightRadius,Float bottomLeftRadius,Float bottomRightRadius){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawRoundRectComplex",0x18037728,"openfl._v2.display.Graphics.drawRoundRectComplex","openfl/_v2/display/Graphics.hx",149,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_ARG(width,"width") HX_STACK_ARG(height,"height") HX_STACK_ARG(topLeftRadius,"topLeftRadius") HX_STACK_ARG(topRightRadius,"topRightRadius") HX_STACK_ARG(bottomLeftRadius,"bottomLeftRadius") HX_STACK_ARG(bottomRightRadius,"bottomRightRadius") HX_STACK_LINE(149) ::openfl::_v2::Lib_obj::notImplemented(HX_CSTRING("Graphics.drawRoundRectComplex")); } return null(); } HX_DEFINE_DYNAMIC_FUNC8(Graphics_obj,drawRoundRectComplex,(void)) Void Graphics_obj::drawPath( Array< int > commands,Array< Float > data,::openfl::display::GraphicsPathWinding winding){ { HX_STACK_FRAME("openfl._v2.display.Graphics","drawPath",0xaaa5720f,"openfl._v2.display.Graphics.drawPath","openfl/_v2/display/Graphics.hx",156,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(commands,"commands") HX_STACK_ARG(data,"data") HX_STACK_ARG(winding,"winding") HX_STACK_LINE(156) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_path(this->__handle,commands,data,(winding == ::openfl::display::GraphicsPathWinding_obj::EVEN_ODD)); } return null(); } HX_DEFINE_DYNAMIC_FUNC3(Graphics_obj,drawPath,(void)) Void Graphics_obj::drawTiles( ::openfl::_v2::display::Tilesheet sheet,Array< Float > data,hx::Null< bool > __o_smooth,hx::Null< int > __o_flags,hx::Null< int > __o_count){ bool smooth = __o_smooth.Default(false); int flags = __o_flags.Default(0); int count = __o_count.Default(-1); HX_STACK_FRAME("openfl._v2.display.Graphics","drawTiles",0xf8fc4ddb,"openfl._v2.display.Graphics.drawTiles","openfl/_v2/display/Graphics.hx",161,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(sheet,"sheet") HX_STACK_ARG(data,"data") HX_STACK_ARG(smooth,"smooth") HX_STACK_ARG(flags,"flags") HX_STACK_ARG(count,"count") { HX_STACK_LINE(163) this->beginBitmapFill(sheet->__bitmap,null(),false,smooth); HX_STACK_LINE(165) if ((smooth)){ HX_STACK_LINE(167) hx::OrEq(flags,(int)4096); } HX_STACK_LINE(171) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_tiles(this->__handle,sheet->__handle,data,flags,count); } return null(); } HX_DEFINE_DYNAMIC_FUNC5(Graphics_obj,drawTiles,(void)) Void Graphics_obj::drawTriangles( Array< Float > vertices,Array< int > indices,Array< Float > uvtData,::openfl::_v2::display::TriangleCulling culling,Array< int > colors,hx::Null< int > __o_blendMode){ int blendMode = __o_blendMode.Default(0); HX_STACK_FRAME("openfl._v2.display.Graphics","drawTriangles",0x6a666401,"openfl._v2.display.Graphics.drawTriangles","openfl/_v2/display/Graphics.hx",176,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(vertices,"vertices") HX_STACK_ARG(indices,"indices") HX_STACK_ARG(uvtData,"uvtData") HX_STACK_ARG(culling,"culling") HX_STACK_ARG(colors,"colors") HX_STACK_ARG(blendMode,"blendMode") { HX_STACK_LINE(178) int cull; HX_STACK_VAR(cull,"cull"); HX_STACK_LINE(178) if (((culling == null()))){ HX_STACK_LINE(178) cull = (int)0; } else{ HX_STACK_LINE(178) int _g = culling->__Index(); HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(178) cull = (_g - (int)1); } HX_STACK_LINE(179) ::openfl::_v2::display::Graphics_obj::lime_gfx_draw_triangles(this->__handle,vertices,indices,uvtData,cull,colors,blendMode); } return null(); } HX_DEFINE_DYNAMIC_FUNC6(Graphics_obj,drawTriangles,(void)) Void Graphics_obj::endFill( ){ { HX_STACK_FRAME("openfl._v2.display.Graphics","endFill",0x49ce1078,"openfl._v2.display.Graphics.endFill","openfl/_v2/display/Graphics.hx",186,0xef949733) HX_STACK_THIS(this) HX_STACK_LINE(186) ::openfl::_v2::display::Graphics_obj::lime_gfx_end_fill(this->__handle); } return null(); } HX_DEFINE_DYNAMIC_FUNC0(Graphics_obj,endFill,(void)) Void Graphics_obj::lineBitmapStyle( ::openfl::_v2::display::BitmapData bitmap,::openfl::_v2::geom::Matrix matrix,hx::Null< bool > __o_repeat,hx::Null< bool > __o_smooth){ bool repeat = __o_repeat.Default(true); bool smooth = __o_smooth.Default(false); HX_STACK_FRAME("openfl._v2.display.Graphics","lineBitmapStyle",0x64e2d1a8,"openfl._v2.display.Graphics.lineBitmapStyle","openfl/_v2/display/Graphics.hx",193,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(bitmap,"bitmap") HX_STACK_ARG(matrix,"matrix") HX_STACK_ARG(repeat,"repeat") HX_STACK_ARG(smooth,"smooth") { HX_STACK_LINE(193) ::openfl::_v2::display::Graphics_obj::lime_gfx_line_bitmap_fill(this->__handle,bitmap->__handle,matrix,repeat,smooth); } return null(); } HX_DEFINE_DYNAMIC_FUNC4(Graphics_obj,lineBitmapStyle,(void)) Void Graphics_obj::lineGradientStyle( ::openfl::display::GradientType type,Dynamic colors,Dynamic alphas,Dynamic ratios,::openfl::_v2::geom::Matrix matrix,::openfl::_v2::display::SpreadMethod spreadMethod,::openfl::display::InterpolationMethod interpolationMethod,hx::Null< Float > __o_focalPointRatio){ Float focalPointRatio = __o_focalPointRatio.Default(0.0); HX_STACK_FRAME("openfl._v2.display.Graphics","lineGradientStyle",0x8318c987,"openfl._v2.display.Graphics.lineGradientStyle","openfl/_v2/display/Graphics.hx",198,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(type,"type") HX_STACK_ARG(colors,"colors") HX_STACK_ARG(alphas,"alphas") HX_STACK_ARG(ratios,"ratios") HX_STACK_ARG(matrix,"matrix") HX_STACK_ARG(spreadMethod,"spreadMethod") HX_STACK_ARG(interpolationMethod,"interpolationMethod") HX_STACK_ARG(focalPointRatio,"focalPointRatio") { HX_STACK_LINE(200) if (((matrix == null()))){ HX_STACK_LINE(202) ::openfl::_v2::geom::Matrix _g = ::openfl::_v2::geom::Matrix_obj::__new(null(),null(),null(),null(),null(),null()); HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(202) matrix = _g; HX_STACK_LINE(203) matrix->createGradientBox((int)200,(int)200,(int)0,(int)-100,(int)-100); } HX_STACK_LINE(207) int _g1 = type->__Index(); HX_STACK_VAR(_g1,"_g1"); HX_STACK_LINE(207) int _g2; HX_STACK_VAR(_g2,"_g2"); HX_STACK_LINE(207) if (((spreadMethod == null()))){ HX_STACK_LINE(207) _g2 = (int)0; } else{ HX_STACK_LINE(207) _g2 = spreadMethod->__Index(); } HX_STACK_LINE(207) int _g3; HX_STACK_VAR(_g3,"_g3"); HX_STACK_LINE(207) if (((interpolationMethod == null()))){ HX_STACK_LINE(207) _g3 = (int)0; } else{ HX_STACK_LINE(207) _g3 = interpolationMethod->__Index(); } HX_STACK_LINE(207) ::openfl::_v2::display::Graphics_obj::lime_gfx_line_gradient_fill(this->__handle,_g1,colors,alphas,ratios,matrix,_g2,_g3,focalPointRatio); } return null(); } HX_DEFINE_DYNAMIC_FUNC8(Graphics_obj,lineGradientStyle,(void)) Void Graphics_obj::lineStyle( Dynamic thickness,hx::Null< int > __o_color,hx::Null< Float > __o_alpha,hx::Null< bool > __o_pixelHinting,::openfl::_v2::display::LineScaleMode scaleMode,::openfl::_v2::display::CapsStyle caps,::openfl::_v2::display::JointStyle joints,hx::Null< Float > __o_miterLimit){ int color = __o_color.Default(0); Float alpha = __o_alpha.Default(1.0); bool pixelHinting = __o_pixelHinting.Default(false); Float miterLimit = __o_miterLimit.Default(3); HX_STACK_FRAME("openfl._v2.display.Graphics","lineStyle",0xebd4c397,"openfl._v2.display.Graphics.lineStyle","openfl/_v2/display/Graphics.hx",212,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(thickness,"thickness") HX_STACK_ARG(color,"color") HX_STACK_ARG(alpha,"alpha") HX_STACK_ARG(pixelHinting,"pixelHinting") HX_STACK_ARG(scaleMode,"scaleMode") HX_STACK_ARG(caps,"caps") HX_STACK_ARG(joints,"joints") HX_STACK_ARG(miterLimit,"miterLimit") { HX_STACK_LINE(214) int _g; HX_STACK_VAR(_g,"_g"); HX_STACK_LINE(214) if (((scaleMode == null()))){ HX_STACK_LINE(214) _g = (int)0; } else{ HX_STACK_LINE(214) _g = scaleMode->__Index(); } HX_STACK_LINE(214) int _g1; HX_STACK_VAR(_g1,"_g1"); HX_STACK_LINE(214) if (((caps == null()))){ HX_STACK_LINE(214) _g1 = (int)0; } else{ HX_STACK_LINE(214) _g1 = caps->__Index(); } HX_STACK_LINE(214) int _g2; HX_STACK_VAR(_g2,"_g2"); HX_STACK_LINE(214) if (((joints == null()))){ HX_STACK_LINE(214) _g2 = (int)0; } else{ HX_STACK_LINE(214) _g2 = joints->__Index(); } HX_STACK_LINE(214) ::openfl::_v2::display::Graphics_obj::lime_gfx_line_style(this->__handle,thickness,color,alpha,pixelHinting,_g,_g1,_g2,miterLimit); } return null(); } HX_DEFINE_DYNAMIC_FUNC8(Graphics_obj,lineStyle,(void)) Void Graphics_obj::lineTo( Float x,Float y){ { HX_STACK_FRAME("openfl._v2.display.Graphics","lineTo",0xdf02eb55,"openfl._v2.display.Graphics.lineTo","openfl/_v2/display/Graphics.hx",221,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_LINE(221) ::openfl::_v2::display::Graphics_obj::lime_gfx_line_to(this->__handle,x,y); } return null(); } HX_DEFINE_DYNAMIC_FUNC2(Graphics_obj,lineTo,(void)) Void Graphics_obj::moveTo( Float x,Float y){ { HX_STACK_FRAME("openfl._v2.display.Graphics","moveTo",0xbf0f77b2,"openfl._v2.display.Graphics.moveTo","openfl/_v2/display/Graphics.hx",228,0xef949733) HX_STACK_THIS(this) HX_STACK_ARG(x,"x") HX_STACK_ARG(y,"y") HX_STACK_LINE(228) ::openfl::_v2::display::Graphics_obj::lime_gfx_move_to(this->__handle,x,y); } return null(); } HX_DEFINE_DYNAMIC_FUNC2(Graphics_obj,moveTo,(void)) int Graphics_obj::TILE_SCALE; int Graphics_obj::TILE_ROTATION; int Graphics_obj::TILE_RGB; int Graphics_obj::TILE_ALPHA; int Graphics_obj::TILE_TRANS_2x2; int Graphics_obj::TILE_SMOOTH; int Graphics_obj::TILE_BLEND_NORMAL; int Graphics_obj::TILE_BLEND_ADD; int Graphics_obj::RGBA( int rgb,hx::Null< int > __o_alpha){ int alpha = __o_alpha.Default(255); HX_STACK_FRAME("openfl._v2.display.Graphics","RGBA",0x7c575ffa,"openfl._v2.display.Graphics.RGBA","openfl/_v2/display/Graphics.hx",235,0xef949733) HX_STACK_ARG(rgb,"rgb") HX_STACK_ARG(alpha,"alpha") { HX_STACK_LINE(235) return (int(rgb) | int((int(alpha) << int((int)24)))); } } STATIC_HX_DEFINE_DYNAMIC_FUNC2(Graphics_obj,RGBA,return ) Dynamic Graphics_obj::lime_gfx_clear; Dynamic Graphics_obj::lime_gfx_begin_fill; Dynamic Graphics_obj::lime_gfx_begin_bitmap_fill; Dynamic Graphics_obj::lime_gfx_line_bitmap_fill; Dynamic Graphics_obj::lime_gfx_begin_gradient_fill; Dynamic Graphics_obj::lime_gfx_line_gradient_fill; Dynamic Graphics_obj::lime_gfx_end_fill; Dynamic Graphics_obj::lime_gfx_line_style; Dynamic Graphics_obj::lime_gfx_move_to; Dynamic Graphics_obj::lime_gfx_line_to; Dynamic Graphics_obj::lime_gfx_curve_to; Dynamic Graphics_obj::lime_gfx_arc_to; Dynamic Graphics_obj::lime_gfx_draw_ellipse; Dynamic Graphics_obj::lime_gfx_draw_data; Dynamic Graphics_obj::lime_gfx_draw_datum; Dynamic Graphics_obj::lime_gfx_draw_rect; Dynamic Graphics_obj::lime_gfx_draw_path; Dynamic Graphics_obj::lime_gfx_draw_tiles; Dynamic Graphics_obj::lime_gfx_draw_points; Dynamic Graphics_obj::lime_gfx_draw_round_rect; Dynamic Graphics_obj::lime_gfx_draw_triangles; Graphics_obj::Graphics_obj() { } void Graphics_obj::__Mark(HX_MARK_PARAMS) { HX_MARK_BEGIN_CLASS(Graphics); HX_MARK_MEMBER_NAME(__handle,"__handle"); HX_MARK_END_CLASS(); } void Graphics_obj::__Visit(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(__handle,"__handle"); } Dynamic Graphics_obj::__Field(const ::String &inName,bool inCallProp) { switch(inName.length) { case 4: if (HX_FIELD_EQ(inName,"RGBA") ) { return RGBA_dyn(); } break; case 5: if (HX_FIELD_EQ(inName,"arcTo") ) { return arcTo_dyn(); } if (HX_FIELD_EQ(inName,"clear") ) { return clear_dyn(); } break; case 6: if (HX_FIELD_EQ(inName,"lineTo") ) { return lineTo_dyn(); } if (HX_FIELD_EQ(inName,"moveTo") ) { return moveTo_dyn(); } break; case 7: if (HX_FIELD_EQ(inName,"curveTo") ) { return curveTo_dyn(); } if (HX_FIELD_EQ(inName,"endFill") ) { return endFill_dyn(); } break; case 8: if (HX_FIELD_EQ(inName,"__handle") ) { return __handle; } if (HX_FIELD_EQ(inName,"copyFrom") ) { return copyFrom_dyn(); } if (HX_FIELD_EQ(inName,"drawRect") ) { return drawRect_dyn(); } if (HX_FIELD_EQ(inName,"drawPath") ) { return drawPath_dyn(); } break; case 9: if (HX_FIELD_EQ(inName,"beginFill") ) { return beginFill_dyn(); } if (HX_FIELD_EQ(inName,"drawTiles") ) { return drawTiles_dyn(); } if (HX_FIELD_EQ(inName,"lineStyle") ) { return lineStyle_dyn(); } break; case 10: if (HX_FIELD_EQ(inName,"drawCircle") ) { return drawCircle_dyn(); } if (HX_FIELD_EQ(inName,"drawPoints") ) { return drawPoints_dyn(); } break; case 11: if (HX_FIELD_EQ(inName,"drawEllipse") ) { return drawEllipse_dyn(); } break; case 13: if (HX_FIELD_EQ(inName,"drawRoundRect") ) { return drawRoundRect_dyn(); } if (HX_FIELD_EQ(inName,"drawTriangles") ) { return drawTriangles_dyn(); } break; case 14: if (HX_FIELD_EQ(inName,"lime_gfx_clear") ) { return lime_gfx_clear; } break; case 15: if (HX_FIELD_EQ(inName,"lime_gfx_arc_to") ) { return lime_gfx_arc_to; } if (HX_FIELD_EQ(inName,"beginBitmapFill") ) { return beginBitmapFill_dyn(); } if (HX_FIELD_EQ(inName,"lineBitmapStyle") ) { return lineBitmapStyle_dyn(); } break; case 16: if (HX_FIELD_EQ(inName,"lime_gfx_move_to") ) { return lime_gfx_move_to; } if (HX_FIELD_EQ(inName,"lime_gfx_line_to") ) { return lime_gfx_line_to; } if (HX_FIELD_EQ(inName,"drawGraphicsData") ) { return drawGraphicsData_dyn(); } break; case 17: if (HX_FIELD_EQ(inName,"lime_gfx_end_fill") ) { return lime_gfx_end_fill; } if (HX_FIELD_EQ(inName,"lime_gfx_curve_to") ) { return lime_gfx_curve_to; } if (HX_FIELD_EQ(inName,"beginGradientFill") ) { return beginGradientFill_dyn(); } if (HX_FIELD_EQ(inName,"drawGraphicsDatum") ) { return drawGraphicsDatum_dyn(); } if (HX_FIELD_EQ(inName,"lineGradientStyle") ) { return lineGradientStyle_dyn(); } break; case 18: if (HX_FIELD_EQ(inName,"lime_gfx_draw_data") ) { return lime_gfx_draw_data; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_rect") ) { return lime_gfx_draw_rect; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_path") ) { return lime_gfx_draw_path; } break; case 19: if (HX_FIELD_EQ(inName,"lime_gfx_begin_fill") ) { return lime_gfx_begin_fill; } if (HX_FIELD_EQ(inName,"lime_gfx_line_style") ) { return lime_gfx_line_style; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_datum") ) { return lime_gfx_draw_datum; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_tiles") ) { return lime_gfx_draw_tiles; } break; case 20: if (HX_FIELD_EQ(inName,"lime_gfx_draw_points") ) { return lime_gfx_draw_points; } if (HX_FIELD_EQ(inName,"drawRoundRectComplex") ) { return drawRoundRectComplex_dyn(); } break; case 21: if (HX_FIELD_EQ(inName,"lime_gfx_draw_ellipse") ) { return lime_gfx_draw_ellipse; } break; case 23: if (HX_FIELD_EQ(inName,"lime_gfx_draw_triangles") ) { return lime_gfx_draw_triangles; } break; case 24: if (HX_FIELD_EQ(inName,"lime_gfx_draw_round_rect") ) { return lime_gfx_draw_round_rect; } break; case 25: if (HX_FIELD_EQ(inName,"lime_gfx_line_bitmap_fill") ) { return lime_gfx_line_bitmap_fill; } break; case 26: if (HX_FIELD_EQ(inName,"lime_gfx_begin_bitmap_fill") ) { return lime_gfx_begin_bitmap_fill; } break; case 27: if (HX_FIELD_EQ(inName,"lime_gfx_line_gradient_fill") ) { return lime_gfx_line_gradient_fill; } break; case 28: if (HX_FIELD_EQ(inName,"lime_gfx_begin_gradient_fill") ) { return lime_gfx_begin_gradient_fill; } } return super::__Field(inName,inCallProp); } Dynamic Graphics_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp) { switch(inName.length) { case 8: if (HX_FIELD_EQ(inName,"__handle") ) { __handle=inValue.Cast< Dynamic >(); return inValue; } break; case 14: if (HX_FIELD_EQ(inName,"lime_gfx_clear") ) { lime_gfx_clear=inValue.Cast< Dynamic >(); return inValue; } break; case 15: if (HX_FIELD_EQ(inName,"lime_gfx_arc_to") ) { lime_gfx_arc_to=inValue.Cast< Dynamic >(); return inValue; } break; case 16: if (HX_FIELD_EQ(inName,"lime_gfx_move_to") ) { lime_gfx_move_to=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_line_to") ) { lime_gfx_line_to=inValue.Cast< Dynamic >(); return inValue; } break; case 17: if (HX_FIELD_EQ(inName,"lime_gfx_end_fill") ) { lime_gfx_end_fill=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_curve_to") ) { lime_gfx_curve_to=inValue.Cast< Dynamic >(); return inValue; } break; case 18: if (HX_FIELD_EQ(inName,"lime_gfx_draw_data") ) { lime_gfx_draw_data=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_rect") ) { lime_gfx_draw_rect=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_path") ) { lime_gfx_draw_path=inValue.Cast< Dynamic >(); return inValue; } break; case 19: if (HX_FIELD_EQ(inName,"lime_gfx_begin_fill") ) { lime_gfx_begin_fill=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_line_style") ) { lime_gfx_line_style=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_datum") ) { lime_gfx_draw_datum=inValue.Cast< Dynamic >(); return inValue; } if (HX_FIELD_EQ(inName,"lime_gfx_draw_tiles") ) { lime_gfx_draw_tiles=inValue.Cast< Dynamic >(); return inValue; } break; case 20: if (HX_FIELD_EQ(inName,"lime_gfx_draw_points") ) { lime_gfx_draw_points=inValue.Cast< Dynamic >(); return inValue; } break; case 21: if (HX_FIELD_EQ(inName,"lime_gfx_draw_ellipse") ) { lime_gfx_draw_ellipse=inValue.Cast< Dynamic >(); return inValue; } break; case 23: if (HX_FIELD_EQ(inName,"lime_gfx_draw_triangles") ) { lime_gfx_draw_triangles=inValue.Cast< Dynamic >(); return inValue; } break; case 24: if (HX_FIELD_EQ(inName,"lime_gfx_draw_round_rect") ) { lime_gfx_draw_round_rect=inValue.Cast< Dynamic >(); return inValue; } break; case 25: if (HX_FIELD_EQ(inName,"lime_gfx_line_bitmap_fill") ) { lime_gfx_line_bitmap_fill=inValue.Cast< Dynamic >(); return inValue; } break; case 26: if (HX_FIELD_EQ(inName,"lime_gfx_begin_bitmap_fill") ) { lime_gfx_begin_bitmap_fill=inValue.Cast< Dynamic >(); return inValue; } break; case 27: if (HX_FIELD_EQ(inName,"lime_gfx_line_gradient_fill") ) { lime_gfx_line_gradient_fill=inValue.Cast< Dynamic >(); return inValue; } break; case 28: if (HX_FIELD_EQ(inName,"lime_gfx_begin_gradient_fill") ) { lime_gfx_begin_gradient_fill=inValue.Cast< Dynamic >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void Graphics_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_CSTRING("__handle")); super::__GetFields(outFields); }; static ::String sStaticFields[] = { HX_CSTRING("TILE_SCALE"), HX_CSTRING("TILE_ROTATION"), HX_CSTRING("TILE_RGB"), HX_CSTRING("TILE_ALPHA"), HX_CSTRING("TILE_TRANS_2x2"), HX_CSTRING("TILE_SMOOTH"), HX_CSTRING("TILE_BLEND_NORMAL"), HX_CSTRING("TILE_BLEND_ADD"), HX_CSTRING("RGBA"), HX_CSTRING("lime_gfx_clear"), HX_CSTRING("lime_gfx_begin_fill"), HX_CSTRING("lime_gfx_begin_bitmap_fill"), HX_CSTRING("lime_gfx_line_bitmap_fill"), HX_CSTRING("lime_gfx_begin_gradient_fill"), HX_CSTRING("lime_gfx_line_gradient_fill"), HX_CSTRING("lime_gfx_end_fill"), HX_CSTRING("lime_gfx_line_style"), HX_CSTRING("lime_gfx_move_to"), HX_CSTRING("lime_gfx_line_to"), HX_CSTRING("lime_gfx_curve_to"), HX_CSTRING("lime_gfx_arc_to"), HX_CSTRING("lime_gfx_draw_ellipse"), HX_CSTRING("lime_gfx_draw_data"), HX_CSTRING("lime_gfx_draw_datum"), HX_CSTRING("lime_gfx_draw_rect"), HX_CSTRING("lime_gfx_draw_path"), HX_CSTRING("lime_gfx_draw_tiles"), HX_CSTRING("lime_gfx_draw_points"), HX_CSTRING("lime_gfx_draw_round_rect"), HX_CSTRING("lime_gfx_draw_triangles"), String(null()) }; #if HXCPP_SCRIPTABLE static hx::StorageInfo sMemberStorageInfo[] = { {hx::fsObject /*Dynamic*/ ,(int)offsetof(Graphics_obj,__handle),HX_CSTRING("__handle")}, { hx::fsUnknown, 0, null()} }; #endif static ::String sMemberFields[] = { HX_CSTRING("__handle"), HX_CSTRING("arcTo"), HX_CSTRING("beginBitmapFill"), HX_CSTRING("beginFill"), HX_CSTRING("beginGradientFill"), HX_CSTRING("clear"), HX_CSTRING("copyFrom"), HX_CSTRING("curveTo"), HX_CSTRING("drawCircle"), HX_CSTRING("drawEllipse"), HX_CSTRING("drawGraphicsData"), HX_CSTRING("drawGraphicsDatum"), HX_CSTRING("drawPoints"), HX_CSTRING("drawRect"), HX_CSTRING("drawRoundRect"), HX_CSTRING("drawRoundRectComplex"), HX_CSTRING("drawPath"), HX_CSTRING("drawTiles"), HX_CSTRING("drawTriangles"), HX_CSTRING("endFill"), HX_CSTRING("lineBitmapStyle"), HX_CSTRING("lineGradientStyle"), HX_CSTRING("lineStyle"), HX_CSTRING("lineTo"), HX_CSTRING("moveTo"), String(null()) }; static void sMarkStatics(HX_MARK_PARAMS) { HX_MARK_MEMBER_NAME(Graphics_obj::__mClass,"__mClass"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_SCALE,"TILE_SCALE"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_ROTATION,"TILE_ROTATION"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_RGB,"TILE_RGB"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_ALPHA,"TILE_ALPHA"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_TRANS_2x2,"TILE_TRANS_2x2"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_SMOOTH,"TILE_SMOOTH"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_BLEND_NORMAL,"TILE_BLEND_NORMAL"); HX_MARK_MEMBER_NAME(Graphics_obj::TILE_BLEND_ADD,"TILE_BLEND_ADD"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_clear,"lime_gfx_clear"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_begin_fill,"lime_gfx_begin_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_begin_bitmap_fill,"lime_gfx_begin_bitmap_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_line_bitmap_fill,"lime_gfx_line_bitmap_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_begin_gradient_fill,"lime_gfx_begin_gradient_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_line_gradient_fill,"lime_gfx_line_gradient_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_end_fill,"lime_gfx_end_fill"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_line_style,"lime_gfx_line_style"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_move_to,"lime_gfx_move_to"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_line_to,"lime_gfx_line_to"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_curve_to,"lime_gfx_curve_to"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_arc_to,"lime_gfx_arc_to"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_ellipse,"lime_gfx_draw_ellipse"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_data,"lime_gfx_draw_data"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_datum,"lime_gfx_draw_datum"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_rect,"lime_gfx_draw_rect"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_path,"lime_gfx_draw_path"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_tiles,"lime_gfx_draw_tiles"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_points,"lime_gfx_draw_points"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_round_rect,"lime_gfx_draw_round_rect"); HX_MARK_MEMBER_NAME(Graphics_obj::lime_gfx_draw_triangles,"lime_gfx_draw_triangles"); }; #ifdef HXCPP_VISIT_ALLOCS static void sVisitStatics(HX_VISIT_PARAMS) { HX_VISIT_MEMBER_NAME(Graphics_obj::__mClass,"__mClass"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_SCALE,"TILE_SCALE"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_ROTATION,"TILE_ROTATION"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_RGB,"TILE_RGB"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_ALPHA,"TILE_ALPHA"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_TRANS_2x2,"TILE_TRANS_2x2"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_SMOOTH,"TILE_SMOOTH"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_BLEND_NORMAL,"TILE_BLEND_NORMAL"); HX_VISIT_MEMBER_NAME(Graphics_obj::TILE_BLEND_ADD,"TILE_BLEND_ADD"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_clear,"lime_gfx_clear"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_begin_fill,"lime_gfx_begin_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_begin_bitmap_fill,"lime_gfx_begin_bitmap_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_line_bitmap_fill,"lime_gfx_line_bitmap_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_begin_gradient_fill,"lime_gfx_begin_gradient_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_line_gradient_fill,"lime_gfx_line_gradient_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_end_fill,"lime_gfx_end_fill"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_line_style,"lime_gfx_line_style"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_move_to,"lime_gfx_move_to"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_line_to,"lime_gfx_line_to"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_curve_to,"lime_gfx_curve_to"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_arc_to,"lime_gfx_arc_to"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_ellipse,"lime_gfx_draw_ellipse"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_data,"lime_gfx_draw_data"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_datum,"lime_gfx_draw_datum"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_rect,"lime_gfx_draw_rect"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_path,"lime_gfx_draw_path"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_tiles,"lime_gfx_draw_tiles"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_points,"lime_gfx_draw_points"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_round_rect,"lime_gfx_draw_round_rect"); HX_VISIT_MEMBER_NAME(Graphics_obj::lime_gfx_draw_triangles,"lime_gfx_draw_triangles"); }; #endif Class Graphics_obj::__mClass; void Graphics_obj::__register() { hx::Static(__mClass) = hx::RegisterClass(HX_CSTRING("openfl._v2.display.Graphics"), hx::TCanCast< Graphics_obj> ,sStaticFields,sMemberFields, &__CreateEmpty, &__Create, &super::__SGetClass(), 0, sMarkStatics #ifdef HXCPP_VISIT_ALLOCS , sVisitStatics #endif #ifdef HXCPP_SCRIPTABLE , sMemberStorageInfo #endif ); } void Graphics_obj::__boot() { TILE_SCALE= (int)1; TILE_ROTATION= (int)2; TILE_RGB= (int)4; TILE_ALPHA= (int)8; TILE_TRANS_2x2= (int)16; TILE_SMOOTH= (int)4096; TILE_BLEND_NORMAL= (int)0; TILE_BLEND_ADD= (int)65536; lime_gfx_clear= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_clear"),(int)1); lime_gfx_begin_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_begin_fill"),(int)3); lime_gfx_begin_bitmap_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_begin_bitmap_fill"),(int)5); lime_gfx_line_bitmap_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_line_bitmap_fill"),(int)5); lime_gfx_begin_gradient_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_begin_gradient_fill"),(int)-1); lime_gfx_line_gradient_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_line_gradient_fill"),(int)-1); lime_gfx_end_fill= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_end_fill"),(int)1); lime_gfx_line_style= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_line_style"),(int)-1); lime_gfx_move_to= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_move_to"),(int)3); lime_gfx_line_to= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_line_to"),(int)3); lime_gfx_curve_to= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_curve_to"),(int)5); lime_gfx_arc_to= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_arc_to"),(int)5); lime_gfx_draw_ellipse= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_ellipse"),(int)5); lime_gfx_draw_data= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_data"),(int)2); lime_gfx_draw_datum= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_datum"),(int)2); lime_gfx_draw_rect= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_rect"),(int)5); lime_gfx_draw_path= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_path"),(int)4); lime_gfx_draw_tiles= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_tiles"),(int)5); lime_gfx_draw_points= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_points"),(int)-1); lime_gfx_draw_round_rect= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_round_rect"),(int)-1); lime_gfx_draw_triangles= ::openfl::_v2::Lib_obj::load(HX_CSTRING("lime"),HX_CSTRING("lime_gfx_draw_triangles"),(int)-1); } } // end namespace openfl } // end namespace _v2 } // end namespace display
[ "JayArmstrong@Jays-iMac.local" ]
JayArmstrong@Jays-iMac.local
8f1427bfc00e997d25a83bdbc68f353aa3376a52
f2df516d315ca2841191ff4f6ada7c8d1cc31273
/calculation_functors.h
8fa2700ee899d157b67a595283d9674b82f3b4ff
[ "BSD-3-Clause" ]
permissive
torcolvin/gpusimilarity
4d289310648fb482ea1323b5ca49b16e9be8ea9d
14cb106177c3aa27d49089352b4682cac89da104
refs/heads/master
2020-04-17T01:14:38.939098
2019-01-16T19:29:55
2019-01-16T19:29:55
166,083,241
0
0
null
2019-01-16T17:38:42
2019-01-16T17:38:42
null
UTF-8
C++
false
false
1,179
h
#pragma once #include <QVector> #include "types.h" namespace gpusim { /** * Functor used to perform tanimoto similarity on CPU via std::transform */ struct TanimotoFunctorCPU{ const int* m_ref_fp; const int m_fp_intsize; const int* m_dbdata; float* m_output; TanimotoFunctorCPU(const gpusim::Fingerprint& ref_fp, int fp_intsize, const std::vector<int>& dbdata, std::vector<float>& output) : m_ref_fp(ref_fp.data()),m_fp_intsize(fp_intsize),m_dbdata(dbdata.data()),m_output(output.data()) {}; void operator()(const int& fp_index) const; }; /** * Functor used to fold fingerprints down on CPU */ class FoldFingerprintFunctorCPU{ const int m_unfolded_fp_intsize; const int m_folded_fp_intsize; const int* m_unfolded; int* m_folded; public: FoldFingerprintFunctorCPU(const int factor, const int fp_intsize, const std::vector<int>& unfolded, std::vector<int>& folded) : m_unfolded_fp_intsize(fp_intsize), m_folded_fp_intsize(fp_intsize/factor), m_unfolded(unfolded.data()), m_folded(folded.data()) {}; void operator()(const int& fp_index) const; }; }; // End namespace gpusim
[ "noreply@github.com" ]
torcolvin.noreply@github.com
ceaffcb69e78209b7f084b101a8f99be26208151
b7eff0871c84e037b90bec2b38e4c01d46166b3f
/clickhouse-gpu/dbms/src/Storages/StorageFile.cpp
2f606d5cbcf739664da693cff6dea72dcd682245
[ "Apache-2.0" ]
permissive
callaby/clickhouse-gpu
607244409cf339bf6d6789c58dafef5e4f0ab97f
6b93025d4ad9abf0f58d5264157fe656e08b125e
refs/heads/master
2022-12-10T03:14:08.586756
2022-07-12T18:52:06
2022-07-12T18:52:06
239,655,171
14
5
null
2022-12-07T23:54:18
2020-02-11T02:02:13
C++
UTF-8
C++
false
false
10,267
cpp
#include <Storages/StorageFile.h> #include <Storages/StorageFactory.h> #include <Interpreters/Context.h> #include <Interpreters/evaluateConstantExpression.h> #include <Parsers/ASTLiteral.h> #include <Parsers/ASTIdentifier.h> #include <IO/ReadBufferFromFile.h> #include <IO/WriteBufferFromFile.h> #include <IO/WriteHelpers.h> #include <DataStreams/FormatFactory.h> #include <DataStreams/IProfilingBlockInputStream.h> #include <DataStreams/IBlockOutputStream.h> #include <Common/escapeForFileName.h> #include <Common/typeid_cast.h> #include <fcntl.h> namespace DB { namespace ErrorCodes { extern const int CANNOT_WRITE_TO_FILE_DESCRIPTOR; extern const int CANNOT_SEEK_THROUGH_FILE; extern const int DATABASE_ACCESS_DENIED; extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; extern const int UNKNOWN_IDENTIFIER; extern const int INCORRECT_FILE_NAME; extern const int EMPTY_LIST_OF_COLUMNS_PASSED; }; static std::string getTablePath(const std::string & db_dir_path, const std::string & table_name, const std::string & format_name) { return db_dir_path + escapeForFileName(table_name) + "/data." + escapeForFileName(format_name); } static void checkCreationIsAllowed(Context & context_global) { if (context_global.getApplicationType() == Context::ApplicationType::SERVER) throw Exception("Using file descriptor or user specified path as source of storage isn't allowed for server daemons", ErrorCodes::DATABASE_ACCESS_DENIED); } StorageFile::StorageFile( const std::string & table_path_, int table_fd_, const std::string & db_dir_path, const std::string & table_name_, const std::string & format_name_, const ColumnsDescription & columns_, Context & context_) : IStorage(columns_), table_name(table_name_), format_name(format_name_), context_global(context_), table_fd(table_fd_) { if (table_fd < 0) /// Will use file { use_table_fd = false; if (!table_path_.empty()) /// Is user's file { checkCreationIsAllowed(context_global); path = Poco::Path(table_path_).absolute().toString(); is_db_table = false; } else /// Is DB's file { if (db_dir_path.empty()) throw Exception("Storage " + getName() + " requires data path", ErrorCodes::INCORRECT_FILE_NAME); path = getTablePath(db_dir_path, table_name, format_name); is_db_table = true; Poco::File(Poco::Path(path).parent()).createDirectories(); } } else /// Will use FD { checkCreationIsAllowed(context_global); is_db_table = false; use_table_fd = true; /// Save initial offset, it will be used for repeating SELECTs /// If FD isn't seekable (lseek returns -1), then the second and subsequent SELECTs will fail. table_fd_init_offset = lseek(table_fd, 0, SEEK_CUR); } } class StorageFileBlockInputStream : public IProfilingBlockInputStream { public: StorageFileBlockInputStream(StorageFile & storage_, const Context & context, size_t max_block_size) : storage(storage_) { if (storage.use_table_fd) { storage.rwlock.lock(); /// We could use common ReadBuffer and WriteBuffer in storage to leverage cache /// and add ability to seek unseekable files, but cache sync isn't supported. if (storage.table_fd_was_used) /// We need seek to initial position { if (storage.table_fd_init_offset < 0) throw Exception("File descriptor isn't seekable, inside " + storage.getName(), ErrorCodes::CANNOT_SEEK_THROUGH_FILE); /// ReadBuffer's seek() doesn't make sence, since cache is empty if (lseek(storage.table_fd, storage.table_fd_init_offset, SEEK_SET) < 0) throwFromErrno("Cannot seek file descriptor, inside " + storage.getName(), ErrorCodes::CANNOT_SEEK_THROUGH_FILE); } storage.table_fd_was_used = true; read_buf = std::make_unique<ReadBufferFromFileDescriptor>(storage.table_fd); } else { storage.rwlock.lock_shared(); read_buf = std::make_unique<ReadBufferFromFile>(storage.path); } reader = FormatFactory().getInput(storage.format_name, *read_buf, storage.getSampleBlock(), context, max_block_size); } ~StorageFileBlockInputStream() override { if (storage.use_table_fd) storage.rwlock.unlock(); else storage.rwlock.unlock_shared(); } String getName() const override { return storage.getName(); } Block readImpl() override { return reader->read(); } Block getHeader() const override { return reader->getHeader(); }; void readPrefixImpl() override { reader->readPrefix(); } void readSuffixImpl() override { reader->readSuffix(); } private: StorageFile & storage; Block sample_block; std::unique_ptr<ReadBufferFromFileDescriptor> read_buf; BlockInputStreamPtr reader; }; BlockInputStreams StorageFile::read( const Names & /*column_names*/, const SelectQueryInfo & /*query_info*/, const Context & context, QueryProcessingStage::Enum & /*processed_stage*/, size_t max_block_size, unsigned /*num_streams*/) { return BlockInputStreams(1, std::make_shared<StorageFileBlockInputStream>(*this, context, max_block_size)); } class StorageFileBlockOutputStream : public IBlockOutputStream { public: explicit StorageFileBlockOutputStream(StorageFile & storage_) : storage(storage_), lock(storage.rwlock) { if (storage.use_table_fd) { /** NOTE: Using real file binded to FD may be misleading: * SELECT *; INSERT insert_data; SELECT *; last SELECT returns initil_fd_data + insert_data * INSERT data; SELECT *; last SELECT returns only insert_data */ storage.table_fd_was_used = true; write_buf = std::make_unique<WriteBufferFromFileDescriptor>(storage.table_fd); } else { write_buf = std::make_unique<WriteBufferFromFile>(storage.path, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_APPEND | O_CREAT); } writer = FormatFactory().getOutput(storage.format_name, *write_buf, storage.getSampleBlock(), storage.context_global); } Block getHeader() const override { return storage.getSampleBlock(); } void write(const Block & block) override { writer->write(block); } void writePrefix() override { writer->writePrefix(); } void writeSuffix() override { writer->writeSuffix(); } void flush() override { writer->flush(); } private: StorageFile & storage; std::unique_lock<std::shared_mutex> lock; std::unique_ptr<WriteBufferFromFileDescriptor> write_buf; BlockOutputStreamPtr writer; }; BlockOutputStreamPtr StorageFile::write( const ASTPtr & /*query*/, const Settings & /*settings*/) { return std::make_shared<StorageFileBlockOutputStream>(*this); } void StorageFile::drop() { /// Extra actions are not required. } void StorageFile::rename(const String & new_path_to_db, const String & /*new_database_name*/, const String & new_table_name) { if (!is_db_table) throw Exception("Can't rename table '" + table_name + "' binded to user-defined file (or FD)", ErrorCodes::DATABASE_ACCESS_DENIED); std::unique_lock<std::shared_mutex> lock(rwlock); std::string path_new = getTablePath(new_path_to_db, new_table_name, format_name); Poco::File(Poco::Path(path_new).parent()).createDirectories(); Poco::File(path).renameTo(path_new); path = std::move(path_new); } void registerStorageFile(StorageFactory & factory) { factory.registerStorage("File", [](const StorageFactory::Arguments & args) { ASTs & engine_args = args.engine_args; if (!(engine_args.size() == 1 || engine_args.size() == 2)) throw Exception( "Storage File requires 1 or 2 arguments: name of used format and source.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); engine_args[0] = evaluateConstantExpressionOrIdentifierAsLiteral(engine_args[0], args.local_context); String format_name = static_cast<const ASTLiteral &>(*engine_args[0]).value.safeGet<String>(); int source_fd = -1; String source_path; if (engine_args.size() >= 2) { /// Will use FD if engine_args[1] is int literal or identifier with std* name if (ASTIdentifier * identifier = typeid_cast<ASTIdentifier *>(engine_args[1].get())) { if (identifier->name == "stdin") source_fd = STDIN_FILENO; else if (identifier->name == "stdout") source_fd = STDOUT_FILENO; else if (identifier->name == "stderr") source_fd = STDERR_FILENO; else throw Exception("Unknown identifier '" + identifier->name + "' in second arg of File storage constructor", ErrorCodes::UNKNOWN_IDENTIFIER); } if (const ASTLiteral * literal = typeid_cast<const ASTLiteral *>(engine_args[1].get())) { auto type = literal->value.getType(); if (type == Field::Types::Int64) source_fd = static_cast<int>(literal->value.get<Int64>()); else if (type == Field::Types::UInt64) source_fd = static_cast<int>(literal->value.get<UInt64>()); } engine_args[1] = evaluateConstantExpressionOrIdentifierAsLiteral(engine_args[1], args.local_context); source_path = static_cast<const ASTLiteral &>(*engine_args[1]).value.safeGet<String>(); } return StorageFile::create( source_path, source_fd, args.data_path, args.table_name, format_name, args.columns, args.context); }); } }
[ "asolovey@nvidia.com" ]
asolovey@nvidia.com
e36f9381279fa32f7158381bf8329f7d970b375a
681b5ff086fec7e59f0b451351bbd9914f3cc641
/drivers/SerialDevice/DbWrite.hh
2d5d3fc6d32792e53b2e2217f7987d317dcc956d
[]
no_license
magic-upenn/magic2010
21615ea0dbd96437ffc18d89d3e37715790ca119
64840131389f449f823df919279639362395fb96
refs/heads/master
2020-05-18T17:28:19.590398
2014-06-15T16:35:38
2014-06-15T16:35:38
10,067,677
1
0
null
null
null
null
UTF-8
C++
false
false
854
hh
#ifndef DB_WRITE_HH #define DB_WRITE_HH #include <db_cxx.h> #include "Timer.hh" #include <fstream> #include "PointerQueueBuffer.hh" #define DB_WRITE_DEF_PAGE_SIZE 32*1024 #define DB_WRITE_DEF_CACHE_SIZE 1024*1024 namespace Upenn { class DbWrite { //constructor public: DbWrite(); //destructor public: ~DbWrite(); //open the file for writing public: int OpenDb(string filename, string header = string("")); //write data to the output file public: int WriteDb(QBData * qbd); public: int CloseDb(); public: bool IsOpenDb(); public: int FlushDb(); protected: Db * db; protected: bool dbOpen; protected: Timer fileFlushTimer; protected: ofstream infoStream; protected: ofstream headStream; protected: double startTime; private: int cntr; }; } #endif //DB_WRITE_HH
[ "akushley@61389559-6c2a-4883-acdc-2d27d9f19ada" ]
akushley@61389559-6c2a-4883-acdc-2d27d9f19ada
43e98a263200797345aca15de4e18e85c3eaafad
94756fc2d8a9966cde2fd3d31931dee6496431fd
/src/rpcdump.cpp
ab34c5525abff180401d8ce931765bc659ded864
[ "MIT" ]
permissive
Rena05/BikCoin
bd24e564b7ed74f5babd7f1c40146153dc83995c
94e623cc17b8a87b3a3174c703120d08426e6c3d
refs/heads/master
2021-08-16T01:24:09.707071
2017-11-18T18:57:15
2017-11-18T18:57:15
111,230,221
0
0
null
null
null
null
UTF-8
C++
false
false
2,704
cpp
// Copyright (c) 2009-2012 Bitcoin Developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexical_cast.hpp> #define printf OutputDebugStringF using namespace json_spirit; using namespace std; class CTxDump { public: CBlockIndex *pindex; int64 nValue; bool fSpent; CWalletTx* ptx; int nOut; CTxDump(CWalletTx* ptx = NULL, int nOut = -1) { pindex = NULL; nValue = 0; fSpent = false; this->ptx = ptx; this->nOut = nOut; } }; Value importprivkey(const Array& params, bool fHelp) { if (fHelp || params.size() < 1 || params.size() > 2) throw runtime_error( "importprivkey <BikCoin private key> [label]\n" "Adds a private key (as returned by dumpprivkey) to your wallet."); string strSecret = params[0].get_str(); string strLabel = ""; if (params.size() > 1) strLabel = params[1].get_str(); CBitcoinSecret vchSecret; bool fGood = vchSecret.SetString(strSecret); if (!fGood) throw JSONRPCError(-5,"Invalid private key"); CKey key; bool fCompressed; CSecret secret = vchSecret.GetSecret(fCompressed); key.SetSecret(secret, fCompressed); CKeyID vchAddress = key.GetPubKey().GetID(); { LOCK2(cs_main, pwalletMain->cs_wallet); pwalletMain->MarkDirty(); pwalletMain->SetAddressBookName(vchAddress, strLabel); if (!pwalletMain->AddKey(key)) throw JSONRPCError(-4,"Error adding key to wallet"); pwalletMain->ScanForWalletTransactions(pindexGenesisBlock, true); pwalletMain->ReacceptWalletTransactions(); } return Value::null; } Value dumpprivkey(const Array& params, bool fHelp) { if (fHelp || params.size() != 1) throw runtime_error( "dumpprivkey <BikCoin address>\n" "Reveals the private key corresponding to <BikCoin address>."); string strAddress = params[0].get_str(); CBitcoinAddress address; if (!address.SetString(strAddress)) throw JSONRPCError(-5, "Invalid BikCoin address"); CKeyID keyID; if (!address.GetKeyID(keyID)) throw JSONRPCError(-3, "Address does not refer to a key"); CSecret vchSecret; bool fCompressed; if (!pwalletMain->GetSecret(keyID, vchSecret, fCompressed)) throw JSONRPCError(-4,"Private key for address " + strAddress + " is not known"); return CBitcoinSecret(vchSecret, fCompressed).ToString(); }
[ "rena.mar05@gmail.com" ]
rena.mar05@gmail.com
352319f240f33d73386d0e167c5bac854471922f
91e3e30fd6ccc085ca9dccb5c91445fa9ab156a2
/Examples/Display_Shaders/HSVSprite/Sources/hsv_sprite_batch.cpp
827ff59beaceacbafb4d6cc81cbf5ef03e6d8ce7
[ "Zlib" ]
permissive
Pyrdacor/ClanLib
1bc4d933751773e5bca5c3c544d29f351a2377fb
72426fd445b59aa0b2e568c65ceccc0b3ed6fcdb
refs/heads/master
2020-04-06T06:41:34.252331
2014-10-03T21:47:06
2014-10-03T21:47:06
23,551,359
1
0
null
null
null
null
UTF-8
C++
false
false
5,010
cpp
/* ** ClanLib SDK ** Copyright (c) 1997-2013 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for any purpose, ** including commercial applications, and to alter it and redistribute it ** freely, subject to the following restrictions: ** ** 1. The origin of this software must not be misrepresented; you must not ** claim that you wrote the original software. If you use this software ** in a product, an acknowledgment in the product documentation would be ** appreciated but is not required. ** 2. Altered source versions must be plainly marked as such, and must not be ** misrepresented as being the original software. ** 3. This notice may not be removed or altered from any source distribution. ** ** Note: Some of the libraries ClanLib may link to may have additional ** requirements or restrictions. ** ** File Author(s): ** ** Magnus Norddahl */ #include "precomp.h" #include "hsv_sprite_batch.h" HSVSpriteBatch::HSVSpriteBatch(GraphicContext &gc) : fill_position(0), texture_group(Size(256, 256)), program(create_shader_program(gc)), current_vertex_buffer(0) { for (int index=0; index < num_vertex_buffers; index++) { gpu_vertices[index] = VertexArrayVector<SpriteVertex>(gc, max_vertices, usage_stream_draw); prim_array[index] = PrimitivesArray(gc); prim_array[index].set_attributes(0, gpu_vertices[index], cl_offsetof(SpriteVertex, position)); prim_array[index].set_attributes(1, gpu_vertices[index], cl_offsetof(SpriteVertex, hue_offset)); prim_array[index].set_attributes(2, gpu_vertices[index], cl_offsetof(SpriteVertex, tex1_coord)); } } Subtexture HSVSpriteBatch::alloc_sprite(Canvas &canvas, const Size &size) { return texture_group.add(canvas, size); } inline Vec4f HSVSpriteBatch::to_position(float x, float y) const { return Vec4f( modelview_projection_matrix.matrix[0*4+0]*x + modelview_projection_matrix.matrix[1*4+0]*y + modelview_projection_matrix.matrix[3*4+0], modelview_projection_matrix.matrix[0*4+1]*x + modelview_projection_matrix.matrix[1*4+1]*y + modelview_projection_matrix.matrix[3*4+1], modelview_projection_matrix.matrix[0*4+2]*x + modelview_projection_matrix.matrix[1*4+2]*y + modelview_projection_matrix.matrix[3*4+2], modelview_projection_matrix.matrix[0*4+3]*x + modelview_projection_matrix.matrix[1*4+3]*y + modelview_projection_matrix.matrix[3*4+3]); } void HSVSpriteBatch::draw_sprite(Canvas &canvas, const Rectf &dest, const Rect &src, const Texture &texture, float hue_offset) { canvas.set_batcher(this); if (current_texture != texture) { flush(canvas); current_texture = texture; } vertices[fill_position+0].position = to_position(dest.left, dest.top); vertices[fill_position+1].position = to_position(dest.right, dest.top); vertices[fill_position+2].position = to_position(dest.left, dest.bottom); vertices[fill_position+3].position = to_position(dest.right, dest.top); vertices[fill_position+4].position = to_position(dest.left, dest.bottom); vertices[fill_position+5].position = to_position(dest.right, dest.bottom); vertices[fill_position+0].tex1_coord = Vec2f(src.left/256.f, src.top/256.f); vertices[fill_position+1].tex1_coord = Vec2f(src.right/256.f, src.top/256.f); vertices[fill_position+2].tex1_coord = Vec2f(src.left/256.f, src.bottom/256.f); vertices[fill_position+3].tex1_coord = Vec2f(src.right/256.f, src.top/256.f); vertices[fill_position+4].tex1_coord = Vec2f(src.left/256.f, src.bottom/256.f); vertices[fill_position+5].tex1_coord = Vec2f(src.right/256.f, src.bottom/256.f); for (int i=0; i<6; i++) vertices[fill_position+i].hue_offset = hue_offset; fill_position += 6; if (fill_position == max_vertices) flush(canvas); } void HSVSpriteBatch::flush(GraphicContext &gc) { if (fill_position > 0) { gc.set_program_object(program); gpu_vertices[current_vertex_buffer].upload_data(gc, 0, vertices, fill_position); gc.set_texture(0, current_texture); gc.draw_primitives(type_triangles, fill_position, prim_array[current_vertex_buffer]); gc.reset_program_object(); gc.reset_texture(0); current_vertex_buffer++; if (current_vertex_buffer >= num_vertex_buffers) current_vertex_buffer = 0; fill_position = 0; current_texture = Texture(); } } void HSVSpriteBatch::matrix_changed(const Mat4f &new_modelview, const Mat4f &new_projection) { modelview_projection_matrix = new_projection * new_modelview; } ProgramObject HSVSpriteBatch::create_shader_program(GraphicContext &gc) { ProgramObject program = ProgramObject::load(gc, "Resources/vertex.glsl", "Resources/fragment.glsl"); program.bind_attribute_location(0, "Position"); program.bind_attribute_location(1, "HueOffset0"); program.bind_attribute_location(2, "TexCoord0"); if (!program.link()) throw Exception("Unable to link program"); return program; }
[ "rombust@hotmail.co.uk" ]
rombust@hotmail.co.uk
0ce146636eb1092dc053719e46af8ed267b8eaad
1b7cd2ac4d4f8a8ce57660c5e0e00af25c20885d
/DonglePro5/ISetDongleToNomalMode/ISetDongleToNomalMode.cpp
6e4fa4c7b7847f6e40e29de33ce3c26dd601f79b
[]
no_license
rockduan/DongleModule
24c0c594d14dae3000a991e87cd9c71b5206386c
a9ea8157e90387cd3f22c046cdd5ecf0a28cfb48
refs/heads/master
2021-05-02T08:57:58.146504
2014-10-24T03:14:09
2014-10-24T03:14:09
25,669,090
0
0
null
null
null
null
UTF-8
C++
false
false
293
cpp
#include "ISetDongleToNomalMode.h" ISetDongleToNomalMode::ISetDongleToNomalMode() { //ctor } ISetDongleToNomalMode::~ISetDongleToNomalMode() { //dtor } void ISetDongleToNomalMode::SetDongleToNomalMode() { cout<<"ISetDongleToNomalMode::SetDongleToNomalMode()"<<endl; }
[ "duanrock@foxmail.com" ]
duanrock@foxmail.com
ced91fab8497f94f515902b6af49834984eeca93
43eb4b71987a11905dfacfd684c20247f171b689
/solution/134/solution.cpp
43ebaba26240063f546c1b394f4981c66a9dce93
[]
no_license
youjiajia/learn-leetcode
a44cd994df1f103cd284e561ac82580739dcdeaa
f87b018f7abcdc6e7ae7532810688f9a9d8cbb41
refs/heads/master
2021-09-14T23:39:26.459338
2018-05-22T12:11:13
2018-05-22T12:11:13
104,706,976
0
0
null
null
null
null
UTF-8
C++
false
false
969
cpp
#include <stdio.h> #include <vector> class Solution { public: int canCompleteCircuit(std::vector<int>& gas, std::vector<int>& cost) { int sum_remain = 0; int max_gas_sum = 0; int max_gas_begin = 0; for(int i=0;i<gas.size();i++){ int once_remain = gas[i] - cost[i]; sum_remain += once_remain; max_gas_sum += once_remain; if(max_gas_sum<0){ max_gas_sum=0; max_gas_begin = i + 1; } } if(sum_remain>=0)return max_gas_begin; return -1; } }; int main(){ std::vector<int> gas; gas.push_back(6); gas.push_back(1); gas.push_back(4); gas.push_back(3); gas.push_back(5); std::vector<int> cost; cost.push_back(3); cost.push_back(8); cost.push_back(2); cost.push_back(4); cost.push_back(2); Solution s; int i = s.canCompleteCircuit(gas, cost); printf("%d\n", i); }
[ "jasonyou.info@gmail.com" ]
jasonyou.info@gmail.com
f78bac84fc10d38c91a7f4a2d0e5511663ae5a9e
0f6ae94ae0221ae945ce6122f866194da2eb5283
/.svn/pristine/f7/f78bac84fc10d38c91a7f4a2d0e5511663ae5a9e.svn-base
21f48493d3b53fbdab76aeade4c6a6b5a434517c
[ "NCSA" ]
permissive
peterdfinn/safecode-mainline
2a1621ef839a30664477bbd300123eb16bd204d1
a5587ccd5dfb261ca39b88855879563230f38ce0
refs/heads/master
2021-01-18T15:23:26.296177
2015-09-03T04:23:34
2015-09-03T04:23:34
38,640,903
1
0
null
null
null
null
UTF-8
C++
false
false
5,595
//===-- User.cpp - Implement the User class -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include "llvm/IR/User.h" #include "llvm/IR/Constant.h" #include "llvm/IR/GlobalValue.h" #include "llvm/IR/Operator.h" namespace llvm { class BasicBlock; //===----------------------------------------------------------------------===// // User Class //===----------------------------------------------------------------------===// void User::anchor() {} void User::replaceUsesOfWith(Value *From, Value *To) { if (From == To) return; // Duh what? assert((!isa<Constant>(this) || isa<GlobalValue>(this)) && "Cannot call User::replaceUsesOfWith on a constant!"); for (unsigned i = 0, E = getNumOperands(); i != E; ++i) if (getOperand(i) == From) { // Is This operand is pointing to oldval? // The side effects of this setOperand call include linking to // "To", adding "this" to the uses list of To, and // most importantly, removing "this" from the use list of "From". setOperand(i, To); // Fix it now... } } //===----------------------------------------------------------------------===// // User allocHungoffUses Implementation //===----------------------------------------------------------------------===// void User::allocHungoffUses(unsigned N, bool IsPhi) { assert(HasHungOffUses && "alloc must have hung off uses"); static_assert(AlignOf<Use>::Alignment >= AlignOf<Use::UserRef>::Alignment, "Alignment is insufficient for 'hung-off-uses' pieces"); static_assert(AlignOf<Use::UserRef>::Alignment >= AlignOf<BasicBlock *>::Alignment, "Alignment is insufficient for 'hung-off-uses' pieces"); // Allocate the array of Uses, followed by a pointer (with bottom bit set) to // the User. size_t size = N * sizeof(Use) + sizeof(Use::UserRef); if (IsPhi) size += N * sizeof(BasicBlock *); Use *Begin = static_cast<Use*>(::operator new(size)); Use *End = Begin + N; (void) new(End) Use::UserRef(const_cast<User*>(this), 1); setOperandList(Use::initTags(Begin, End)); } void User::growHungoffUses(unsigned NewNumUses, bool IsPhi) { assert(HasHungOffUses && "realloc must have hung off uses"); unsigned OldNumUses = getNumOperands(); // We don't support shrinking the number of uses. We wouldn't have enough // space to copy the old uses in to the new space. assert(NewNumUses > OldNumUses && "realloc must grow num uses"); Use *OldOps = getOperandList(); allocHungoffUses(NewNumUses, IsPhi); Use *NewOps = getOperandList(); // Now copy from the old operands list to the new one. std::copy(OldOps, OldOps + OldNumUses, NewOps); // If this is a Phi, then we need to copy the BB pointers too. if (IsPhi) { auto *OldPtr = reinterpret_cast<char *>(OldOps + OldNumUses) + sizeof(Use::UserRef); auto *NewPtr = reinterpret_cast<char *>(NewOps + NewNumUses) + sizeof(Use::UserRef); std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); } Use::zap(OldOps, OldOps + OldNumUses, true); } //===----------------------------------------------------------------------===// // User operator new Implementations //===----------------------------------------------------------------------===// void *User::operator new(size_t Size, unsigned Us) { assert(Us < (1u << NumUserOperandsBits) && "Too many operands"); void *Storage = ::operator new(Size + sizeof(Use) * Us); Use *Start = static_cast<Use*>(Storage); Use *End = Start + Us; User *Obj = reinterpret_cast<User*>(End); Obj->NumUserOperands = Us; Obj->HasHungOffUses = false; Use::initTags(Start, End); return Obj; } void *User::operator new(size_t Size) { // Allocate space for a single Use* void *Storage = ::operator new(Size + sizeof(Use *)); Use **HungOffOperandList = static_cast<Use **>(Storage); User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); Obj->NumUserOperands = 0; Obj->HasHungOffUses = true; *HungOffOperandList = nullptr; return Obj; } //===----------------------------------------------------------------------===// // User operator delete Implementation //===----------------------------------------------------------------------===// void User::operator delete(void *Usr) { // Hung off uses use a single Use* before the User, while other subclasses // use a Use[] allocated prior to the user. User *Obj = static_cast<User *>(Usr); if (Obj->HasHungOffUses) { Use **HungOffOperandList = static_cast<Use **>(Usr) - 1; // drop the hung off uses. Use::zap(*HungOffOperandList, *HungOffOperandList + Obj->NumUserOperands, /* Delete */ true); ::operator delete(HungOffOperandList); } else { Use *Storage = static_cast<Use *>(Usr) - Obj->NumUserOperands; Use::zap(Storage, Storage + Obj->NumUserOperands, /* Delete */ false); ::operator delete(Storage); } } //===----------------------------------------------------------------------===// // Operator Class //===----------------------------------------------------------------------===// Operator::~Operator() { llvm_unreachable("should never destroy an Operator"); } } // namespace llvm
[ "peterdfinn@icloud.com" ]
peterdfinn@icloud.com
f2b2d4d5368dab9345b9bcee1b75c21c934f9994
dfd297e79f8a728fabc02ee0ff36f78d7b2b90d5
/examples/hello-world/src/mode3.hpp
db78b62da8acc374805d6a146c80f1b26ffd62ed
[]
no_license
jdiemke/gba-dev
9ea6b22315a03d9e20df6efe49a9067542f06d1f
075cd175c670dc4ce112e386bfc23da1f0a8c521
refs/heads/master
2020-06-29T00:40:56.284955
2019-08-25T11:57:21
2019-08-25T11:57:21
200,387,664
0
0
null
null
null
null
UTF-8
C++
false
false
70
hpp
void setDisplayMode(u32 mode); void setPixel(int x, int y, u16 color);
[ "johannesdiemke128@gmail.com" ]
johannesdiemke128@gmail.com
07d7b1c545194b9734fb8011393c48f6b8b5f832
74d1f978c0a4dfbf9805eaf11b42d447c9afa8e4
/TareaLabProgramacion3/TareaLabProgramacion3/ArithmeticExpression.cpp
ead4999f632a354bafde45a7bfccfa36aa1b9ace
[]
no_license
KevinSantos1998/avanceLab-p-3
44efd63b8745925f8a7f8dc45274076d5d857856
92ed6ec01a31cb7a65bdbedde43d1c4fbc97ee19
refs/heads/master
2020-04-27T20:10:56.744931
2019-03-09T04:43:08
2019-03-09T04:43:08
174,648,374
0
0
null
null
null
null
UTF-8
C++
false
false
399
cpp
#include "pch.h" #include "ArithmeticExpression.h" #include <iostream> #include "Addition.h" int ArithmeticExpression::getValue() { return 0; } ArithmeticExpression::ArithmeticExpression(){ } ArithmeticExpression::ArithmeticExpression(Expression *E, Expression *I) { this->e = E; this->i = I; } string ArithmeticExpression::stringify() { Addition x(e, i); return x.stringify(); }
[ "noreply@github.com" ]
KevinSantos1998.noreply@github.com
565000a4ca3eac04a866c02464add64e90d05199
74d91f18c37b103dc8d0d5eaa65586eadb1abbd4
/util.h
b362b7d5f3f9aaf892c2672a787477f8c9011289
[]
no_license
QuentinGouchet/Cryptographic-Calculator
b3b0666248ea4759c615c1e152583340c34c17b0
8039989fd1d5b67be461a1d917aa164598ff831c
refs/heads/master
2021-01-21T12:23:21.843461
2014-05-28T12:24:15
2014-05-28T12:24:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
261
h
#ifndef UTIL_H #define UTIL_H #include <stdio.h> #include <stdlib.h> #include "gmp.h" typedef struct{ unsigned char* string; unsigned int size; }buff_t; class Util { public: static buff_t convert(mpz_t,unsigned int); }; #endif // UTIL_H
[ "quentin.gouchet@gmail.com" ]
quentin.gouchet@gmail.com
1614227bbc9dbf22333431731c142d1d2dac1af8
3b74241704f1317aef4e54ce66494a4787b0b8c0
/AtCoder/ABC208/C.cpp
3b8e5772946c0db0dfc2a3ad54ee06bbe4c6cda4
[ "CC0-1.0" ]
permissive
arlechann/atcoder
990a5c3367de23dd79359906fd5119496aad6eee
a62fa2324005201d518b800a5372e855903952de
refs/heads/master
2023-09-01T12:49:34.034329
2023-08-26T17:20:36
2023-08-26T17:20:36
211,708,577
0
0
CC0-1.0
2022-06-06T21:49:11
2019-09-29T18:37:00
Rust
UTF-8
C++
false
false
3,330
cpp
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string> #include <tuple> #include <type_traits> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #define REP(i, n) for(int i = 0, i##_MACRO = (n); i < i##_MACRO; i++) #define RREP(i, n) for(int i = (n)-1; i >= 0; i--) #define RANGE(i, a, b) for(int i = (a), i##_MACRO = (b); i < i##_MACRO; i++) #define RRANGE(i, a, b) for(int i = (b)-1, i##_MACRO = (a); i >= i##_MACRO; i--) #define EACH(e, a) for(auto&& e : a) #define ALL(a) std::begin(a), std::end(a) #define RALL(a) std::rbegin(a), std::rend(a) #define FILL(a, n) memset((a), n, sizeof(a)) #define FILLZ(a) FILL(a, 0) #define INT(x) (static_cast<int>(x)) #define PRECISION(x) std::fixed << std::setprecision(x) using namespace std; using ll = long long; using VI = std::vector<int>; using VI2D = std::vector<vector<int>>; using VLL = std::vector<long long>; using VLL2D = std::vector<vector<long long>>; constexpr int INF = 2e9; constexpr long long INFLL = 2e18; constexpr double EPS = 1e-10; constexpr double PI = acos(-1.0); constexpr int dx[] = {-1, 0, 1, 0}; constexpr int dy[] = {0, -1, 0, 1}; template <typename T, std::size_t N> struct make_vector_type { using type = typename std::vector<typename make_vector_type<T, (N - 1)>::type>; }; template <typename T> struct make_vector_type<T, 0> { using type = typename std::vector<T>; }; template <typename T, size_t N> auto make_vector_impl(const std::vector<std::size_t>& ls, T init_value) { if constexpr(N == 0) { return std::vector<T>(ls[N], init_value); } else { return typename make_vector_type<T, N>::type( ls[N], make_vector_impl<T, (N - 1)>(ls, init_value)); } } template <typename T, std::size_t N> auto make_vector(const std::size_t (&ls)[N], T init_value) { std::vector<std::size_t> dimensions(N); for(int i = 0; i < N; i++) { dimensions[N - i - 1] = ls[i]; } return make_vector_impl<T, N - 1>(dimensions, init_value); } template <typename T> std::vector<T> make_vector(std::size_t size, T init_value) { return std::vector<T>(size, init_value); } template <typename T> constexpr int sign(T x) { return x < 0 ? -1 : x > 0 ? 1 : 0; } template <> constexpr int sign(double x) { return x < -EPS ? -1 : x > EPS ? 1 : 0; } template <typename T, typename U> constexpr bool chmax(T& m, U x) { m = max<T>(m, x); return m < x; } template <typename T, typename U> constexpr bool chmin(T& m, U x) { m = min<T>(m, x); return m > x; } template <typename T> constexpr T square(T x) { return x * x; } template <typename T> constexpr T pow(T a, int n) { T ret = 1; while(n != 0) { if(n % 2) { ret *= a; } a *= a; n /= 2; } return ret; } template <typename T> constexpr T diff(T a, T b) { return abs(a - b); } int main() { int n; ll k; cin >> n >> k; VI a(n); EACH(e, a) { cin >> e; } vector<pair<int, int>> p(n); REP(i, n) { p[i] = make_pair(a[i], i); } sort(ALL(p)); ll all = k / n; ll k2 = k % n; VI m(n, 0); REP(i, n) { if(i + 1 <= k2) { m[p[i].second] = 1; } } REP(i, n) { cout << all + m[i] << endl; } return 0; }
[ "dragnov3728@gmail.com" ]
dragnov3728@gmail.com
6d23543ff70b5084dde81dd63d505d9919378462
0bbd62253224e22395b9f306ef25e88ad0e8578e
/Breakout-Win-Test/CollisionCalculatorTest.cpp
e3b36ba90b907fc1d3daa1d7e03e4b9614e77f46
[ "MIT" ]
permissive
huddeldaddel/breakout-go
4c1d73ba87e96c0d8fc9657611641de6dcb4cd24
08feaaa2d49327c9e3085ed29ac80ba4e30db22e
refs/heads/master
2020-04-22T01:08:41.524252
2019-05-01T10:51:32
2019-05-01T10:51:32
170,004,851
0
1
MIT
2019-03-23T10:27:15
2019-02-10T17:26:53
C++
UTF-8
C++
false
false
5,728
cpp
#include "CppUnitTest.h" #include "../Breakout-Go/Ball.h" #include "../Breakout-Go/CollisionCalculator.h" #include "../Breakout-Go/Device.h" #include "../Breakout-Go/Level.h" #include "../Breakout-Go/Line.h" #include "TestDevice.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; TEST_CLASS(CollisionCalculatorTest) { public: TEST_METHOD(getCollisionWithLeftWallTouched) { Ball* ball = new Ball(13, 0, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Collision* collision = calc->getCollisionWithLeftWall(-5, 0); Assert::IsNotNull(collision); Assert::AreEqual(0.0f, collision->getDistance(), 0.01f); Assert::AreEqual(-5.0f, collision->getRemainingMomentumX()); Assert::AreEqual(0.0f, collision->getRemainingMomentumY()); delete collision; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getCollisionWithRightWallTouched) { Ball* ball = new Ball(307, 0, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Collision* collision = calc->getCollisionWithRightWall(5, 0); Assert::IsNotNull(collision); Assert::AreEqual(0.0f, collision->getDistance(), 0.01f); Assert::AreEqual(5.0f, collision->getRemainingMomentumX()); Assert::AreEqual(0.0f, collision->getRemainingMomentumY()); delete collision; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getCollisionWithTopWallTouched) { Ball* ball = new Ball(60, 23, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Collision* collision = calc->getCollisionWithTopWall(0, -5); Assert::IsNotNull(collision); Assert::AreEqual(0.0f, collision->getDistance(), 0.01f); Assert::AreEqual(0.0f, collision->getRemainingMomentumX()); Assert::AreEqual(-5.0f, collision->getRemainingMomentumY()); delete collision; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getIntersectionOfLines) { Ball* ball = new Ball(0, 0, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Line leftBorder{ 4, 0, 4, 239 }; Line ballVector{ 8, 20, 2, 20 }; Point* intersection = calc->getIntersectionOfLines(leftBorder, ballVector); Assert::IsNotNull(intersection); Assert::AreEqual(4, int(intersection->getX())); Assert::AreEqual(20, int(intersection->getY())); delete intersection; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getDistanceToPoint1) { Ball* ball = new Ball(0, 0, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Line line{ 0, 0, 10, 10 }; Point* intersection = new Point(4, 4); float distance = calc->getDistanceToPoint(line, intersection); Assert::AreEqual(5.65f, distance, 0.01f); delete intersection; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getDistanceToPoint2) { Ball* ball = new Ball(0, 0, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Line line{ 10, 10, 0, 0 }; Point* intersection = new Point(6, 6); float distance = calc->getDistanceToPoint(line, intersection); Assert::AreEqual(5.65f, distance, 0.01f); delete intersection; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getBallMovementOutlines) { Ball* ball = new Ball(20, 20, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); std::vector<Line> outlines = calc->getBallMovementOutlines(5.0f, 5.0f); Assert::AreEqual(4, int(outlines.size())); Assert::IsTrue(Line{ 20, 23, 25, 28 } == outlines.at(0)); Assert::IsTrue(Line{ 20, 17, 25, 22 } == outlines.at(1)); Assert::IsTrue(Line{ 17, 20, 22, 25 } == outlines.at(2)); Assert::IsTrue(Line{ 23, 20, 28, 25 } == outlines.at(3)); delete calc; delete level; delete device; delete ball; } TEST_METHOD(getCollisionDown) { Ball* ball = new Ball(20, 20, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Rectangle* rect = new Rectangle(10, 25, 50, 3); Collision* collision = calc->getCollision(rect, 5, 5); delete rect; Assert::IsNotNull(collision); Assert::IsTrue(Direction::DOWN == collision->getDirection()); Assert::AreEqual(2.82f, collision->getDistance(), 0.01f); Assert::IsTrue(Point{ 22, 25 } == *collision->getPoint()); delete collision; delete calc; delete level; delete device; delete ball; } TEST_METHOD(getCollisionUp) { Ball* ball = new Ball(20, 20, 3); Device* device = new TestDevice(false); Level* level = new Level(device); CollisionCalculator* calc = new CollisionCalculator(ball, device, level); Rectangle* rect = new Rectangle(10, 10, 50, 5); Collision* collision = calc->getCollision(rect, 5, -5); delete rect; Assert::IsNotNull(collision); Assert::IsTrue(Direction::UP == collision->getDirection()); Assert::AreEqual(2.82f, collision->getDistance(), 0.01f); Assert::IsTrue(Point{ 22, 15 } == *collision->getPoint()); delete collision; delete calc; delete level; delete device; delete ball; } };
[ "35447824+huddeldaddel@users.noreply.github.com" ]
35447824+huddeldaddel@users.noreply.github.com
68cfd0826a826cdd7149cdd5e651c3fc2975e549
e4c432f43fb1711d7307a25d5bc07f64e26ae9de
/rediscpp/ConnectionPool.cpp
1f77b417e8989b91bb80224cca68b3a3ac339980
[]
no_license
longshadian/zylib
c456dc75470f9c6512a7d63b1182cb9eebcca999
9fde01c76a1c644d5daa46a645c8e1300e72c5bf
refs/heads/master
2021-01-22T23:49:11.912633
2020-06-16T09:13:50
2020-06-16T09:13:50
85,669,581
2
1
null
null
null
null
GB18030
C++
false
false
3,019
cpp
#include "ConnectionPool.h" #include <algorithm> #include <cassert> namespace rediscpp { ConnectionGuard::ConnectionGuard(ConnectionPool& pool) : m_pool(pool) , m_conn(nullptr) { m_conn = m_pool.getConn(); } ConnectionGuard::~ConnectionGuard() { if (m_conn) { m_pool.rleaseConn(std::move(m_conn)); } } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ConnectionPool::ConnectionPool(ConnectionOpt conn_opt, ConnectionPoolOpt pool_opt) : m_mutex() , m_pool() , m_conn_opt(std::move(conn_opt)) , m_pool_opt(std::move(pool_opt)) { } ConnectionPool::~ConnectionPool() { } bool ConnectionPool::init() { for (size_t i = 0; i != m_pool_opt.m_pool_size; ++i) { auto conn = create(); if (!conn) { return false; } auto slot = std::make_shared<Slot>(conn, false); std::lock_guard<std::mutex> lk{ m_mutex }; m_pool.push_back(std::move(slot)); } return true; } ConnectionPtr ConnectionPool::getConn() { { std::lock_guard<std::mutex> lk{ m_mutex }; auto slot = findEmptySlot(); if (slot) { slot->m_is_using = true; return slot->m_conn; } if (m_pool.size() >= m_pool_opt.m_pool_max_size) { return nullptr; } } // 创建新链接 auto conn = create(); if (!conn) return nullptr; { std::lock_guard<std::mutex> lk{ m_mutex }; m_pool.push_back(std::make_shared<Slot>(conn, true)); } return conn; } void ConnectionPool::rleaseConn(ConnectionPtr conn) { std::lock_guard<std::mutex> m_lk{ m_mutex }; auto it = std::find_if(m_pool.begin(), m_pool.end(), [&conn](const SlotPtr& p) { return p->m_conn == conn; }); assert(it != m_pool.end()); auto slot = *it; assert(slot->m_is_using); slot->m_is_using = false; // 放到列表的最后 m_pool.erase(it); m_pool.push_back(slot); // TODO 销毁超时链接 } size_t ConnectionPool::connectionCount() const { std::lock_guard<std::mutex> lk{ m_mutex }; return m_pool.size(); } ConnectionPtr ConnectionPool::create() const { std::shared_ptr<Connection> conn = nullptr; if (m_conn_opt.m_time_out) { conn = std::make_shared<Connection>(::redisConnectWithTimeout(m_conn_opt.m_ip.c_str(), m_conn_opt.m_port, *m_conn_opt.m_time_out)); } else { conn = std::make_shared<Connection>(::redisConnect(m_conn_opt.m_ip.c_str(), m_conn_opt.m_port)); } if (!*conn) { return nullptr; } if (!conn->keepAlive()) { return nullptr; } return conn; } ConnectionPool::SlotPtr ConnectionPool::findEmptySlot() { for (auto& s : m_pool) { if (!s->m_is_using) { return s; } } return nullptr; } } // rediscpp
[ "guangyuanchen001@163.com" ]
guangyuanchen001@163.com
364dc16dddd3901fd34d9d6de79e318ea68a06c6
ef3917be2687fe8da1fd00581b5eba33653e101b
/bubblesort.cpp
5f6e21ea862a36986306bc3d91a7dd3bae73d0fc
[]
no_license
sametsalgin/Sorting_Performance
650c972f94e24c29af3faa1e0797cb04bd004473
ab3c42e17d6cce4c26e74cc1655c4d7c235a8b5a
refs/heads/master
2021-01-04T11:05:57.632731
2020-02-14T14:00:36
2020-02-14T14:00:36
240,519,827
0
0
null
null
null
null
WINDOWS-1258
C++
false
false
924
cpp
/***************************************** * bubblesort.cpp * ***************************************** * IDE : Visual Studio 2017 * * Author : Samet SALGIN -152120151070* * Experiment 7: –Siralama Algoritmalari * *created on =23 ARALIK 2018 * *****************************************/ #include "bubblesort.h" #include<iostream> using namespace std; bubblesort::bubblesort() { } void bubblesort::bubblesortsirala(int dizi[], int boyut) { int temp; sayac = 0; for (int i = 0; i < boyut - 1; i++) { comparesayac++; for (int j = 0; j < boyut - i - 1; j++) { comparesayac++; if (dizi[j] > dizi[j + 1]) { sayac++; temp = dizi[j]; dizi[j] = dizi[j + 1]; dizi[j + 1] = temp; } } } } long long int bubblesort::getsayac() { return sayac; } long long int bubblesort::getcomparesayac() { return comparesayac; } bubblesort::~bubblesort() { }
[ "noreply@github.com" ]
sametsalgin.noreply@github.com
d9b10b4233585f2ba6774b25c3c6c4b948c7c348
499a4f2c530023a39ed7a0d2d6077d570c37e651
/SDK/RoCo_WBP_KeyCallout_classes.hpp
a75157b0cbe6cf758846e1ccd135ecff25417932
[]
no_license
zH4x/RoCo-SDK
e552653bb513b579ab0b1ea62343365db476f998
6019053276aecca48b75edd58171876570fc6342
refs/heads/master
2023-05-06T20:57:27.585479
2021-05-23T06:44:59
2021-05-23T06:44:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,832
hpp
#pragma once // Rogue Company (0.59) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "RoCo_WBP_KeyCallout_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass WBP_KeyCallout.WBP_KeyCallout_C // 0x0034 (0x026C - 0x0238) class UWBP_KeyCallout_C : public UUserWidget { public: struct FPointerToUberGraphFrame UberGraphFrame; // 0x0238(0x0008) (CPF_ZeroConstructor, CPF_Transient, CPF_DuplicateTransient) class UWBP_AsyncIcon_C* CalloutIcon; // 0x0240(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_NoDestructor, CPF_PersistentInstance, CPF_HasGetValueTypeHash) struct FKey Key; // 0x0248(0x0018) (CPF_Edit, CPF_BlueprintVisible, CPF_ExposeOnSpawn, CPF_HasGetValueTypeHash) struct FName KeyBind; // 0x0260(0x0008) (CPF_Edit, CPF_BlueprintVisible, CPF_ZeroConstructor, CPF_IsPlainOldData, CPF_NoDestructor, CPF_ExposeOnSpawn, CPF_HasGetValueTypeHash) bool DisplayKeybind; // 0x0268(0x0001) (CPF_Edit, CPF_BlueprintVisible, CPF_ZeroConstructor, CPF_IsPlainOldData, CPF_NoDestructor, CPF_ExposeOnSpawn) bool SecondaryKey; // 0x0269(0x0001) (CPF_Edit, CPF_BlueprintVisible, CPF_ZeroConstructor, CPF_IsPlainOldData, CPF_NoDestructor, CPF_ExposeOnSpawn) bool FallbackToDefaults; // 0x026A(0x0001) (CPF_Edit, CPF_BlueprintVisible, CPF_ZeroConstructor, CPF_IsPlainOldData, CPF_NoDestructor, CPF_ExposeOnSpawn) bool GamepadDoubleTap; // 0x026B(0x0001) (CPF_Edit, CPF_BlueprintVisible, CPF_ZeroConstructor, CPF_DisableEditOnInstance, CPF_IsPlainOldData, CPF_NoDestructor) static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("WidgetBlueprintGeneratedClass WBP_KeyCallout.WBP_KeyCallout_C")); return ptr; } void SetKeybind(const struct FName& KeyBind); void UpdateKeyDisplay(); void SetKey(const struct FKey& Key); void PreConstruct(bool IsDesignTime); void ExecuteUbergraph_WBP_KeyCallout(int EntryPoint); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "30532128+pubgsdk@users.noreply.github.com" ]
30532128+pubgsdk@users.noreply.github.com
e7df0451dae1f3e171c9fd844628fd8ea8760ecf
77d019af4bce57ac48a796178db456397a07535e
/OC语言/ProgramCollection/Block底层原理探究/test_block_code/main+2.cpp
1833270a5fe59034d0f9df80796708601298ce9a
[]
no_license
Kasign/Demos
f4698e9b56de2a5efa60c437f49a0c18609bd943
ff6965f1591d9a6b61055b1d5e7d4413b86056a8
refs/heads/master
2023-08-03T11:08:21.054957
2023-02-13T09:59:58
2023-02-13T09:59:58
83,262,487
4
1
null
null
null
null
UTF-8
C++
false
false
3,488,020
cpp
#ifndef __OBJC2__ #define __OBJC2__ #endif struct objc_selector; struct objc_class; struct __rw_objc_super { struct objc_object *object; struct objc_object *superClass; __rw_objc_super(struct objc_object *o, struct objc_object *s) : object(o), superClass(s) {} }; #ifndef _REWRITER_typedef_Protocol typedef struct objc_object Protocol; #define _REWRITER_typedef_Protocol #endif #define __OBJC_RW_DLLIMPORT extern __OBJC_RW_DLLIMPORT void objc_msgSend(void); __OBJC_RW_DLLIMPORT void objc_msgSendSuper(void); __OBJC_RW_DLLIMPORT void objc_msgSend_stret(void); __OBJC_RW_DLLIMPORT void objc_msgSendSuper_stret(void); __OBJC_RW_DLLIMPORT void objc_msgSend_fpret(void); __OBJC_RW_DLLIMPORT struct objc_class *objc_getClass(const char *); __OBJC_RW_DLLIMPORT struct objc_class *class_getSuperclass(struct objc_class *); __OBJC_RW_DLLIMPORT struct objc_class *objc_getMetaClass(const char *); __OBJC_RW_DLLIMPORT void objc_exception_throw( struct objc_object *); __OBJC_RW_DLLIMPORT int objc_sync_enter( struct objc_object *); __OBJC_RW_DLLIMPORT int objc_sync_exit( struct objc_object *); __OBJC_RW_DLLIMPORT Protocol *objc_getProtocol(const char *); #ifdef _WIN64 typedef unsigned long long _WIN_NSUInteger; #else typedef unsigned int _WIN_NSUInteger; #endif #ifndef __FASTENUMERATIONSTATE struct __objcFastEnumerationState { unsigned long state; void **itemsPtr; unsigned long *mutationsPtr; unsigned long extra[5]; }; __OBJC_RW_DLLIMPORT void objc_enumerationMutation(struct objc_object *); #define __FASTENUMERATIONSTATE #endif #ifndef __NSCONSTANTSTRINGIMPL struct __NSConstantStringImpl { int *isa; int flags; char *str; #if _WIN64 long long length; #else long length; #endif }; #ifdef CF_EXPORT_CONSTANT_STRING extern "C" __declspec(dllexport) int __CFConstantStringClassReference[]; #else __OBJC_RW_DLLIMPORT int __CFConstantStringClassReference[]; #endif #define __NSCONSTANTSTRINGIMPL #endif #ifndef BLOCK_IMPL #define BLOCK_IMPL struct __block_impl { void *isa; int Flags; int Reserved; void *FuncPtr; }; // Runtime copy/destroy helper functions (from Block_private.h) #ifdef __OBJC_EXPORT_BLOCKS extern "C" __declspec(dllexport) void _Block_object_assign(void *, const void *, const int); extern "C" __declspec(dllexport) void _Block_object_dispose(const void *, const int); extern "C" __declspec(dllexport) void *_NSConcreteGlobalBlock[32]; extern "C" __declspec(dllexport) void *_NSConcreteStackBlock[32]; #else __OBJC_RW_DLLIMPORT void _Block_object_assign(void *, const void *, const int); __OBJC_RW_DLLIMPORT void _Block_object_dispose(const void *, const int); __OBJC_RW_DLLIMPORT void *_NSConcreteGlobalBlock[32]; __OBJC_RW_DLLIMPORT void *_NSConcreteStackBlock[32]; #endif #endif #define __block #define __weak #include <stdarg.h> struct __NSContainer_literal { void * *arr; __NSContainer_literal (unsigned int count, ...) { va_list marker; va_start(marker, count); arr = new void *[count]; for (unsigned i = 0; i < count; i++) arr[i] = va_arg(marker, void *); va_end( marker ); }; ~__NSContainer_literal() { delete[] arr; } }; extern "C" __declspec(dllimport) void * objc_autoreleasePoolPush(void); extern "C" __declspec(dllimport) void objc_autoreleasePoolPop(void *); struct __AtAutoreleasePool { __AtAutoreleasePool() {atautoreleasepoolobj = objc_autoreleasePoolPush();} ~__AtAutoreleasePool() {objc_autoreleasePoolPop(atautoreleasepoolobj);} void * atautoreleasepoolobj; }; #define __OFFSETOFIVAR__(TYPE, MEMBER) ((long long) &((TYPE *)0)->MEMBER) static __NSConstantStringImpl __NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_0 __attribute__ ((section ("__DATA, __cfstring"))) = {__CFConstantStringClassReference,0x000007c8,"abcd",4}; static __NSConstantStringImpl __NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_1 __attribute__ ((section ("__DATA, __cfstring"))) = {__CFConstantStringClassReference,0x000007c8,"fly_abcd",8}; static __NSConstantStringImpl __NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_2 __attribute__ ((section ("__DATA, __cfstring"))) = {__CFConstantStringClassReference,0x000007c8,"FLY_Block - %@",14}; static __NSConstantStringImpl __NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_3 __attribute__ ((section ("__DATA, __cfstring"))) = {__CFConstantStringClassReference,0x000007c8,"FLY_Block - 2 - %@",18}; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; typedef long long __int64_t; typedef unsigned long long __uint64_t; typedef long __darwin_intptr_t; typedef unsigned int __darwin_natural_t; typedef int __darwin_ct_rune_t; typedef union { char __mbstate8[128]; long long _mbstateL; } __mbstate_t; typedef __mbstate_t __darwin_mbstate_t; typedef long int __darwin_ptrdiff_t; typedef long unsigned int __darwin_size_t; typedef __builtin_va_list __darwin_va_list; typedef int __darwin_wchar_t; typedef __darwin_wchar_t __darwin_rune_t; typedef int __darwin_wint_t; typedef unsigned long __darwin_clock_t; typedef __uint32_t __darwin_socklen_t; typedef long __darwin_ssize_t; typedef long __darwin_time_t; typedef signed char int8_t; typedef short int16_t; typedef int int32_t; typedef long long int64_t; typedef unsigned char u_int8_t; typedef unsigned short u_int16_t; typedef unsigned int u_int32_t; typedef unsigned long long u_int64_t; typedef int64_t register_t; typedef __darwin_intptr_t intptr_t; typedef unsigned long uintptr_t; typedef u_int64_t user_addr_t; typedef u_int64_t user_size_t; typedef int64_t user_ssize_t; typedef int64_t user_long_t; typedef u_int64_t user_ulong_t; typedef int64_t user_time_t; typedef int64_t user_off_t; typedef u_int64_t syscall_arg_t; typedef __int64_t __darwin_blkcnt_t; typedef __int32_t __darwin_blksize_t; typedef __int32_t __darwin_dev_t; typedef unsigned int __darwin_fsblkcnt_t; typedef unsigned int __darwin_fsfilcnt_t; typedef __uint32_t __darwin_gid_t; typedef __uint32_t __darwin_id_t; typedef __uint64_t __darwin_ino64_t; typedef __darwin_ino64_t __darwin_ino_t; typedef __darwin_natural_t __darwin_mach_port_name_t; typedef __darwin_mach_port_name_t __darwin_mach_port_t; typedef __uint16_t __darwin_mode_t; typedef __int64_t __darwin_off_t; typedef __int32_t __darwin_pid_t; typedef __uint32_t __darwin_sigset_t; typedef __int32_t __darwin_suseconds_t; typedef __uint32_t __darwin_uid_t; typedef __uint32_t __darwin_useconds_t; typedef unsigned char __darwin_uuid_t[16]; typedef char __darwin_uuid_string_t[37]; struct __darwin_pthread_handler_rec { void (*__routine)(void *); void *__arg; struct __darwin_pthread_handler_rec *__next; }; struct _opaque_pthread_attr_t { long __sig; char __opaque[56]; }; struct _opaque_pthread_cond_t { long __sig; char __opaque[40]; }; struct _opaque_pthread_condattr_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_mutex_t { long __sig; char __opaque[56]; }; struct _opaque_pthread_mutexattr_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_once_t { long __sig; char __opaque[8]; }; struct _opaque_pthread_rwlock_t { long __sig; char __opaque[192]; }; struct _opaque_pthread_rwlockattr_t { long __sig; char __opaque[16]; }; struct _opaque_pthread_t { long __sig; struct __darwin_pthread_handler_rec *__cleanup_stack; char __opaque[8176]; }; typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t; typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t; typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t; typedef unsigned long __darwin_pthread_key_t; typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t; typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t; typedef struct _opaque_pthread_once_t __darwin_pthread_once_t; typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t; typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t; typedef struct _opaque_pthread_t *__darwin_pthread_t; static inline __uint16_t _OSSwapInt16( __uint16_t _data ) { return (__uint16_t)((_data << 8) | (_data >> 8)); } static inline __uint32_t _OSSwapInt32( __uint32_t _data ) { return __builtin_bswap32(_data); } static inline __uint64_t _OSSwapInt64( __uint64_t _data ) { return __builtin_bswap64(_data); } typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned short ushort; typedef unsigned int uint; typedef u_int64_t u_quad_t; typedef int64_t quad_t; typedef quad_t * qaddr_t; typedef char * caddr_t; typedef int32_t daddr_t; typedef __darwin_dev_t dev_t; typedef u_int32_t fixpt_t; typedef __darwin_blkcnt_t blkcnt_t; typedef __darwin_blksize_t blksize_t; typedef __darwin_gid_t gid_t; typedef __uint32_t in_addr_t; typedef __uint16_t in_port_t; typedef __darwin_ino_t ino_t; typedef __darwin_ino64_t ino64_t; typedef __int32_t key_t; typedef __darwin_mode_t mode_t; typedef __uint16_t nlink_t; typedef __darwin_id_t id_t; typedef __darwin_pid_t pid_t; typedef __darwin_off_t off_t; typedef int32_t segsz_t; typedef int32_t swblk_t; typedef __darwin_uid_t uid_t; static inline __int32_t major(__uint32_t _x) { return (__int32_t)(((__uint32_t)_x >> 24) & 0xff); } static inline __int32_t minor(__uint32_t _x) { return (__int32_t)((_x) & 0xffffff); } static inline dev_t makedev(__uint32_t _major, __uint32_t _minor) { return (dev_t)(((_major) << 24) | (_minor)); } typedef __darwin_clock_t clock_t; typedef __darwin_size_t size_t; typedef __darwin_ssize_t ssize_t; typedef __darwin_time_t time_t; typedef __darwin_useconds_t useconds_t; typedef __darwin_suseconds_t suseconds_t; typedef __darwin_size_t rsize_t; typedef int errno_t; extern "C" { typedef struct fd_set { __int32_t fds_bits[((((1024) % ((sizeof(__int32_t) * 8))) == 0) ? ((1024) / ((sizeof(__int32_t) * 8))) : (((1024) / ((sizeof(__int32_t) * 8))) + 1))]; } fd_set; int __darwin_check_fd_set_overflow(int, const void *, int) __attribute__((availability(macosx,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); } inline __attribute__ ((__always_inline__)) int __darwin_check_fd_set(int _a, const void *_b) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability-new" if ((uintptr_t)&__darwin_check_fd_set_overflow != (uintptr_t) 0) { return __darwin_check_fd_set_overflow(_a, _b, 0); } else { return 1; } #pragma clang diagnostic pop } inline __attribute__ ((__always_inline__)) int __darwin_fd_isset(int _fd, const struct fd_set *_p) { if (__darwin_check_fd_set(_fd, (const void *) _p)) { return _p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] & ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8)))); } return 0; } inline __attribute__ ((__always_inline__)) void __darwin_fd_set(int _fd, struct fd_set *const _p) { if (__darwin_check_fd_set(_fd, (const void *) _p)) { (_p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] |= ((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8))))); } } inline __attribute__ ((__always_inline__)) void __darwin_fd_clr(int _fd, struct fd_set *const _p) { if (__darwin_check_fd_set(_fd, (const void *) _p)) { (_p->fds_bits[(unsigned long)_fd / (sizeof(__int32_t) * 8)] &= ~((__int32_t)(((unsigned long)1) << ((unsigned long)_fd % (sizeof(__int32_t) * 8))))); } } typedef __int32_t fd_mask; typedef __darwin_pthread_attr_t pthread_attr_t; typedef __darwin_pthread_cond_t pthread_cond_t; typedef __darwin_pthread_condattr_t pthread_condattr_t; typedef __darwin_pthread_mutex_t pthread_mutex_t; typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t; typedef __darwin_pthread_once_t pthread_once_t; typedef __darwin_pthread_rwlock_t pthread_rwlock_t; typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t; typedef __darwin_pthread_t pthread_t; typedef __darwin_pthread_key_t pthread_key_t; typedef __darwin_fsblkcnt_t fsblkcnt_t; typedef __darwin_fsfilcnt_t fsfilcnt_t; typedef __builtin_va_list va_list; typedef __builtin_va_list __gnuc_va_list; typedef int __darwin_nl_item; typedef int __darwin_wctrans_t; typedef __uint32_t __darwin_wctype_t; typedef enum { P_ALL, P_PID, P_PGID } idtype_t; typedef int sig_atomic_t; struct __darwin_i386_thread_state { unsigned int __eax; unsigned int __ebx; unsigned int __ecx; unsigned int __edx; unsigned int __edi; unsigned int __esi; unsigned int __ebp; unsigned int __esp; unsigned int __ss; unsigned int __eflags; unsigned int __eip; unsigned int __cs; unsigned int __ds; unsigned int __es; unsigned int __fs; unsigned int __gs; }; struct __darwin_fp_control { unsigned short __invalid :1, __denorm :1, __zdiv :1, __ovrfl :1, __undfl :1, __precis :1, :2, __pc :2, __rc :2, :1, :3; }; typedef struct __darwin_fp_control __darwin_fp_control_t; struct __darwin_fp_status { unsigned short __invalid :1, __denorm :1, __zdiv :1, __ovrfl :1, __undfl :1, __precis :1, __stkflt :1, __errsumm :1, __c0 :1, __c1 :1, __c2 :1, __tos :3, __c3 :1, __busy :1; }; typedef struct __darwin_fp_status __darwin_fp_status_t; struct __darwin_mmst_reg { char __mmst_reg[10]; char __mmst_rsrv[6]; }; struct __darwin_xmm_reg { char __xmm_reg[16]; }; struct __darwin_ymm_reg { char __ymm_reg[32]; }; struct __darwin_zmm_reg { char __zmm_reg[64]; }; struct __darwin_opmask_reg { char __opmask_reg[8]; }; struct __darwin_i386_float_state { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; char __fpu_rsrv4[14*16]; int __fpu_reserved1; }; struct __darwin_i386_avx_state { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; char __fpu_rsrv4[14*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; }; struct __darwin_i386_avx512_state { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; char __fpu_rsrv4[14*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; struct __darwin_opmask_reg __fpu_k0; struct __darwin_opmask_reg __fpu_k1; struct __darwin_opmask_reg __fpu_k2; struct __darwin_opmask_reg __fpu_k3; struct __darwin_opmask_reg __fpu_k4; struct __darwin_opmask_reg __fpu_k5; struct __darwin_opmask_reg __fpu_k6; struct __darwin_opmask_reg __fpu_k7; struct __darwin_ymm_reg __fpu_zmmh0; struct __darwin_ymm_reg __fpu_zmmh1; struct __darwin_ymm_reg __fpu_zmmh2; struct __darwin_ymm_reg __fpu_zmmh3; struct __darwin_ymm_reg __fpu_zmmh4; struct __darwin_ymm_reg __fpu_zmmh5; struct __darwin_ymm_reg __fpu_zmmh6; struct __darwin_ymm_reg __fpu_zmmh7; }; struct __darwin_i386_exception_state { __uint16_t __trapno; __uint16_t __cpu; __uint32_t __err; __uint32_t __faultvaddr; }; struct __darwin_x86_debug_state32 { unsigned int __dr0; unsigned int __dr1; unsigned int __dr2; unsigned int __dr3; unsigned int __dr4; unsigned int __dr5; unsigned int __dr6; unsigned int __dr7; }; struct __x86_instruction_state { int __insn_stream_valid_bytes; int __insn_offset; int __out_of_synch; __uint8_t __insn_bytes[(2448 - 64 - 4)]; __uint8_t __insn_cacheline[64]; }; struct __last_branch_record { __uint64_t __from_ip; __uint64_t __to_ip; __uint32_t __mispredict : 1, __tsx_abort : 1, __in_tsx : 1, __cycle_count: 16, __reserved : 13; }; struct __last_branch_state { int __lbr_count; __uint32_t __lbr_supported_tsx : 1, __lbr_supported_cycle_count : 1, __reserved : 30; struct __last_branch_record __lbrs[32]; }; struct __x86_pagein_state { int __pagein_error; }; struct __darwin_x86_thread_state64 { __uint64_t __rax; __uint64_t __rbx; __uint64_t __rcx; __uint64_t __rdx; __uint64_t __rdi; __uint64_t __rsi; __uint64_t __rbp; __uint64_t __rsp; __uint64_t __r8; __uint64_t __r9; __uint64_t __r10; __uint64_t __r11; __uint64_t __r12; __uint64_t __r13; __uint64_t __r14; __uint64_t __r15; __uint64_t __rip; __uint64_t __rflags; __uint64_t __cs; __uint64_t __fs; __uint64_t __gs; }; struct __darwin_x86_thread_full_state64 { struct __darwin_x86_thread_state64 __ss64; __uint64_t __ds; __uint64_t __es; __uint64_t __ss; __uint64_t __gsbase; }; struct __darwin_x86_float_state64 { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; struct __darwin_xmm_reg __fpu_xmm8; struct __darwin_xmm_reg __fpu_xmm9; struct __darwin_xmm_reg __fpu_xmm10; struct __darwin_xmm_reg __fpu_xmm11; struct __darwin_xmm_reg __fpu_xmm12; struct __darwin_xmm_reg __fpu_xmm13; struct __darwin_xmm_reg __fpu_xmm14; struct __darwin_xmm_reg __fpu_xmm15; char __fpu_rsrv4[6*16]; int __fpu_reserved1; }; struct __darwin_x86_avx_state64 { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; struct __darwin_xmm_reg __fpu_xmm8; struct __darwin_xmm_reg __fpu_xmm9; struct __darwin_xmm_reg __fpu_xmm10; struct __darwin_xmm_reg __fpu_xmm11; struct __darwin_xmm_reg __fpu_xmm12; struct __darwin_xmm_reg __fpu_xmm13; struct __darwin_xmm_reg __fpu_xmm14; struct __darwin_xmm_reg __fpu_xmm15; char __fpu_rsrv4[6*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; struct __darwin_xmm_reg __fpu_ymmh8; struct __darwin_xmm_reg __fpu_ymmh9; struct __darwin_xmm_reg __fpu_ymmh10; struct __darwin_xmm_reg __fpu_ymmh11; struct __darwin_xmm_reg __fpu_ymmh12; struct __darwin_xmm_reg __fpu_ymmh13; struct __darwin_xmm_reg __fpu_ymmh14; struct __darwin_xmm_reg __fpu_ymmh15; }; struct __darwin_x86_avx512_state64 { int __fpu_reserved[2]; struct __darwin_fp_control __fpu_fcw; struct __darwin_fp_status __fpu_fsw; __uint8_t __fpu_ftw; __uint8_t __fpu_rsrv1; __uint16_t __fpu_fop; __uint32_t __fpu_ip; __uint16_t __fpu_cs; __uint16_t __fpu_rsrv2; __uint32_t __fpu_dp; __uint16_t __fpu_ds; __uint16_t __fpu_rsrv3; __uint32_t __fpu_mxcsr; __uint32_t __fpu_mxcsrmask; struct __darwin_mmst_reg __fpu_stmm0; struct __darwin_mmst_reg __fpu_stmm1; struct __darwin_mmst_reg __fpu_stmm2; struct __darwin_mmst_reg __fpu_stmm3; struct __darwin_mmst_reg __fpu_stmm4; struct __darwin_mmst_reg __fpu_stmm5; struct __darwin_mmst_reg __fpu_stmm6; struct __darwin_mmst_reg __fpu_stmm7; struct __darwin_xmm_reg __fpu_xmm0; struct __darwin_xmm_reg __fpu_xmm1; struct __darwin_xmm_reg __fpu_xmm2; struct __darwin_xmm_reg __fpu_xmm3; struct __darwin_xmm_reg __fpu_xmm4; struct __darwin_xmm_reg __fpu_xmm5; struct __darwin_xmm_reg __fpu_xmm6; struct __darwin_xmm_reg __fpu_xmm7; struct __darwin_xmm_reg __fpu_xmm8; struct __darwin_xmm_reg __fpu_xmm9; struct __darwin_xmm_reg __fpu_xmm10; struct __darwin_xmm_reg __fpu_xmm11; struct __darwin_xmm_reg __fpu_xmm12; struct __darwin_xmm_reg __fpu_xmm13; struct __darwin_xmm_reg __fpu_xmm14; struct __darwin_xmm_reg __fpu_xmm15; char __fpu_rsrv4[6*16]; int __fpu_reserved1; char __avx_reserved1[64]; struct __darwin_xmm_reg __fpu_ymmh0; struct __darwin_xmm_reg __fpu_ymmh1; struct __darwin_xmm_reg __fpu_ymmh2; struct __darwin_xmm_reg __fpu_ymmh3; struct __darwin_xmm_reg __fpu_ymmh4; struct __darwin_xmm_reg __fpu_ymmh5; struct __darwin_xmm_reg __fpu_ymmh6; struct __darwin_xmm_reg __fpu_ymmh7; struct __darwin_xmm_reg __fpu_ymmh8; struct __darwin_xmm_reg __fpu_ymmh9; struct __darwin_xmm_reg __fpu_ymmh10; struct __darwin_xmm_reg __fpu_ymmh11; struct __darwin_xmm_reg __fpu_ymmh12; struct __darwin_xmm_reg __fpu_ymmh13; struct __darwin_xmm_reg __fpu_ymmh14; struct __darwin_xmm_reg __fpu_ymmh15; struct __darwin_opmask_reg __fpu_k0; struct __darwin_opmask_reg __fpu_k1; struct __darwin_opmask_reg __fpu_k2; struct __darwin_opmask_reg __fpu_k3; struct __darwin_opmask_reg __fpu_k4; struct __darwin_opmask_reg __fpu_k5; struct __darwin_opmask_reg __fpu_k6; struct __darwin_opmask_reg __fpu_k7; struct __darwin_ymm_reg __fpu_zmmh0; struct __darwin_ymm_reg __fpu_zmmh1; struct __darwin_ymm_reg __fpu_zmmh2; struct __darwin_ymm_reg __fpu_zmmh3; struct __darwin_ymm_reg __fpu_zmmh4; struct __darwin_ymm_reg __fpu_zmmh5; struct __darwin_ymm_reg __fpu_zmmh6; struct __darwin_ymm_reg __fpu_zmmh7; struct __darwin_ymm_reg __fpu_zmmh8; struct __darwin_ymm_reg __fpu_zmmh9; struct __darwin_ymm_reg __fpu_zmmh10; struct __darwin_ymm_reg __fpu_zmmh11; struct __darwin_ymm_reg __fpu_zmmh12; struct __darwin_ymm_reg __fpu_zmmh13; struct __darwin_ymm_reg __fpu_zmmh14; struct __darwin_ymm_reg __fpu_zmmh15; struct __darwin_zmm_reg __fpu_zmm16; struct __darwin_zmm_reg __fpu_zmm17; struct __darwin_zmm_reg __fpu_zmm18; struct __darwin_zmm_reg __fpu_zmm19; struct __darwin_zmm_reg __fpu_zmm20; struct __darwin_zmm_reg __fpu_zmm21; struct __darwin_zmm_reg __fpu_zmm22; struct __darwin_zmm_reg __fpu_zmm23; struct __darwin_zmm_reg __fpu_zmm24; struct __darwin_zmm_reg __fpu_zmm25; struct __darwin_zmm_reg __fpu_zmm26; struct __darwin_zmm_reg __fpu_zmm27; struct __darwin_zmm_reg __fpu_zmm28; struct __darwin_zmm_reg __fpu_zmm29; struct __darwin_zmm_reg __fpu_zmm30; struct __darwin_zmm_reg __fpu_zmm31; }; struct __darwin_x86_exception_state64 { __uint16_t __trapno; __uint16_t __cpu; __uint32_t __err; __uint64_t __faultvaddr; }; struct __darwin_x86_debug_state64 { __uint64_t __dr0; __uint64_t __dr1; __uint64_t __dr2; __uint64_t __dr3; __uint64_t __dr4; __uint64_t __dr5; __uint64_t __dr6; __uint64_t __dr7; }; struct __darwin_x86_cpmu_state64 { __uint64_t __ctrs[16]; }; struct __darwin_mcontext32 { struct __darwin_i386_exception_state __es; struct __darwin_i386_thread_state __ss; struct __darwin_i386_float_state __fs; }; struct __darwin_mcontext_avx32 { struct __darwin_i386_exception_state __es; struct __darwin_i386_thread_state __ss; struct __darwin_i386_avx_state __fs; }; struct __darwin_mcontext_avx512_32 { struct __darwin_i386_exception_state __es; struct __darwin_i386_thread_state __ss; struct __darwin_i386_avx512_state __fs; }; struct __darwin_mcontext64 { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_state64 __ss; struct __darwin_x86_float_state64 __fs; }; struct __darwin_mcontext64_full { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_full_state64 __ss; struct __darwin_x86_float_state64 __fs; }; struct __darwin_mcontext_avx64 { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_state64 __ss; struct __darwin_x86_avx_state64 __fs; }; struct __darwin_mcontext_avx64_full { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_full_state64 __ss; struct __darwin_x86_avx_state64 __fs; }; struct __darwin_mcontext_avx512_64 { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_state64 __ss; struct __darwin_x86_avx512_state64 __fs; }; struct __darwin_mcontext_avx512_64_full { struct __darwin_x86_exception_state64 __es; struct __darwin_x86_thread_full_state64 __ss; struct __darwin_x86_avx512_state64 __fs; }; typedef struct __darwin_mcontext64 *mcontext_t; struct __darwin_sigaltstack { void *ss_sp; __darwin_size_t ss_size; int ss_flags; }; typedef struct __darwin_sigaltstack stack_t; struct __darwin_ucontext { int uc_onstack; __darwin_sigset_t uc_sigmask; struct __darwin_sigaltstack uc_stack; struct __darwin_ucontext *uc_link; __darwin_size_t uc_mcsize; struct __darwin_mcontext64 *uc_mcontext; }; typedef struct __darwin_ucontext ucontext_t; typedef __darwin_sigset_t sigset_t; union sigval { int sival_int; void *sival_ptr; }; struct sigevent { int sigev_notify; int sigev_signo; union sigval sigev_value; void (*sigev_notify_function)(union sigval); pthread_attr_t *sigev_notify_attributes; }; typedef struct __siginfo { int si_signo; int si_errno; int si_code; pid_t si_pid; uid_t si_uid; int si_status; void *si_addr; union sigval si_value; long si_band; unsigned long __pad[7]; } siginfo_t; union __sigaction_u { void (*__sa_handler)(int); void (*__sa_sigaction)(int, struct __siginfo *, void *); }; struct __sigaction { union __sigaction_u __sigaction_u; void (*sa_tramp)(void *, int, int, siginfo_t *, void *); sigset_t sa_mask; int sa_flags; }; struct sigaction { union __sigaction_u __sigaction_u; sigset_t sa_mask; int sa_flags; }; typedef void (*sig_t)(int); struct sigvec { void (*sv_handler)(int); int sv_mask; int sv_flags; }; struct sigstack { char *ss_sp; int ss_onstack; }; extern "C" { void(*signal(int, void (*)(int)))(int); } typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef int8_t int_least8_t; typedef int16_t int_least16_t; typedef int32_t int_least32_t; typedef int64_t int_least64_t; typedef uint8_t uint_least8_t; typedef uint16_t uint_least16_t; typedef uint32_t uint_least32_t; typedef uint64_t uint_least64_t; typedef int8_t int_fast8_t; typedef int16_t int_fast16_t; typedef int32_t int_fast32_t; typedef int64_t int_fast64_t; typedef uint8_t uint_fast8_t; typedef uint16_t uint_fast16_t; typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; typedef long int intmax_t; typedef long unsigned int uintmax_t; struct timeval { __darwin_time_t tv_sec; __darwin_suseconds_t tv_usec; }; typedef __uint64_t rlim_t; struct rusage { struct timeval ru_utime; struct timeval ru_stime; long ru_maxrss; long ru_ixrss; long ru_idrss; long ru_isrss; long ru_minflt; long ru_majflt; long ru_nswap; long ru_inblock; long ru_oublock; long ru_msgsnd; long ru_msgrcv; long ru_nsignals; long ru_nvcsw; long ru_nivcsw; }; typedef void *rusage_info_t; struct rusage_info_v0 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; }; struct rusage_info_v1 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; }; struct rusage_info_v2 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; }; struct rusage_info_v3 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; uint64_t ri_cpu_time_qos_default; uint64_t ri_cpu_time_qos_maintenance; uint64_t ri_cpu_time_qos_background; uint64_t ri_cpu_time_qos_utility; uint64_t ri_cpu_time_qos_legacy; uint64_t ri_cpu_time_qos_user_initiated; uint64_t ri_cpu_time_qos_user_interactive; uint64_t ri_billed_system_time; uint64_t ri_serviced_system_time; }; struct rusage_info_v4 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; uint64_t ri_cpu_time_qos_default; uint64_t ri_cpu_time_qos_maintenance; uint64_t ri_cpu_time_qos_background; uint64_t ri_cpu_time_qos_utility; uint64_t ri_cpu_time_qos_legacy; uint64_t ri_cpu_time_qos_user_initiated; uint64_t ri_cpu_time_qos_user_interactive; uint64_t ri_billed_system_time; uint64_t ri_serviced_system_time; uint64_t ri_logical_writes; uint64_t ri_lifetime_max_phys_footprint; uint64_t ri_instructions; uint64_t ri_cycles; uint64_t ri_billed_energy; uint64_t ri_serviced_energy; uint64_t ri_interval_max_phys_footprint; uint64_t ri_runnable_time; }; struct rusage_info_v5 { uint8_t ri_uuid[16]; uint64_t ri_user_time; uint64_t ri_system_time; uint64_t ri_pkg_idle_wkups; uint64_t ri_interrupt_wkups; uint64_t ri_pageins; uint64_t ri_wired_size; uint64_t ri_resident_size; uint64_t ri_phys_footprint; uint64_t ri_proc_start_abstime; uint64_t ri_proc_exit_abstime; uint64_t ri_child_user_time; uint64_t ri_child_system_time; uint64_t ri_child_pkg_idle_wkups; uint64_t ri_child_interrupt_wkups; uint64_t ri_child_pageins; uint64_t ri_child_elapsed_abstime; uint64_t ri_diskio_bytesread; uint64_t ri_diskio_byteswritten; uint64_t ri_cpu_time_qos_default; uint64_t ri_cpu_time_qos_maintenance; uint64_t ri_cpu_time_qos_background; uint64_t ri_cpu_time_qos_utility; uint64_t ri_cpu_time_qos_legacy; uint64_t ri_cpu_time_qos_user_initiated; uint64_t ri_cpu_time_qos_user_interactive; uint64_t ri_billed_system_time; uint64_t ri_serviced_system_time; uint64_t ri_logical_writes; uint64_t ri_lifetime_max_phys_footprint; uint64_t ri_instructions; uint64_t ri_cycles; uint64_t ri_billed_energy; uint64_t ri_serviced_energy; uint64_t ri_interval_max_phys_footprint; uint64_t ri_runnable_time; uint64_t ri_flags; }; typedef struct rusage_info_v5 rusage_info_current; struct rlimit { rlim_t rlim_cur; rlim_t rlim_max; }; struct proc_rlimit_control_wakeupmon { uint32_t wm_flags; int32_t wm_rate; }; extern "C" { int getpriority(int, id_t); int getiopolicy_np(int, int) __attribute__((availability(ios,introduced=2.0))); int getrlimit(int, struct rlimit *) __asm("_" "getrlimit" ); int getrusage(int, struct rusage *); int setpriority(int, id_t, int); int setiopolicy_np(int, int, int) __attribute__((availability(ios,introduced=2.0))); int setrlimit(int, const struct rlimit *) __asm("_" "setrlimit" ); } union wait { int w_status; struct { unsigned int w_Termsig:7, w_Coredump:1, w_Retcode:8, w_Filler:16; } w_T; struct { unsigned int w_Stopval:8, w_Stopsig:8, w_Filler:16; } w_S; }; extern "C" { pid_t wait(int *) __asm("_" "wait" ); pid_t waitpid(pid_t, int *, int) __asm("_" "waitpid" ); int waitid(idtype_t, id_t, siginfo_t *, int) __asm("_" "waitid" ); pid_t wait3(int *, int, struct rusage *); pid_t wait4(pid_t, int *, int, struct rusage *); } extern "C" { void *alloca(size_t); } typedef __darwin_ct_rune_t ct_rune_t; typedef __darwin_rune_t rune_t; typedef struct { int quot; int rem; } div_t; typedef struct { long quot; long rem; } ldiv_t; typedef struct { long long quot; long long rem; } lldiv_t; extern int __mb_cur_max; extern "C" { void *malloc(size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1))); void *calloc(size_t __count, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1,2))); void free(void *); void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(2))); void *valloc(size_t) __attribute__((alloc_size(1))); void *aligned_alloc(size_t __alignment, size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(2))) __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); int posix_memalign(void **__memptr, size_t __alignment, size_t __size) __attribute__((availability(ios,introduced=3.0))); } extern "C" { void abort(void) __attribute__((__cold__)) __attribute__((__noreturn__)); int abs(int) __attribute__((__const__)); int atexit(void (* _Nonnull)(void)); double atof(const char *); int atoi(const char *); long atol(const char *); long long atoll(const char *); void *bsearch(const void *__key, const void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); div_t div(int, int) __attribute__((__const__)); void exit(int) __attribute__((__noreturn__)); char *getenv(const char *); long labs(long) __attribute__((__const__)); ldiv_t ldiv(long, long) __attribute__((__const__)); long long llabs(long long); lldiv_t lldiv(long long, long long); int mblen(const char *__s, size_t __n); size_t mbstowcs(wchar_t * , const char * , size_t); int mbtowc(wchar_t * , const char * , size_t); void qsort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int rand(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); void srand(unsigned) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); double strtod(const char *, char **) __asm("_" "strtod" ); float strtof(const char *, char **) __asm("_" "strtof" ); long strtol(const char *__str, char **__endptr, int __base); long double strtold(const char *, char **); long long strtoll(const char *__str, char **__endptr, int __base); unsigned long strtoul(const char *__str, char **__endptr, int __base); unsigned long long strtoull(const char *__str, char **__endptr, int __base); __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead."))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) int system(const char *) __asm("_" "system" ); size_t wcstombs(char * , const wchar_t * , size_t); int wctomb(char *, wchar_t); void _Exit(int) __attribute__((__noreturn__)); long a64l(const char *); double drand48(void); char *ecvt(double, int, int *, int *); double erand48(unsigned short[3]); char *fcvt(double, int, int *, int *); char *gcvt(double, int, char *); int getsubopt(char **, char * const *, char **); int grantpt(int); char *initstate(unsigned, char *, size_t); long jrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *l64a(long); void lcong48(unsigned short[7]); long lrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *mktemp(char *); int mkstemp(char *); long mrand48(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); long nrand48(unsigned short[3]) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); int posix_openpt(int); char *ptsname(int); int ptsname_r(int fildes, char *buffer, size_t buflen) __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(tvos,introduced=11.3))) __attribute__((availability(watchos,introduced=4.3))); int putenv(char *) __asm("_" "putenv" ); long random(void) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); int rand_r(unsigned *) __attribute__((__availability__(swift, unavailable, message="Use arc4random instead."))); char *realpath(const char * , char * ) __asm("_" "realpath" "$DARWIN_EXTSN"); unsigned short *seed48(unsigned short[3]); int setenv(const char * __name, const char * __value, int __overwrite) __asm("_" "setenv" ); void setkey(const char *) __asm("_" "setkey" ); char *setstate(const char *); void srand48(long); void srandom(unsigned); int unlockpt(int); int unsetenv(const char *) __asm("_" "unsetenv" ); uint32_t arc4random(void); void arc4random_addrandom(unsigned char * , int ) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(macosx,deprecated=10.12,message="use arc4random_stir"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(ios,deprecated=10.0,message="use arc4random_stir"))) __attribute__((availability(tvos,introduced=2.0))) __attribute__((availability(tvos,deprecated=10.0,message="use arc4random_stir"))) __attribute__((availability(watchos,introduced=1.0))) __attribute__((availability(watchos,deprecated=3.0,message="use arc4random_stir"))); void arc4random_buf(void * __buf, size_t __nbytes) __attribute__((availability(ios,introduced=4.3))); void arc4random_stir(void); uint32_t arc4random_uniform(uint32_t __upper_bound) __attribute__((availability(ios,introduced=4.3))); int atexit_b(void (^ _Nonnull)(void)) __attribute__((availability(ios,introduced=3.2))); void *bsearch_b(const void *__key, const void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *)) __attribute__((availability(ios,introduced=3.2))); char *cgetcap(char *, const char *, int); int cgetclose(void); int cgetent(char **, char **, const char *); int cgetfirst(char **, char **); int cgetmatch(const char *, const char *); int cgetnext(char **, char **); int cgetnum(char *, const char *, long *); int cgetset(const char *); int cgetstr(char *, const char *, char **); int cgetustr(char *, const char *, char **); int daemon(int, int) __asm("_" "daemon" ) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use posix_spawn APIs instead."))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); char *devname(dev_t, mode_t); char *devname_r(dev_t, mode_t, char *buf, int len); char *getbsize(int *, long *); int getloadavg(double [], int); const char *getprogname(void); void setprogname(const char *); int heapsort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int heapsort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__))) __attribute__((availability(ios,introduced=3.2))); int mergesort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)); int mergesort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__))) __attribute__((availability(ios,introduced=3.2))); void psort(void *__base, size_t __nel, size_t __width, int (* _Nonnull __compar)(const void *, const void *)) __attribute__((availability(ios,introduced=3.2))); void psort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__))) __attribute__((availability(ios,introduced=3.2))); void psort_r(void *__base, size_t __nel, size_t __width, void *, int (* _Nonnull __compar)(void *, const void *, const void *)) __attribute__((availability(ios,introduced=3.2))); void qsort_b(void *__base, size_t __nel, size_t __width, int (^ _Nonnull __compar)(const void *, const void *) __attribute__((__noescape__))) __attribute__((availability(ios,introduced=3.2))); void qsort_r(void *__base, size_t __nel, size_t __width, void *, int (* _Nonnull __compar)(void *, const void *, const void *)); int radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, unsigned __endbyte); int rpmatch(const char *) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); int sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, unsigned __endbyte); void sranddev(void); void srandomdev(void); void *reallocf(void *__ptr, size_t __size) __attribute__((alloc_size(2))); long long strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); long long strtoq(const char *__str, char **__endptr, int __base); unsigned long long strtouq(const char *__str, char **__endptr, int __base); extern char *suboptarg; } extern "C" { void __assert_rtn(const char *, const char *, int, const char *) __attribute__((__noreturn__)) __attribute__((__cold__)) __attribute__((__disable_tail_calls__)); } typedef __darwin_wint_t wint_t; typedef struct { __darwin_rune_t __min; __darwin_rune_t __max; __darwin_rune_t __map; __uint32_t *__types; } _RuneEntry; typedef struct { int __nranges; _RuneEntry *__ranges; } _RuneRange; typedef struct { char __name[14]; __uint32_t __mask; } _RuneCharClass; typedef struct { char __magic[8]; char __encoding[32]; __darwin_rune_t (*__sgetrune)(const char *, __darwin_size_t, char const **); int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **); __darwin_rune_t __invalid_rune; __uint32_t __runetype[(1 <<8 )]; __darwin_rune_t __maplower[(1 <<8 )]; __darwin_rune_t __mapupper[(1 <<8 )]; _RuneRange __runetype_ext; _RuneRange __maplower_ext; _RuneRange __mapupper_ext; void *__variable; int __variable_len; int __ncharclasses; _RuneCharClass *__charclasses; } _RuneLocale; extern "C" { extern _RuneLocale _DefaultRuneLocale; extern _RuneLocale *_CurrentRuneLocale; } extern "C" { unsigned long ___runetype(__darwin_ct_rune_t); __darwin_ct_rune_t ___tolower(__darwin_ct_rune_t); __darwin_ct_rune_t ___toupper(__darwin_ct_rune_t); } inline int isascii(int _c) { return ((_c & ~0x7F) == 0); } extern "C" { int __maskrune(__darwin_ct_rune_t, unsigned long); } inline int __istype(__darwin_ct_rune_t _c, unsigned long _f) { return (isascii(_c) ? !!(_DefaultRuneLocale.__runetype[_c] & _f) : !!__maskrune(_c, _f)); } inline __darwin_ct_rune_t __isctype(__darwin_ct_rune_t _c, unsigned long _f) { return (_c < 0 || _c >= (1 <<8 )) ? 0 : !!(_DefaultRuneLocale.__runetype[_c] & _f); } extern "C" { __darwin_ct_rune_t __toupper(__darwin_ct_rune_t); __darwin_ct_rune_t __tolower(__darwin_ct_rune_t); } inline int __wcwidth(__darwin_ct_rune_t _c) { unsigned int _x; if (_c == 0) return (0); _x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L); if ((_x & 0xe0000000L) != 0) return ((_x & 0xe0000000L) >> 30); return ((_x & 0x00040000L) != 0 ? 1 : -1); } inline int isalnum(int _c) { return (__istype(_c, 0x00000100L|0x00000400L)); } inline int isalpha(int _c) { return (__istype(_c, 0x00000100L)); } inline int isblank(int _c) { return (__istype(_c, 0x00020000L)); } inline int iscntrl(int _c) { return (__istype(_c, 0x00000200L)); } inline int isdigit(int _c) { return (__isctype(_c, 0x00000400L)); } inline int isgraph(int _c) { return (__istype(_c, 0x00000800L)); } inline int islower(int _c) { return (__istype(_c, 0x00001000L)); } inline int isprint(int _c) { return (__istype(_c, 0x00040000L)); } inline int ispunct(int _c) { return (__istype(_c, 0x00002000L)); } inline int isspace(int _c) { return (__istype(_c, 0x00004000L)); } inline int isupper(int _c) { return (__istype(_c, 0x00008000L)); } inline int isxdigit(int _c) { return (__isctype(_c, 0x00010000L)); } inline int toascii(int _c) { return (_c & 0x7F); } inline int tolower(int _c) { return (__tolower(_c)); } inline int toupper(int _c) { return (__toupper(_c)); } inline int digittoint(int _c) { return (__maskrune(_c, 0x0F)); } inline int ishexnumber(int _c) { return (__istype(_c, 0x00010000L)); } inline int isideogram(int _c) { return (__istype(_c, 0x00080000L)); } inline int isnumber(int _c) { return (__istype(_c, 0x00000400L)); } inline int isphonogram(int _c) { return (__istype(_c, 0x00200000L)); } inline int isrune(int _c) { return (__istype(_c, 0xFFFFFFF0L)); } inline int isspecial(int _c) { return (__istype(_c, 0x00100000L)); } extern "C" { extern int * __error(void); } struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; char int_p_cs_precedes; char int_n_cs_precedes; char int_p_sep_by_space; char int_n_sep_by_space; char int_p_sign_posn; char int_n_sign_posn; }; extern "C" { struct lconv *localeconv(void); } extern "C" { char *setlocale(int, const char *); } extern "C" { typedef float float_t; typedef double double_t; extern int __math_errhandling(void); extern int __fpclassifyf(float); extern int __fpclassifyd(double); extern int __fpclassifyl(long double); inline __attribute__ ((__always_inline__)) int __inline_isfinitef(float); inline __attribute__ ((__always_inline__)) int __inline_isfinited(double); inline __attribute__ ((__always_inline__)) int __inline_isfinitel(long double); inline __attribute__ ((__always_inline__)) int __inline_isinff(float); inline __attribute__ ((__always_inline__)) int __inline_isinfd(double); inline __attribute__ ((__always_inline__)) int __inline_isinfl(long double); inline __attribute__ ((__always_inline__)) int __inline_isnanf(float); inline __attribute__ ((__always_inline__)) int __inline_isnand(double); inline __attribute__ ((__always_inline__)) int __inline_isnanl(long double); inline __attribute__ ((__always_inline__)) int __inline_isnormalf(float); inline __attribute__ ((__always_inline__)) int __inline_isnormald(double); inline __attribute__ ((__always_inline__)) int __inline_isnormall(long double); inline __attribute__ ((__always_inline__)) int __inline_signbitf(float); inline __attribute__ ((__always_inline__)) int __inline_signbitd(double); inline __attribute__ ((__always_inline__)) int __inline_signbitl(long double); inline __attribute__ ((__always_inline__)) int __inline_isfinitef(float __x) { return __x == __x && __builtin_fabsf(__x) != __builtin_inff(); } inline __attribute__ ((__always_inline__)) int __inline_isfinited(double __x) { return __x == __x && __builtin_fabs(__x) != __builtin_inf(); } inline __attribute__ ((__always_inline__)) int __inline_isfinitel(long double __x) { return __x == __x && __builtin_fabsl(__x) != __builtin_infl(); } inline __attribute__ ((__always_inline__)) int __inline_isinff(float __x) { return __builtin_fabsf(__x) == __builtin_inff(); } inline __attribute__ ((__always_inline__)) int __inline_isinfd(double __x) { return __builtin_fabs(__x) == __builtin_inf(); } inline __attribute__ ((__always_inline__)) int __inline_isinfl(long double __x) { return __builtin_fabsl(__x) == __builtin_infl(); } inline __attribute__ ((__always_inline__)) int __inline_isnanf(float __x) { return __x != __x; } inline __attribute__ ((__always_inline__)) int __inline_isnand(double __x) { return __x != __x; } inline __attribute__ ((__always_inline__)) int __inline_isnanl(long double __x) { return __x != __x; } inline __attribute__ ((__always_inline__)) int __inline_signbitf(float __x) { union { float __f; unsigned int __u; } __u; __u.__f = __x; return (int)(__u.__u >> 31); } inline __attribute__ ((__always_inline__)) int __inline_signbitd(double __x) { union { double __f; unsigned long long __u; } __u; __u.__f = __x; return (int)(__u.__u >> 63); } inline __attribute__ ((__always_inline__)) int __inline_signbitl(long double __x) { union { long double __ld; struct{ unsigned long long __m; unsigned short __sexp; } __p; } __u; __u.__ld = __x; return (int)(__u.__p.__sexp >> 15); } inline __attribute__ ((__always_inline__)) int __inline_isnormalf(float __x) { return __inline_isfinitef(__x) && __builtin_fabsf(__x) >= 1.17549435e-38F; } inline __attribute__ ((__always_inline__)) int __inline_isnormald(double __x) { return __inline_isfinited(__x) && __builtin_fabs(__x) >= 2.2250738585072014e-308; } inline __attribute__ ((__always_inline__)) int __inline_isnormall(long double __x) { return __inline_isfinitel(__x) && __builtin_fabsl(__x) >= 3.36210314311209350626e-4932L; } extern float acosf(float); extern double acos(double); extern long double acosl(long double); extern float asinf(float); extern double asin(double); extern long double asinl(long double); extern float atanf(float); extern double atan(double); extern long double atanl(long double); extern float atan2f(float, float); extern double atan2(double, double); extern long double atan2l(long double, long double); extern float cosf(float); extern double cos(double); extern long double cosl(long double); extern float sinf(float); extern double sin(double); extern long double sinl(long double); extern float tanf(float); extern double tan(double); extern long double tanl(long double); extern float acoshf(float); extern double acosh(double); extern long double acoshl(long double); extern float asinhf(float); extern double asinh(double); extern long double asinhl(long double); extern float atanhf(float); extern double atanh(double); extern long double atanhl(long double); extern float coshf(float); extern double cosh(double); extern long double coshl(long double); extern float sinhf(float); extern double sinh(double); extern long double sinhl(long double); extern float tanhf(float); extern double tanh(double); extern long double tanhl(long double); extern float expf(float); extern double exp(double); extern long double expl(long double); extern float exp2f(float); extern double exp2(double); extern long double exp2l(long double); extern float expm1f(float); extern double expm1(double); extern long double expm1l(long double); extern float logf(float); extern double log(double); extern long double logl(long double); extern float log10f(float); extern double log10(double); extern long double log10l(long double); extern float log2f(float); extern double log2(double); extern long double log2l(long double); extern float log1pf(float); extern double log1p(double); extern long double log1pl(long double); extern float logbf(float); extern double logb(double); extern long double logbl(long double); extern float modff(float, float *); extern double modf(double, double *); extern long double modfl(long double, long double *); extern float ldexpf(float, int); extern double ldexp(double, int); extern long double ldexpl(long double, int); extern float frexpf(float, int *); extern double frexp(double, int *); extern long double frexpl(long double, int *); extern int ilogbf(float); extern int ilogb(double); extern int ilogbl(long double); extern float scalbnf(float, int); extern double scalbn(double, int); extern long double scalbnl(long double, int); extern float scalblnf(float, long int); extern double scalbln(double, long int); extern long double scalblnl(long double, long int); extern float fabsf(float); extern double fabs(double); extern long double fabsl(long double); extern float cbrtf(float); extern double cbrt(double); extern long double cbrtl(long double); extern float hypotf(float, float); extern double hypot(double, double); extern long double hypotl(long double, long double); extern float powf(float, float); extern double pow(double, double); extern long double powl(long double, long double); extern float sqrtf(float); extern double sqrt(double); extern long double sqrtl(long double); extern float erff(float); extern double erf(double); extern long double erfl(long double); extern float erfcf(float); extern double erfc(double); extern long double erfcl(long double); extern float lgammaf(float); extern double lgamma(double); extern long double lgammal(long double); extern float tgammaf(float); extern double tgamma(double); extern long double tgammal(long double); extern float ceilf(float); extern double ceil(double); extern long double ceill(long double); extern float floorf(float); extern double floor(double); extern long double floorl(long double); extern float nearbyintf(float); extern double nearbyint(double); extern long double nearbyintl(long double); extern float rintf(float); extern double rint(double); extern long double rintl(long double); extern long int lrintf(float); extern long int lrint(double); extern long int lrintl(long double); extern float roundf(float); extern double round(double); extern long double roundl(long double); extern long int lroundf(float); extern long int lround(double); extern long int lroundl(long double); extern long long int llrintf(float); extern long long int llrint(double); extern long long int llrintl(long double); extern long long int llroundf(float); extern long long int llround(double); extern long long int llroundl(long double); extern float truncf(float); extern double trunc(double); extern long double truncl(long double); extern float fmodf(float, float); extern double fmod(double, double); extern long double fmodl(long double, long double); extern float remainderf(float, float); extern double remainder(double, double); extern long double remainderl(long double, long double); extern float remquof(float, float, int *); extern double remquo(double, double, int *); extern long double remquol(long double, long double, int *); extern float copysignf(float, float); extern double copysign(double, double); extern long double copysignl(long double, long double); extern float nanf(const char *); extern double nan(const char *); extern long double nanl(const char *); extern float nextafterf(float, float); extern double nextafter(double, double); extern long double nextafterl(long double, long double); extern double nexttoward(double, long double); extern float nexttowardf(float, long double); extern long double nexttowardl(long double, long double); extern float fdimf(float, float); extern double fdim(double, double); extern long double fdiml(long double, long double); extern float fmaxf(float, float); extern double fmax(double, double); extern long double fmaxl(long double, long double); extern float fminf(float, float); extern double fmin(double, double); extern long double fminl(long double, long double); extern float fmaf(float, float, float); extern double fma(double, double, double); extern long double fmal(long double, long double, long double); extern float __inff(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `(float)INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern double __inf(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern long double __infl(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="use `(long double)INFINITY` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern float __nan(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.14,message="use `NAN` instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern float __exp10f(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern double __exp10(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); inline __attribute__ ((__always_inline__)) void __sincosf(float __x, float *__sinp, float *__cosp); inline __attribute__ ((__always_inline__)) void __sincos(double __x, double *__sinp, double *__cosp); extern float __cospif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern double __cospi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern float __sinpif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern double __sinpi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern float __tanpif(float) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern double __tanpi(double) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); inline __attribute__ ((__always_inline__)) void __sincospif(float __x, float *__sinp, float *__cosp); inline __attribute__ ((__always_inline__)) void __sincospi(double __x, double *__sinp, double *__cosp); struct __float2 { float __sinval; float __cosval; }; struct __double2 { double __sinval; double __cosval; }; extern struct __float2 __sincosf_stret(float); extern struct __double2 __sincos_stret(double); extern struct __float2 __sincospif_stret(float); extern struct __double2 __sincospi_stret(double); inline __attribute__ ((__always_inline__)) void __sincosf(float __x, float *__sinp, float *__cosp) { const struct __float2 __stret = __sincosf_stret(__x); *__sinp = __stret.__sinval; *__cosp = __stret.__cosval; } inline __attribute__ ((__always_inline__)) void __sincos(double __x, double *__sinp, double *__cosp) { const struct __double2 __stret = __sincos_stret(__x); *__sinp = __stret.__sinval; *__cosp = __stret.__cosval; } inline __attribute__ ((__always_inline__)) void __sincospif(float __x, float *__sinp, float *__cosp) { const struct __float2 __stret = __sincospif_stret(__x); *__sinp = __stret.__sinval; *__cosp = __stret.__cosval; } inline __attribute__ ((__always_inline__)) void __sincospi(double __x, double *__sinp, double *__cosp) { const struct __double2 __stret = __sincospi_stret(__x); *__sinp = __stret.__sinval; *__cosp = __stret.__cosval; } extern double j0(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double j1(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double jn(int, double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double y0(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double y1(double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double yn(int, double) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))); extern double scalb(double, double); extern int signgam; extern long int rinttol(double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="lrint"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern long int roundtol(double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="lround"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern double drem(double, double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="remainder"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern int finite(double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use `isfinite((double)x)` instead."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern double gamma(double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,replacement="tgamma"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern double significand(double) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use `2*frexp( )` or `scalbn(x, -ilogb(x))` instead."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); } typedef int jmp_buf[((9 * 2) + 3 + 16)]; typedef int sigjmp_buf[((9 * 2) + 3 + 16) + 1]; extern "C" { extern int setjmp(jmp_buf); extern void longjmp(jmp_buf, int) __attribute__((__noreturn__)); int _setjmp(jmp_buf); void _longjmp(jmp_buf, int) __attribute__((__noreturn__)); int sigsetjmp(sigjmp_buf, int); void siglongjmp(sigjmp_buf, int) __attribute__((__noreturn__)); void longjmperror(void); } extern const char *const sys_signame[32]; extern const char *const sys_siglist[32]; extern "C" { int raise(int); } extern "C" { void (* _Nullable bsd_signal(int, void (* _Nullable)(int)))(int); int kill(pid_t, int) __asm("_" "kill" ); int killpg(pid_t, int) __asm("_" "killpg" ); int pthread_kill(pthread_t, int); int pthread_sigmask(int, const sigset_t *, sigset_t *) __asm("_" "pthread_sigmask" ); int sigaction(int, const struct sigaction * , struct sigaction * ); int sigaddset(sigset_t *, int); int sigaltstack(const stack_t * , stack_t * ) __asm("_" "sigaltstack" ) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int sigdelset(sigset_t *, int); int sigemptyset(sigset_t *); int sigfillset(sigset_t *); int sighold(int); int sigignore(int); int siginterrupt(int, int); int sigismember(const sigset_t *, int); int sigpause(int) __asm("_" "sigpause" ); int sigpending(sigset_t *); int sigprocmask(int, const sigset_t * , sigset_t * ); int sigrelse(int); void (* _Nullable sigset(int, void (* _Nullable)(int)))(int); int sigsuspend(const sigset_t *) __asm("_" "sigsuspend" ); int sigwait(const sigset_t * , int * ) __asm("_" "sigwait" ); void psignal(unsigned int, const char *); int sigblock(int); int sigsetmask(int); int sigvec(int, struct sigvec *, struct sigvec *); } inline __attribute__ ((__always_inline__)) int __sigbits(int __signo) { return __signo > 32 ? 0 : (1 << (__signo - 1)); } typedef long int ptrdiff_t; typedef __darwin_va_list va_list; extern "C" { int renameat(int, const char *, int, const char *) __attribute__((availability(ios,introduced=8.0))); int renamex_np(const char *, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int renameatx_np(int, const char *, int, const char *, unsigned int) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); } typedef __darwin_off_t fpos_t; struct __sbuf { unsigned char *_base; int _size; }; struct __sFILEX; typedef struct __sFILE { unsigned char *_p; int _r; int _w; short _flags; short _file; struct __sbuf _bf; int _lbfsize; void *_cookie; int (* _Nullable _close)(void *); int (* _Nullable _read) (void *, char *, int); fpos_t (* _Nullable _seek) (void *, fpos_t, int); int (* _Nullable _write)(void *, const char *, int); struct __sbuf _ub; struct __sFILEX *_extra; int _ur; unsigned char _ubuf[3]; unsigned char _nbuf[1]; struct __sbuf _lb; int _blksize; fpos_t _offset; } FILE; extern "C" { extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; } extern "C" { void clearerr(FILE *); int fclose(FILE *); int feof(FILE *); int ferror(FILE *); int fflush(FILE *); int fgetc(FILE *); int fgetpos(FILE * , fpos_t *); char *fgets(char * , int, FILE *); FILE *fopen(const char * __filename, const char * __mode) __asm("_" "fopen" ); int fprintf(FILE * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3))); int fputc(int, FILE *); int fputs(const char * , FILE * ) __asm("_" "fputs" ); size_t fread(void * __ptr, size_t __size, size_t __nitems, FILE * __stream); FILE *freopen(const char * , const char * , FILE * ) __asm("_" "freopen" ); int fscanf(FILE * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3))); int fseek(FILE *, long, int); int fsetpos(FILE *, const fpos_t *); long ftell(FILE *); size_t fwrite(const void * __ptr, size_t __size, size_t __nitems, FILE * __stream) __asm("_" "fwrite" ); int getc(FILE *); int getchar(void); char *gets(char *); void perror(const char *) __attribute__((__cold__)); int printf(const char * , ...) __attribute__((__format__ (__printf__, 1, 2))); int putc(int, FILE *); int putchar(int); int puts(const char *); int remove(const char *); int rename (const char *__old, const char *__new); void rewind(FILE *); int scanf(const char * , ...) __attribute__((__format__ (__scanf__, 1, 2))); void setbuf(FILE * , char * ); int setvbuf(FILE * , char * , int, size_t); int sprintf(char * , const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((__availability__(swift, unavailable, message="Use snprintf instead."))); int sscanf(const char * , const char * , ...) __attribute__((__format__ (__scanf__, 2, 3))); FILE *tmpfile(void); __attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead."))) __attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead."))) char *tmpnam(char *); int ungetc(int, FILE *); int vfprintf(FILE * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))); int vprintf(const char * , va_list) __attribute__((__format__ (__printf__, 1, 0))); int vsprintf(char * , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((__availability__(swift, unavailable, message="Use vsnprintf instead."))); } extern "C" { extern "C" { char *ctermid(char *); } FILE *fdopen(int, const char *) __asm("_" "fdopen" ); int fileno(FILE *); } extern "C" { int pclose(FILE *) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead."))); FILE *popen(const char *, const char *) __asm("_" "popen" ) __attribute__((__availability__(swift, unavailable, message="Use posix_spawn APIs or NSTask instead."))); } extern "C" { int __srget(FILE *); int __svfscanf(FILE *, const char *, va_list) __attribute__((__format__ (__scanf__, 2, 0))); int __swbuf(int, FILE *); } inline __attribute__ ((__always_inline__)) int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return (*_p->_p++ = _c); else return (__swbuf(_c, _p)); } extern "C" { void flockfile(FILE *); int ftrylockfile(FILE *); void funlockfile(FILE *); int getc_unlocked(FILE *); int getchar_unlocked(void); int putc_unlocked(int, FILE *); int putchar_unlocked(int); int getw(FILE *); int putw(int, FILE *); __attribute__((__availability__(swift, unavailable, message="Use mkstemp(3) instead."))) __attribute__((__deprecated__("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead."))) char *tempnam(const char *__dir, const char *__prefix) __asm("_" "tempnam" ); } extern "C" { int fseeko(FILE * __stream, off_t __offset, int __whence); off_t ftello(FILE * __stream); } extern "C" { int snprintf(char * __str, size_t __size, const char * __format, ...) __attribute__((__format__ (__printf__, 3, 4))); int vfscanf(FILE * __stream, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0))); int vscanf(const char * __format, va_list) __attribute__((__format__ (__scanf__, 1, 0))); int vsnprintf(char * __str, size_t __size, const char * __format, va_list) __attribute__((__format__ (__printf__, 3, 0))); int vsscanf(const char * __str, const char * __format, va_list) __attribute__((__format__ (__scanf__, 2, 0))); } extern "C" { int dprintf(int, const char * , ...) __attribute__((__format__ (__printf__, 2, 3))) __attribute__((availability(ios,introduced=4.3))); int vdprintf(int, const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))) __attribute__((availability(ios,introduced=4.3))); ssize_t getdelim(char ** __linep, size_t * __linecapp, int __delimiter, FILE * __stream) __attribute__((availability(ios,introduced=4.3))); ssize_t getline(char ** __linep, size_t * __linecapp, FILE * __stream) __attribute__((availability(ios,introduced=4.3))); FILE *fmemopen(void * __buf, size_t __size, const char * __mode) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); FILE *open_memstream(char **__bufp, size_t *__sizep) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); } extern "C" { extern const int sys_nerr; extern const char *const sys_errlist[]; int asprintf(char ** , const char * , ...) __attribute__((__format__ (__printf__, 2, 3))); char *ctermid_r(char *); char *fgetln(FILE *, size_t *); const char *fmtcheck(const char *, const char *); int fpurge(FILE *); void setbuffer(FILE *, char *, int); int setlinebuf(FILE *); int vasprintf(char ** , const char * , va_list) __attribute__((__format__ (__printf__, 2, 0))); FILE *zopen(const char *, const char *, int); FILE *funopen(const void *, int (* _Nullable)(void *, char *, int), int (* _Nullable)(void *, const char *, int), fpos_t (* _Nullable)(void *, fpos_t, int), int (* _Nullable)(void *)); } extern "C" { void *memchr(const void *__s, int __c, size_t __n); int memcmp(const void *__s1, const void *__s2, size_t __n); void *memcpy(void *__dst, const void *__src, size_t __n); void *memmove(void *__dst, const void *__src, size_t __len); void *memset(void *__b, int __c, size_t __len); char *strcat(char *__s1, const char *__s2); char *strchr(const char *__s, int __c); int strcmp(const char *__s1, const char *__s2); int strcoll(const char *__s1, const char *__s2); char *strcpy(char *__dst, const char *__src); size_t strcspn(const char *__s, const char *__charset); char *strerror(int __errnum) __asm("_" "strerror" ); size_t strlen(const char *__s); char *strncat(char *__s1, const char *__s2, size_t __n); int strncmp(const char *__s1, const char *__s2, size_t __n); char *strncpy(char *__dst, const char *__src, size_t __n); char *strpbrk(const char *__s, const char *__charset); char *strrchr(const char *__s, int __c); size_t strspn(const char *__s, const char *__charset); char *strstr(const char *__big, const char *__little); char *strtok(char *__str, const char *__sep); size_t strxfrm(char *__s1, const char *__s2, size_t __n); } extern "C" { char *strtok_r(char *__str, const char *__sep, char **__lasts); } extern "C" { int strerror_r(int __errnum, char *__strerrbuf, size_t __buflen); char *strdup(const char *__s1); void *memccpy(void *__dst, const void *__src, int __c, size_t __n); } extern "C" { char *stpcpy(char *__dst, const char *__src); char *stpncpy(char *__dst, const char *__src, size_t __n) __attribute__((availability(ios,introduced=4.3))); char *strndup(const char *__s1, size_t __n) __attribute__((availability(ios,introduced=4.3))); size_t strnlen(const char *__s1, size_t __n) __attribute__((availability(ios,introduced=4.3))); char *strsignal(int __sig); } extern "C" { errno_t memset_s(void *__s, rsize_t __smax, int __c, rsize_t __n) __attribute__((availability(ios,introduced=7.0))); } extern "C" { void *memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __attribute__((availability(ios,introduced=4.3))); void memset_pattern4(void *__b, const void *__pattern4, size_t __len) __attribute__((availability(ios,introduced=3.0))); void memset_pattern8(void *__b, const void *__pattern8, size_t __len) __attribute__((availability(ios,introduced=3.0))); void memset_pattern16(void *__b, const void *__pattern16, size_t __len) __attribute__((availability(ios,introduced=3.0))); char *strcasestr(const char *__big, const char *__little); char *strnstr(const char *__big, const char *__little, size_t __len); size_t strlcat(char *__dst, const char *__source, size_t __size); size_t strlcpy(char *__dst, const char *__source, size_t __size); void strmode(int __mode, char *__bp); char *strsep(char **__stringp, const char *__delim); void swab(const void * , void * , ssize_t); __attribute__((availability(macosx,introduced=10.12.1))) __attribute__((availability(ios,introduced=10.1))) __attribute__((availability(tvos,introduced=10.0.1))) __attribute__((availability(watchos,introduced=3.1))) int timingsafe_bcmp(const void *__b1, const void *__b2, size_t __len); __attribute__((availability(macosx,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) int strsignal_r(int __sig, char *__strsignalbuf, size_t __buflen); } extern "C" { int bcmp(const void *, const void *, size_t) ; void bcopy(const void *, void *, size_t) ; void bzero(void *, size_t) ; char *index(const char *, int) ; char *rindex(const char *, int) ; int ffs(int); int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); } extern "C" { int ffsl(long) __attribute__((availability(ios,introduced=2.0))); int ffsll(long long) __attribute__((availability(ios,introduced=7.0))); int fls(int) __attribute__((availability(ios,introduced=2.0))); int flsl(long) __attribute__((availability(ios,introduced=2.0))); int flsll(long long) __attribute__((availability(ios,introduced=7.0))); } struct timespec { __darwin_time_t tv_sec; long tv_nsec; }; struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long tm_gmtoff; char *tm_zone; }; extern char *tzname[]; extern int getdate_err; extern long timezone __asm("_" "timezone" ); extern int daylight; extern "C" { char *asctime(const struct tm *); clock_t clock(void) __asm("_" "clock" ); char *ctime(const time_t *); double difftime(time_t, time_t); struct tm *getdate(const char *); struct tm *gmtime(const time_t *); struct tm *localtime(const time_t *); time_t mktime(struct tm *) __asm("_" "mktime" ); size_t strftime(char * , size_t, const char * , const struct tm * ) __asm("_" "strftime" ); char *strptime(const char * , const char * , struct tm * ) __asm("_" "strptime" ); time_t time(time_t *); void tzset(void); char *asctime_r(const struct tm * , char * ); char *ctime_r(const time_t *, char *); struct tm *gmtime_r(const time_t * , struct tm * ); struct tm *localtime_r(const time_t * , struct tm * ); time_t posix2time(time_t); void tzsetwall(void); time_t time2posix(time_t); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int nanosleep(const struct timespec *__rqtp, struct timespec *__rmtp) __asm("_" "nanosleep" ); typedef enum { _CLOCK_REALTIME __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0, _CLOCK_MONOTONIC __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 6, _CLOCK_MONOTONIC_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 4, _CLOCK_MONOTONIC_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 5, _CLOCK_UPTIME_RAW __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 8, _CLOCK_UPTIME_RAW_APPROX __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 9, _CLOCK_PROCESS_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 12, _CLOCK_THREAD_CPUTIME_ID __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 16 } clockid_t; __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) int clock_getres(clockid_t __clock_id, struct timespec *__res); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) int clock_gettime(clockid_t __clock_id, struct timespec *__tp); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __uint64_t clock_gettime_nsec_np(clockid_t __clock_id); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) int clock_settime(clockid_t __clock_id, const struct timespec *__tp); } extern "C" { extern "C" void *_Block_copy(const void *aBlock) __attribute__((availability(ios,introduced=3.2))); extern "C" void _Block_release(const void *aBlock) __attribute__((availability(ios,introduced=3.2))); extern "C" void _Block_object_assign(void *, const void *, const int) __attribute__((availability(ios,introduced=3.2))); extern "C" void _Block_object_dispose(const void *, const int) __attribute__((availability(ios,introduced=3.2))); extern "C" void * _NSConcreteGlobalBlock[32] __attribute__((availability(ios,introduced=3.2))); extern "C" void * _NSConcreteStackBlock[32] __attribute__((availability(ios,introduced=3.2))); } extern "C" { #pragma pack(push, 2) typedef unsigned char UInt8; typedef signed char SInt8; typedef unsigned short UInt16; typedef signed short SInt16; typedef unsigned int UInt32; typedef signed int SInt32; struct wide { UInt32 lo; SInt32 hi; }; typedef struct wide wide; struct UnsignedWide { UInt32 lo; UInt32 hi; }; typedef struct UnsignedWide UnsignedWide; typedef signed long long SInt64; typedef unsigned long long UInt64; typedef SInt32 Fixed; typedef Fixed * FixedPtr; typedef SInt32 Fract; typedef Fract * FractPtr; typedef UInt32 UnsignedFixed; typedef UnsignedFixed * UnsignedFixedPtr; typedef short ShortFixed; typedef ShortFixed * ShortFixedPtr; typedef float Float32; typedef double Float64; struct Float80 { SInt16 exp; UInt16 man[4]; }; typedef struct Float80 Float80; struct Float96 { SInt16 exp[2]; UInt16 man[4]; }; typedef struct Float96 Float96; struct Float32Point { Float32 x; Float32 y; }; typedef struct Float32Point Float32Point; typedef char * Ptr; typedef Ptr * Handle; typedef long Size; typedef SInt16 OSErr; typedef SInt32 OSStatus; typedef void * LogicalAddress; typedef const void * ConstLogicalAddress; typedef void * PhysicalAddress; typedef UInt8 * BytePtr; typedef unsigned long ByteCount; typedef unsigned long ByteOffset; typedef SInt32 Duration; typedef UnsignedWide AbsoluteTime; typedef UInt32 OptionBits; typedef unsigned long ItemCount; typedef UInt32 PBVersion; typedef SInt16 ScriptCode; typedef SInt16 LangCode; typedef SInt16 RegionCode; typedef UInt32 FourCharCode; typedef FourCharCode OSType; typedef FourCharCode ResType; typedef OSType * OSTypePtr; typedef ResType * ResTypePtr; typedef unsigned char Boolean; typedef long ( * ProcPtr)(void); typedef void ( * Register68kProcPtr)(void); typedef ProcPtr UniversalProcPtr; typedef ProcPtr * ProcHandle; typedef UniversalProcPtr * UniversalProcHandle; typedef void * PRefCon; typedef void * URefCon; typedef void * SRefCon; enum { noErr = 0 }; enum { kNilOptions = 0 }; enum { kVariableLengthArray __attribute__((deprecated)) = 1 }; enum { kUnknownType = 0x3F3F3F3F }; typedef UInt32 UnicodeScalarValue; typedef UInt32 UTF32Char; typedef UInt16 UniChar; typedef UInt16 UTF16Char; typedef UInt8 UTF8Char; typedef UniChar * UniCharPtr; typedef unsigned long UniCharCount; typedef UniCharCount * UniCharCountPtr; typedef unsigned char Str255[256]; typedef unsigned char Str63[64]; typedef unsigned char Str32[33]; typedef unsigned char Str31[32]; typedef unsigned char Str27[28]; typedef unsigned char Str15[16]; typedef unsigned char Str32Field[34]; typedef Str63 StrFileName; typedef unsigned char * StringPtr; typedef StringPtr * StringHandle; typedef const unsigned char * ConstStringPtr; typedef const unsigned char * ConstStr255Param; typedef const unsigned char * ConstStr63Param; typedef const unsigned char * ConstStr32Param; typedef const unsigned char * ConstStr31Param; typedef const unsigned char * ConstStr27Param; typedef const unsigned char * ConstStr15Param; typedef ConstStr63Param ConstStrFileNameParam; inline unsigned char StrLength(ConstStr255Param string) { return (*string); } struct ProcessSerialNumber { UInt32 highLongOfPSN; UInt32 lowLongOfPSN; }; typedef struct ProcessSerialNumber ProcessSerialNumber; typedef ProcessSerialNumber * ProcessSerialNumberPtr; struct Point { short v; short h; }; typedef struct Point Point; typedef Point * PointPtr; struct Rect { short top; short left; short bottom; short right; }; typedef struct Rect Rect; typedef Rect * RectPtr; struct FixedPoint { Fixed x; Fixed y; }; typedef struct FixedPoint FixedPoint; struct FixedRect { Fixed left; Fixed top; Fixed right; Fixed bottom; }; typedef struct FixedRect FixedRect; typedef short CharParameter; enum { normal = 0, bold = 1, italic = 2, underline = 4, outline = 8, shadow = 0x10, condense = 0x20, extend = 0x40 }; typedef unsigned char Style; typedef short StyleParameter; typedef Style StyleField; typedef SInt32 TimeValue; typedef SInt32 TimeScale; typedef wide CompTimeValue; typedef SInt64 TimeValue64; typedef struct TimeBaseRecord* TimeBase; struct TimeRecord { CompTimeValue value; TimeScale scale; TimeBase base; }; typedef struct TimeRecord TimeRecord; struct NumVersion { UInt8 nonRelRev; UInt8 stage; UInt8 minorAndBugRev; UInt8 majorRev; }; typedef struct NumVersion NumVersion; enum { developStage = 0x20, alphaStage = 0x40, betaStage = 0x60, finalStage = 0x80 }; union NumVersionVariant { NumVersion parts; UInt32 whole; }; typedef union NumVersionVariant NumVersionVariant; typedef NumVersionVariant * NumVersionVariantPtr; typedef NumVersionVariantPtr * NumVersionVariantHandle; struct VersRec { NumVersion numericVersion; short countryCode; Str255 shortVersion; Str255 reserved; }; typedef struct VersRec VersRec; typedef VersRec * VersRecPtr; typedef VersRecPtr * VersRecHndl; typedef UInt8 Byte; typedef SInt8 SignedByte; typedef wide * WidePtr; typedef UnsignedWide * UnsignedWidePtr; typedef Float80 extended80; typedef Float96 extended96; typedef SInt8 VHSelect; extern void Debugger(void) __attribute__((availability(ios,unavailable))); extern void DebugStr(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable))); extern void SysBreak(void) __attribute__((availability(ios,unavailable))); extern void SysBreakStr(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable))); extern void SysBreakFunc(ConstStr255Param debuggerMsg) __attribute__((availability(ios,unavailable))); #pragma pack(pop) } extern "C" { // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSAttributedString; #ifndef _REWRITER_typedef_NSAttributedString #define _REWRITER_typedef_NSAttributedString typedef struct objc_object NSAttributedString; typedef struct {} _objc_exc_NSAttributedString; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSNull; #ifndef _REWRITER_typedef_NSNull #define _REWRITER_typedef_NSNull typedef struct objc_object NSNull; typedef struct {} _objc_exc_NSNull; #endif // @class NSCharacterSet; #ifndef _REWRITER_typedef_NSCharacterSet #define _REWRITER_typedef_NSCharacterSet typedef struct objc_object NSCharacterSet; typedef struct {} _objc_exc_NSCharacterSet; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @class NSDate; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif // @class NSTimeZone; #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @class NSLocale; #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif // @class NSNumber; #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif // @class NSSet; #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif extern double kCFCoreFoundationVersionNumber; typedef unsigned long CFTypeID; typedef unsigned long CFOptionFlags; typedef unsigned long CFHashCode; typedef signed long CFIndex; typedef const __attribute__((objc_bridge(id))) void * CFTypeRef; typedef const struct __attribute__((objc_bridge(NSString))) __CFString * CFStringRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableString))) __CFString * CFMutableStringRef; typedef __attribute__((objc_bridge(id))) CFTypeRef CFPropertyListRef; typedef CFIndex CFComparisonResult; enum { kCFCompareLessThan = -1L, kCFCompareEqualTo = 0, kCFCompareGreaterThan = 1 }; typedef CFComparisonResult (*CFComparatorFunction)(const void *val1, const void *val2, void *context); static const CFIndex kCFNotFound = -1; typedef struct { CFIndex location; CFIndex length; } CFRange; static __inline__ __attribute__((always_inline)) CFRange CFRangeMake(CFIndex loc, CFIndex len) { CFRange range; range.location = loc; range.length = len; return range; } extern CFRange __CFRangeMake(CFIndex loc, CFIndex len); typedef const struct __attribute__((objc_bridge(NSNull))) __CFNull * CFNullRef; extern CFTypeID CFNullGetTypeID(void); extern const CFNullRef kCFNull; typedef const struct __attribute__((objc_bridge(id))) __CFAllocator * CFAllocatorRef; extern const CFAllocatorRef kCFAllocatorDefault; extern const CFAllocatorRef kCFAllocatorSystemDefault; extern const CFAllocatorRef kCFAllocatorMalloc; extern const CFAllocatorRef kCFAllocatorMallocZone; extern const CFAllocatorRef kCFAllocatorNull; extern const CFAllocatorRef kCFAllocatorUseContext; typedef const void * (*CFAllocatorRetainCallBack)(const void *info); typedef void (*CFAllocatorReleaseCallBack)(const void *info); typedef CFStringRef (*CFAllocatorCopyDescriptionCallBack)(const void *info); typedef void * (*CFAllocatorAllocateCallBack)(CFIndex allocSize, CFOptionFlags hint, void *info); typedef void * (*CFAllocatorReallocateCallBack)(void *ptr, CFIndex newsize, CFOptionFlags hint, void *info); typedef void (*CFAllocatorDeallocateCallBack)(void *ptr, void *info); typedef CFIndex (*CFAllocatorPreferredSizeCallBack)(CFIndex size, CFOptionFlags hint, void *info); typedef struct { CFIndex version; void * info; CFAllocatorRetainCallBack retain; CFAllocatorReleaseCallBack release; CFAllocatorCopyDescriptionCallBack copyDescription; CFAllocatorAllocateCallBack allocate; CFAllocatorReallocateCallBack reallocate; CFAllocatorDeallocateCallBack deallocate; CFAllocatorPreferredSizeCallBack preferredSize; } CFAllocatorContext; extern CFTypeID CFAllocatorGetTypeID(void); extern void CFAllocatorSetDefault(CFAllocatorRef allocator); extern CFAllocatorRef CFAllocatorGetDefault(void); extern CFAllocatorRef CFAllocatorCreate(CFAllocatorRef allocator, CFAllocatorContext *context); extern void *CFAllocatorAllocate(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint); extern void *CFAllocatorReallocate(CFAllocatorRef allocator, void *ptr, CFIndex newsize, CFOptionFlags hint); extern void CFAllocatorDeallocate(CFAllocatorRef allocator, void *ptr); extern CFIndex CFAllocatorGetPreferredSizeForSize(CFAllocatorRef allocator, CFIndex size, CFOptionFlags hint); extern void CFAllocatorGetContext(CFAllocatorRef allocator, CFAllocatorContext *context); extern CFTypeID CFGetTypeID(CFTypeRef cf); extern CFStringRef CFCopyTypeIDDescription(CFTypeID type_id); extern CFTypeRef CFRetain(CFTypeRef cf); extern void CFRelease(CFTypeRef cf); extern CFTypeRef CFAutorelease(CFTypeRef __attribute__((cf_consumed)) arg) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFGetRetainCount(CFTypeRef cf); extern Boolean CFEqual(CFTypeRef cf1, CFTypeRef cf2); extern CFHashCode CFHash(CFTypeRef cf); extern CFStringRef CFCopyDescription(CFTypeRef cf); extern CFAllocatorRef CFGetAllocator(CFTypeRef cf); extern CFTypeRef CFMakeCollectable(CFTypeRef cf) ; typedef enum { ptrauth_key_asia = 0, ptrauth_key_asib = 1, ptrauth_key_asda = 2, ptrauth_key_asdb = 3, ptrauth_key_process_independent_code = ptrauth_key_asia, ptrauth_key_process_dependent_code = ptrauth_key_asib, ptrauth_key_process_independent_data = ptrauth_key_asda, ptrauth_key_process_dependent_data = ptrauth_key_asdb, ptrauth_key_function_pointer = ptrauth_key_process_independent_code, ptrauth_key_return_address = ptrauth_key_process_dependent_code, ptrauth_key_frame_pointer = ptrauth_key_process_dependent_data, ptrauth_key_block_function = ptrauth_key_asia, ptrauth_key_cxx_vtable_pointer = ptrauth_key_asda, } ptrauth_key; typedef uintptr_t ptrauth_extra_data_t; typedef uintptr_t ptrauth_generic_signature_t; } extern "C" { typedef const void * (*CFArrayRetainCallBack)(CFAllocatorRef allocator, const void *value); typedef void (*CFArrayReleaseCallBack)(CFAllocatorRef allocator, const void *value); typedef CFStringRef (*CFArrayCopyDescriptionCallBack)(const void *value); typedef Boolean (*CFArrayEqualCallBack)(const void *value1, const void *value2); typedef struct { CFIndex version; CFArrayRetainCallBack retain; CFArrayReleaseCallBack release; CFArrayCopyDescriptionCallBack copyDescription; CFArrayEqualCallBack equal; } CFArrayCallBacks; extern const CFArrayCallBacks kCFTypeArrayCallBacks; typedef void (*CFArrayApplierFunction)(const void *value, void *context); typedef const struct __attribute__((objc_bridge(NSArray))) __CFArray * CFArrayRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableArray))) __CFArray * CFMutableArrayRef; extern CFTypeID CFArrayGetTypeID(void); extern CFArrayRef CFArrayCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFArrayCallBacks *callBacks); extern CFArrayRef CFArrayCreateCopy(CFAllocatorRef allocator, CFArrayRef theArray); extern CFMutableArrayRef CFArrayCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFArrayCallBacks *callBacks); extern CFMutableArrayRef CFArrayCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFArrayRef theArray); extern CFIndex CFArrayGetCount(CFArrayRef theArray); extern CFIndex CFArrayGetCountOfValue(CFArrayRef theArray, CFRange range, const void *value); extern Boolean CFArrayContainsValue(CFArrayRef theArray, CFRange range, const void *value); extern const void *CFArrayGetValueAtIndex(CFArrayRef theArray, CFIndex idx); extern void CFArrayGetValues(CFArrayRef theArray, CFRange range, const void **values); extern void CFArrayApplyFunction(CFArrayRef theArray, CFRange range, CFArrayApplierFunction __attribute__((noescape)) applier, void *context); extern CFIndex CFArrayGetFirstIndexOfValue(CFArrayRef theArray, CFRange range, const void *value); extern CFIndex CFArrayGetLastIndexOfValue(CFArrayRef theArray, CFRange range, const void *value); extern CFIndex CFArrayBSearchValues(CFArrayRef theArray, CFRange range, const void *value, CFComparatorFunction comparator, void *context); extern void CFArrayAppendValue(CFMutableArrayRef theArray, const void *value); extern void CFArrayInsertValueAtIndex(CFMutableArrayRef theArray, CFIndex idx, const void *value); extern void CFArraySetValueAtIndex(CFMutableArrayRef theArray, CFIndex idx, const void *value); extern void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, CFIndex idx); extern void CFArrayRemoveAllValues(CFMutableArrayRef theArray); extern void CFArrayReplaceValues(CFMutableArrayRef theArray, CFRange range, const void **newValues, CFIndex newCount); extern void CFArrayExchangeValuesAtIndices(CFMutableArrayRef theArray, CFIndex idx1, CFIndex idx2); extern void CFArraySortValues(CFMutableArrayRef theArray, CFRange range, CFComparatorFunction comparator, void *context); extern void CFArrayAppendArray(CFMutableArrayRef theArray, CFArrayRef otherArray, CFRange otherRange); } extern "C" { typedef const void * (*CFBagRetainCallBack)(CFAllocatorRef allocator, const void *value); typedef void (*CFBagReleaseCallBack)(CFAllocatorRef allocator, const void *value); typedef CFStringRef (*CFBagCopyDescriptionCallBack)(const void *value); typedef Boolean (*CFBagEqualCallBack)(const void *value1, const void *value2); typedef CFHashCode (*CFBagHashCallBack)(const void *value); typedef struct { CFIndex version; CFBagRetainCallBack retain; CFBagReleaseCallBack release; CFBagCopyDescriptionCallBack copyDescription; CFBagEqualCallBack equal; CFBagHashCallBack hash; } CFBagCallBacks; extern const CFBagCallBacks kCFTypeBagCallBacks; extern const CFBagCallBacks kCFCopyStringBagCallBacks; typedef void (*CFBagApplierFunction)(const void *value, void *context); typedef const struct __attribute__((objc_bridge(id))) __CFBag * CFBagRef; typedef struct __attribute__((objc_bridge_mutable(id))) __CFBag * CFMutableBagRef; extern CFTypeID CFBagGetTypeID(void); extern CFBagRef CFBagCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFBagCallBacks *callBacks); extern CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag); extern CFMutableBagRef CFBagCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFBagCallBacks *callBacks); extern CFMutableBagRef CFBagCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFBagRef theBag); extern CFIndex CFBagGetCount(CFBagRef theBag); extern CFIndex CFBagGetCountOfValue(CFBagRef theBag, const void *value); extern Boolean CFBagContainsValue(CFBagRef theBag, const void *value); extern const void *CFBagGetValue(CFBagRef theBag, const void *value); extern Boolean CFBagGetValueIfPresent(CFBagRef theBag, const void *candidate, const void **value); extern void CFBagGetValues(CFBagRef theBag, const void **values); extern void CFBagApplyFunction(CFBagRef theBag, CFBagApplierFunction __attribute__((noescape)) applier, void *context); extern void CFBagAddValue(CFMutableBagRef theBag, const void *value); extern void CFBagReplaceValue(CFMutableBagRef theBag, const void *value); extern void CFBagSetValue(CFMutableBagRef theBag, const void *value); extern void CFBagRemoveValue(CFMutableBagRef theBag, const void *value); extern void CFBagRemoveAllValues(CFMutableBagRef theBag); } extern "C" { typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFBinaryHeapCompareContext; typedef struct { CFIndex version; const void *(*retain)(CFAllocatorRef allocator, const void *ptr); void (*release)(CFAllocatorRef allocator, const void *ptr); CFStringRef (*copyDescription)(const void *ptr); CFComparisonResult (*compare)(const void *ptr1, const void *ptr2, void *context); } CFBinaryHeapCallBacks; extern const CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks; typedef void (*CFBinaryHeapApplierFunction)(const void *val, void *context); typedef struct __attribute__((objc_bridge_mutable(id))) __CFBinaryHeap * CFBinaryHeapRef; extern CFTypeID CFBinaryHeapGetTypeID(void); extern CFBinaryHeapRef CFBinaryHeapCreate(CFAllocatorRef allocator, CFIndex capacity, const CFBinaryHeapCallBacks *callBacks, const CFBinaryHeapCompareContext *compareContext); extern CFBinaryHeapRef CFBinaryHeapCreateCopy(CFAllocatorRef allocator, CFIndex capacity, CFBinaryHeapRef heap); extern CFIndex CFBinaryHeapGetCount(CFBinaryHeapRef heap); extern CFIndex CFBinaryHeapGetCountOfValue(CFBinaryHeapRef heap, const void *value); extern Boolean CFBinaryHeapContainsValue(CFBinaryHeapRef heap, const void *value); extern const void * CFBinaryHeapGetMinimum(CFBinaryHeapRef heap); extern Boolean CFBinaryHeapGetMinimumIfPresent(CFBinaryHeapRef heap, const void **value); extern void CFBinaryHeapGetValues(CFBinaryHeapRef heap, const void **values); extern void CFBinaryHeapApplyFunction(CFBinaryHeapRef heap, CFBinaryHeapApplierFunction __attribute__((noescape)) applier, void *context); extern void CFBinaryHeapAddValue(CFBinaryHeapRef heap, const void *value); extern void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap); extern void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap); } extern "C" { typedef UInt32 CFBit; typedef const struct __attribute__((objc_bridge(id))) __CFBitVector * CFBitVectorRef; typedef struct __attribute__((objc_bridge_mutable(id))) __CFBitVector * CFMutableBitVectorRef; extern CFTypeID CFBitVectorGetTypeID(void); extern CFBitVectorRef CFBitVectorCreate(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex numBits); extern CFBitVectorRef CFBitVectorCreateCopy(CFAllocatorRef allocator, CFBitVectorRef bv); extern CFMutableBitVectorRef CFBitVectorCreateMutable(CFAllocatorRef allocator, CFIndex capacity); extern CFMutableBitVectorRef CFBitVectorCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFBitVectorRef bv); extern CFIndex CFBitVectorGetCount(CFBitVectorRef bv); extern CFIndex CFBitVectorGetCountOfBit(CFBitVectorRef bv, CFRange range, CFBit value); extern Boolean CFBitVectorContainsBit(CFBitVectorRef bv, CFRange range, CFBit value); extern CFBit CFBitVectorGetBitAtIndex(CFBitVectorRef bv, CFIndex idx); extern void CFBitVectorGetBits(CFBitVectorRef bv, CFRange range, UInt8 *bytes); extern CFIndex CFBitVectorGetFirstIndexOfBit(CFBitVectorRef bv, CFRange range, CFBit value); extern CFIndex CFBitVectorGetLastIndexOfBit(CFBitVectorRef bv, CFRange range, CFBit value); extern void CFBitVectorSetCount(CFMutableBitVectorRef bv, CFIndex count); extern void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, CFIndex idx); extern void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range); extern void CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv, CFIndex idx, CFBit value); extern void CFBitVectorSetBits(CFMutableBitVectorRef bv, CFRange range, CFBit value); extern void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, CFBit value); } static __inline__ uint16_t OSReadSwapInt16( const volatile void * base, uintptr_t byteOffset ) { uint16_t result; result = *(volatile uint16_t *)((uintptr_t)base + byteOffset); return _OSSwapInt16(result); } static __inline__ uint32_t OSReadSwapInt32( const volatile void * base, uintptr_t byteOffset ) { uint32_t result; result = *(volatile uint32_t *)((uintptr_t)base + byteOffset); return _OSSwapInt32(result); } static __inline__ uint64_t OSReadSwapInt64( const volatile void * base, uintptr_t byteOffset ) { uint64_t result; result = *(volatile uint64_t *)((uintptr_t)base + byteOffset); return _OSSwapInt64(result); } static __inline__ void OSWriteSwapInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) { *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); } static __inline__ void OSWriteSwapInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) { *(volatile uint32_t *)((uintptr_t)base + byteOffset) = _OSSwapInt32(data); } static __inline__ void OSWriteSwapInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) { *(volatile uint64_t *)((uintptr_t)base + byteOffset) = _OSSwapInt64(data); } enum { OSUnknownByteOrder, OSLittleEndian, OSBigEndian }; static inline int32_t OSHostByteOrder(void) { return OSLittleEndian; } static inline uint16_t _OSReadInt16( const volatile void * base, uintptr_t byteOffset ) { return *(volatile uint16_t *)((uintptr_t)base + byteOffset); } static inline uint32_t _OSReadInt32( const volatile void * base, uintptr_t byteOffset ) { return *(volatile uint32_t *)((uintptr_t)base + byteOffset); } static inline uint64_t _OSReadInt64( const volatile void * base, uintptr_t byteOffset ) { return *(volatile uint64_t *)((uintptr_t)base + byteOffset); } static inline void _OSWriteInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) { *(volatile uint16_t *)((uintptr_t)base + byteOffset) = data; } static inline void _OSWriteInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) { *(volatile uint32_t *)((uintptr_t)base + byteOffset) = data; } static inline void _OSWriteInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) { *(volatile uint64_t *)((uintptr_t)base + byteOffset) = data; } extern "C" { enum __CFByteOrder { CFByteOrderUnknown, CFByteOrderLittleEndian, CFByteOrderBigEndian }; typedef CFIndex CFByteOrder; static __inline__ __attribute__((always_inline)) CFByteOrder CFByteOrderGetCurrent(void) { int32_t byteOrder = OSHostByteOrder(); switch (byteOrder) { case OSLittleEndian: return CFByteOrderLittleEndian; case OSBigEndian: return CFByteOrderBigEndian; default: break; } return CFByteOrderUnknown; } static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16(uint16_t arg) { return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00U) >> 8) | (((__uint16_t)(arg) & 0x00ffU) << 8))) : _OSSwapInt16(arg))); } static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32(uint32_t arg) { return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000U) >> 24) | (((__uint32_t)(arg) & 0x00ff0000U) >> 8) | (((__uint32_t)(arg) & 0x0000ff00U) << 8) | (((__uint32_t)(arg) & 0x000000ffU) << 24))) : _OSSwapInt32(arg)); } static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64(uint64_t arg) { return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg)); } static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16BigToHost(uint16_t arg) { return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00U) >> 8) | (((__uint16_t)(arg) & 0x00ffU) << 8))) : _OSSwapInt16(arg))); } static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32BigToHost(uint32_t arg) { return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000U) >> 24) | (((__uint32_t)(arg) & 0x00ff0000U) >> 8) | (((__uint32_t)(arg) & 0x0000ff00U) << 8) | (((__uint32_t)(arg) & 0x000000ffU) << 24))) : _OSSwapInt32(arg)); } static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64BigToHost(uint64_t arg) { return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg)); } static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16HostToBig(uint16_t arg) { return ((__uint16_t)(__builtin_constant_p(arg) ? ((__uint16_t)((((__uint16_t)(arg) & 0xff00U) >> 8) | (((__uint16_t)(arg) & 0x00ffU) << 8))) : _OSSwapInt16(arg))); } static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32HostToBig(uint32_t arg) { return (__builtin_constant_p(arg) ? ((__uint32_t)((((__uint32_t)(arg) & 0xff000000U) >> 24) | (((__uint32_t)(arg) & 0x00ff0000U) >> 8) | (((__uint32_t)(arg) & 0x0000ff00U) << 8) | (((__uint32_t)(arg) & 0x000000ffU) << 24))) : _OSSwapInt32(arg)); } static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64HostToBig(uint64_t arg) { return (__builtin_constant_p(arg) ? ((__uint64_t)((((__uint64_t)(arg) & 0xff00000000000000ULL) >> 56) | (((__uint64_t)(arg) & 0x00ff000000000000ULL) >> 40) | (((__uint64_t)(arg) & 0x0000ff0000000000ULL) >> 24) | (((__uint64_t)(arg) & 0x000000ff00000000ULL) >> 8) | (((__uint64_t)(arg) & 0x00000000ff000000ULL) << 8) | (((__uint64_t)(arg) & 0x0000000000ff0000ULL) << 24) | (((__uint64_t)(arg) & 0x000000000000ff00ULL) << 40) | (((__uint64_t)(arg) & 0x00000000000000ffULL) << 56))) : _OSSwapInt64(arg)); } static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16LittleToHost(uint16_t arg) { return ((uint16_t)(arg)); } static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32LittleToHost(uint32_t arg) { return ((uint32_t)(arg)); } static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64LittleToHost(uint64_t arg) { return ((uint64_t)(arg)); } static __inline__ __attribute__((always_inline)) uint16_t CFSwapInt16HostToLittle(uint16_t arg) { return ((uint16_t)(arg)); } static __inline__ __attribute__((always_inline)) uint32_t CFSwapInt32HostToLittle(uint32_t arg) { return ((uint32_t)(arg)); } static __inline__ __attribute__((always_inline)) uint64_t CFSwapInt64HostToLittle(uint64_t arg) { return ((uint64_t)(arg)); } typedef struct {uint32_t v;} CFSwappedFloat32; typedef struct {uint64_t v;} CFSwappedFloat64; static __inline__ __attribute__((always_inline)) CFSwappedFloat32 CFConvertFloat32HostToSwapped(Float32 arg) { union CFSwap { Float32 v; CFSwappedFloat32 sv; } result; result.v = arg; result.sv.v = CFSwapInt32(result.sv.v); return result.sv; } static __inline__ __attribute__((always_inline)) Float32 CFConvertFloat32SwappedToHost(CFSwappedFloat32 arg) { union CFSwap { Float32 v; CFSwappedFloat32 sv; } result; result.sv = arg; result.sv.v = CFSwapInt32(result.sv.v); return result.v; } static __inline__ __attribute__((always_inline)) CFSwappedFloat64 CFConvertFloat64HostToSwapped(Float64 arg) { union CFSwap { Float64 v; CFSwappedFloat64 sv; } result; result.v = arg; result.sv.v = CFSwapInt64(result.sv.v); return result.sv; } static __inline__ __attribute__((always_inline)) Float64 CFConvertFloat64SwappedToHost(CFSwappedFloat64 arg) { union CFSwap { Float64 v; CFSwappedFloat64 sv; } result; result.sv = arg; result.sv.v = CFSwapInt64(result.sv.v); return result.v; } static __inline__ __attribute__((always_inline)) CFSwappedFloat32 CFConvertFloatHostToSwapped(float arg) { union CFSwap { float v; CFSwappedFloat32 sv; } result; result.v = arg; result.sv.v = CFSwapInt32(result.sv.v); return result.sv; } static __inline__ __attribute__((always_inline)) float CFConvertFloatSwappedToHost(CFSwappedFloat32 arg) { union CFSwap { float v; CFSwappedFloat32 sv; } result; result.sv = arg; result.sv.v = CFSwapInt32(result.sv.v); return result.v; } static __inline__ __attribute__((always_inline)) CFSwappedFloat64 CFConvertDoubleHostToSwapped(double arg) { union CFSwap { double v; CFSwappedFloat64 sv; } result; result.v = arg; result.sv.v = CFSwapInt64(result.sv.v); return result.sv; } static __inline__ __attribute__((always_inline)) double CFConvertDoubleSwappedToHost(CFSwappedFloat64 arg) { union CFSwap { double v; CFSwappedFloat64 sv; } result; result.sv = arg; result.sv.v = CFSwapInt64(result.sv.v); return result.v; } } extern "C" { typedef const void * (*CFDictionaryRetainCallBack)(CFAllocatorRef allocator, const void *value); typedef void (*CFDictionaryReleaseCallBack)(CFAllocatorRef allocator, const void *value); typedef CFStringRef (*CFDictionaryCopyDescriptionCallBack)(const void *value); typedef Boolean (*CFDictionaryEqualCallBack)(const void *value1, const void *value2); typedef CFHashCode (*CFDictionaryHashCallBack)(const void *value); typedef struct { CFIndex version; CFDictionaryRetainCallBack retain; CFDictionaryReleaseCallBack release; CFDictionaryCopyDescriptionCallBack copyDescription; CFDictionaryEqualCallBack equal; CFDictionaryHashCallBack hash; } CFDictionaryKeyCallBacks; extern const CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; extern const CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks; typedef struct { CFIndex version; CFDictionaryRetainCallBack retain; CFDictionaryReleaseCallBack release; CFDictionaryCopyDescriptionCallBack copyDescription; CFDictionaryEqualCallBack equal; } CFDictionaryValueCallBacks; extern const CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; typedef void (*CFDictionaryApplierFunction)(const void *key, const void *value, void *context); typedef const struct __attribute__((objc_bridge(NSDictionary))) __CFDictionary * CFDictionaryRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableDictionary))) __CFDictionary * CFMutableDictionaryRef; extern CFTypeID CFDictionaryGetTypeID(void); extern CFDictionaryRef CFDictionaryCreate(CFAllocatorRef allocator, const void **keys, const void **values, CFIndex numValues, const CFDictionaryKeyCallBacks *keyCallBacks, const CFDictionaryValueCallBacks *valueCallBacks); extern CFDictionaryRef CFDictionaryCreateCopy(CFAllocatorRef allocator, CFDictionaryRef theDict); extern CFMutableDictionaryRef CFDictionaryCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFDictionaryKeyCallBacks *keyCallBacks, const CFDictionaryValueCallBacks *valueCallBacks); extern CFMutableDictionaryRef CFDictionaryCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFDictionaryRef theDict); extern CFIndex CFDictionaryGetCount(CFDictionaryRef theDict); extern CFIndex CFDictionaryGetCountOfKey(CFDictionaryRef theDict, const void *key); extern CFIndex CFDictionaryGetCountOfValue(CFDictionaryRef theDict, const void *value); extern Boolean CFDictionaryContainsKey(CFDictionaryRef theDict, const void *key); extern Boolean CFDictionaryContainsValue(CFDictionaryRef theDict, const void *value); extern const void *CFDictionaryGetValue(CFDictionaryRef theDict, const void *key); extern Boolean CFDictionaryGetValueIfPresent(CFDictionaryRef theDict, const void *key, const void **value); extern void CFDictionaryGetKeysAndValues(CFDictionaryRef theDict, const void **keys, const void **values); extern void CFDictionaryApplyFunction(CFDictionaryRef theDict, CFDictionaryApplierFunction __attribute__((noescape)) applier, void *context); extern void CFDictionaryAddValue(CFMutableDictionaryRef theDict, const void *key, const void *value); extern void CFDictionarySetValue(CFMutableDictionaryRef theDict, const void *key, const void *value); extern void CFDictionaryReplaceValue(CFMutableDictionaryRef theDict, const void *key, const void *value); extern void CFDictionaryRemoveValue(CFMutableDictionaryRef theDict, const void *key); extern void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict); } extern "C" { typedef CFStringRef CFNotificationName __attribute__((swift_wrapper(struct))); typedef struct __attribute__((objc_bridge_mutable(id))) __CFNotificationCenter * CFNotificationCenterRef; typedef void (*CFNotificationCallback)(CFNotificationCenterRef center, void *observer, CFNotificationName name, const void *object, CFDictionaryRef userInfo); typedef CFIndex CFNotificationSuspensionBehavior; enum { CFNotificationSuspensionBehaviorDrop = 1, CFNotificationSuspensionBehaviorCoalesce = 2, CFNotificationSuspensionBehaviorHold = 3, CFNotificationSuspensionBehaviorDeliverImmediately = 4 }; extern CFTypeID CFNotificationCenterGetTypeID(void); extern CFNotificationCenterRef CFNotificationCenterGetLocalCenter(void); extern CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(void); extern void CFNotificationCenterAddObserver(CFNotificationCenterRef center, const void *observer, CFNotificationCallback callBack, CFStringRef name, const void *object, CFNotificationSuspensionBehavior suspensionBehavior); extern void CFNotificationCenterRemoveObserver(CFNotificationCenterRef center, const void *observer, CFNotificationName name, const void *object); extern void CFNotificationCenterRemoveEveryObserver(CFNotificationCenterRef center, const void *observer); extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, Boolean deliverImmediately); enum { kCFNotificationDeliverImmediately = (1UL << 0), kCFNotificationPostToAllSessions = (1UL << 1) }; extern void CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, CFOptionFlags options); } extern "C" { typedef CFStringRef CFLocaleIdentifier __attribute__((swift_wrapper(struct))); typedef CFStringRef CFLocaleKey __attribute__((swift_wrapper(enum))); typedef const struct __attribute__((objc_bridge(NSLocale))) __CFLocale *CFLocaleRef; extern CFTypeID CFLocaleGetTypeID(void); extern CFLocaleRef CFLocaleGetSystem(void); extern CFLocaleRef CFLocaleCopyCurrent(void); extern CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(void); extern CFArrayRef CFLocaleCopyISOLanguageCodes(void); extern CFArrayRef CFLocaleCopyISOCountryCodes(void); extern CFArrayRef CFLocaleCopyISOCurrencyCodes(void); extern CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFArrayRef CFLocaleCopyPreferredLanguages(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier); extern CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier); extern CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator, LangCode lcode, RegionCode rcode); extern CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(CFAllocatorRef allocator, uint32_t lcid) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern uint32_t CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(CFLocaleIdentifier localeIdentifier) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFIndex CFLocaleLanguageDirection; enum { kCFLocaleLanguageDirectionUnknown = 0, kCFLocaleLanguageDirectionLeftToRight = 1, kCFLocaleLanguageDirectionRightToLeft = 2, kCFLocaleLanguageDirectionTopToBottom = 3, kCFLocaleLanguageDirectionBottomToTop = 4 }; extern CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator, CFLocaleIdentifier localeID); extern CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator, CFDictionaryRef dictionary); extern CFLocaleRef CFLocaleCreate(CFAllocatorRef allocator, CFLocaleIdentifier localeIdentifier); extern CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef locale); extern CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale); extern CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key); extern CFStringRef CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef displayLocale, CFLocaleKey key, CFStringRef value); extern const CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFLocaleKey kCFLocaleIdentifier; extern const CFLocaleKey kCFLocaleLanguageCode; extern const CFLocaleKey kCFLocaleCountryCode; extern const CFLocaleKey kCFLocaleScriptCode; extern const CFLocaleKey kCFLocaleVariantCode; extern const CFLocaleKey kCFLocaleExemplarCharacterSet; extern const CFLocaleKey kCFLocaleCalendarIdentifier; extern const CFLocaleKey kCFLocaleCalendar; extern const CFLocaleKey kCFLocaleCollationIdentifier; extern const CFLocaleKey kCFLocaleUsesMetricSystem; extern const CFLocaleKey kCFLocaleMeasurementSystem; extern const CFLocaleKey kCFLocaleDecimalSeparator; extern const CFLocaleKey kCFLocaleGroupingSeparator; extern const CFLocaleKey kCFLocaleCurrencySymbol; extern const CFLocaleKey kCFLocaleCurrencyCode; extern const CFLocaleKey kCFLocaleCollatorIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFLocaleKey kCFLocaleQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFLocaleKey kCFLocaleQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFStringRef CFCalendarIdentifier __attribute__((swift_wrapper(enum))); extern const CFCalendarIdentifier kCFGregorianCalendar; extern const CFCalendarIdentifier kCFBuddhistCalendar; extern const CFCalendarIdentifier kCFChineseCalendar; extern const CFCalendarIdentifier kCFHebrewCalendar; extern const CFCalendarIdentifier kCFIslamicCalendar; extern const CFCalendarIdentifier kCFIslamicCivilCalendar; extern const CFCalendarIdentifier kCFJapaneseCalendar; extern const CFCalendarIdentifier kCFRepublicOfChinaCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFCalendarIdentifier kCFPersianCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFCalendarIdentifier kCFIndianCalendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFCalendarIdentifier kCFISO8601Calendar __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFCalendarIdentifier kCFIslamicTabularCalendar __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef double CFTimeInterval; typedef CFTimeInterval CFAbsoluteTime; extern CFAbsoluteTime CFAbsoluteTimeGetCurrent(void); extern const CFTimeInterval kCFAbsoluteTimeIntervalSince1970; extern const CFTimeInterval kCFAbsoluteTimeIntervalSince1904; typedef const struct __attribute__((objc_bridge(NSDate))) __CFDate * CFDateRef; extern CFTypeID CFDateGetTypeID(void); extern CFDateRef CFDateCreate(CFAllocatorRef allocator, CFAbsoluteTime at); extern CFAbsoluteTime CFDateGetAbsoluteTime(CFDateRef theDate); extern CFTimeInterval CFDateGetTimeIntervalSinceDate(CFDateRef theDate, CFDateRef otherDate); extern CFComparisonResult CFDateCompare(CFDateRef theDate, CFDateRef otherDate, void *context); typedef const struct __attribute__((objc_bridge(NSTimeZone))) __CFTimeZone * CFTimeZoneRef; typedef struct { SInt32 year; SInt8 month; SInt8 day; SInt8 hour; SInt8 minute; double second; } CFGregorianDate __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); typedef struct { SInt32 years; SInt32 months; SInt32 days; SInt32 hours; SInt32 minutes; double seconds; } CFGregorianUnits __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); typedef CFOptionFlags CFGregorianUnitFlags; enum { kCFGregorianUnitsYears __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 0), kCFGregorianUnitsMonths __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 1), kCFGregorianUnitsDays __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 2), kCFGregorianUnitsHours __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 3), kCFGregorianUnitsMinutes __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 4), kCFGregorianUnitsSeconds __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = (1UL << 5), kCFGregorianAllUnits __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))) = 0x00FFFFFF }; extern Boolean CFGregorianDateIsValid(CFGregorianDate gdate, CFOptionFlags unitFlags) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern CFAbsoluteTime CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern CFGregorianDate CFAbsoluteTimeGetGregorianDate(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern CFAbsoluteTime CFAbsoluteTimeAddGregorianUnits(CFAbsoluteTime at, CFTimeZoneRef tz, CFGregorianUnits units) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits(CFAbsoluteTime at1, CFAbsoluteTime at2, CFTimeZoneRef tz, CFOptionFlags unitFlags) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern SInt32 CFAbsoluteTimeGetDayOfWeek(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern SInt32 CFAbsoluteTimeGetDayOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); extern SInt32 CFAbsoluteTimeGetWeekOfYear(CFAbsoluteTime at, CFTimeZoneRef tz) __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFCalendar or NSCalendar API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFCalendar or NSCalendar API instead"))); } extern "C" { typedef const struct __attribute__((objc_bridge(NSData))) __CFData * CFDataRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableData))) __CFData * CFMutableDataRef; extern CFTypeID CFDataGetTypeID(void); extern CFDataRef CFDataCreate(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex length); extern CFDataRef CFDataCreateWithBytesNoCopy(CFAllocatorRef allocator, const UInt8 *bytes, CFIndex length, CFAllocatorRef bytesDeallocator); extern CFDataRef CFDataCreateCopy(CFAllocatorRef allocator, CFDataRef theData); extern CFMutableDataRef CFDataCreateMutable(CFAllocatorRef allocator, CFIndex capacity); extern CFMutableDataRef CFDataCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFDataRef theData); extern CFIndex CFDataGetLength(CFDataRef theData); extern const UInt8 *CFDataGetBytePtr(CFDataRef theData); extern UInt8 *CFDataGetMutableBytePtr(CFMutableDataRef theData); extern void CFDataGetBytes(CFDataRef theData, CFRange range, UInt8 *buffer); extern void CFDataSetLength(CFMutableDataRef theData, CFIndex length); extern void CFDataIncreaseLength(CFMutableDataRef theData, CFIndex extraLength); extern void CFDataAppendBytes(CFMutableDataRef theData, const UInt8 *bytes, CFIndex length); extern void CFDataReplaceBytes(CFMutableDataRef theData, CFRange range, const UInt8 *newBytes, CFIndex newLength); extern void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range); typedef CFOptionFlags CFDataSearchFlags; enum { kCFDataSearchBackwards = 1UL << 0, kCFDataSearchAnchored = 1UL << 1 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFRange CFDataFind(CFDataRef theData, CFDataRef dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef const struct __attribute__((objc_bridge(NSCharacterSet))) __CFCharacterSet * CFCharacterSetRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableCharacterSet))) __CFCharacterSet * CFMutableCharacterSetRef; typedef CFIndex CFCharacterSetPredefinedSet; enum { kCFCharacterSetControl = 1, kCFCharacterSetWhitespace, kCFCharacterSetWhitespaceAndNewline, kCFCharacterSetDecimalDigit, kCFCharacterSetLetter, kCFCharacterSetLowercaseLetter, kCFCharacterSetUppercaseLetter, kCFCharacterSetNonBase, kCFCharacterSetDecomposable, kCFCharacterSetAlphaNumeric, kCFCharacterSetPunctuation, kCFCharacterSetCapitalizedLetter = 13, kCFCharacterSetSymbol = 14, kCFCharacterSetNewline __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15, kCFCharacterSetIllegal = 12 }; extern CFTypeID CFCharacterSetGetTypeID(void); extern CFCharacterSetRef CFCharacterSetGetPredefined(CFCharacterSetPredefinedSet theSetIdentifier); extern CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange(CFAllocatorRef alloc, CFRange theRange); extern CFCharacterSetRef CFCharacterSetCreateWithCharactersInString(CFAllocatorRef alloc, CFStringRef theString); extern CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation(CFAllocatorRef alloc, CFDataRef theData); extern CFCharacterSetRef CFCharacterSetCreateInvertedSet(CFAllocatorRef alloc, CFCharacterSetRef theSet); extern Boolean CFCharacterSetIsSupersetOfSet(CFCharacterSetRef theSet, CFCharacterSetRef theOtherset); extern Boolean CFCharacterSetHasMemberInPlane(CFCharacterSetRef theSet, CFIndex thePlane); extern CFMutableCharacterSetRef CFCharacterSetCreateMutable(CFAllocatorRef alloc); extern CFCharacterSetRef CFCharacterSetCreateCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet); extern CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet); extern Boolean CFCharacterSetIsCharacterMember(CFCharacterSetRef theSet, UniChar theChar); extern Boolean CFCharacterSetIsLongCharacterMember(CFCharacterSetRef theSet, UTF32Char theChar); extern CFDataRef CFCharacterSetCreateBitmapRepresentation(CFAllocatorRef alloc, CFCharacterSetRef theSet); extern void CFCharacterSetAddCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange); extern void CFCharacterSetRemoveCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange); extern void CFCharacterSetAddCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString); extern void CFCharacterSetRemoveCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString); extern void CFCharacterSetUnion(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet); extern void CFCharacterSetIntersect(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet); extern void CFCharacterSetInvert(CFMutableCharacterSetRef theSet); } extern "C" { typedef UInt32 CFStringEncoding; typedef CFStringEncoding CFStringBuiltInEncodings; enum { kCFStringEncodingMacRoman = 0, kCFStringEncodingWindowsLatin1 = 0x0500, kCFStringEncodingISOLatin1 = 0x0201, kCFStringEncodingNextStepLatin = 0x0B01, kCFStringEncodingASCII = 0x0600, kCFStringEncodingUnicode = 0x0100, kCFStringEncodingUTF8 = 0x08000100, kCFStringEncodingNonLossyASCII = 0x0BFF, kCFStringEncodingUTF16 = 0x0100, kCFStringEncodingUTF16BE = 0x10000100, kCFStringEncodingUTF16LE = 0x14000100, kCFStringEncodingUTF32 = 0x0c000100, kCFStringEncodingUTF32BE = 0x18000100, kCFStringEncodingUTF32LE = 0x1c000100 }; extern CFTypeID CFStringGetTypeID(void); extern CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding); extern CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding); extern CFStringRef CFStringCreateWithBytes(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation); extern CFStringRef CFStringCreateWithCharacters(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars); extern CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator); extern CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator); extern CFStringRef CFStringCreateWithBytesNoCopy(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation, CFAllocatorRef contentsDeallocator); extern CFStringRef CFStringCreateWithCharactersNoCopy(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars, CFAllocatorRef contentsDeallocator); extern CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range); extern CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString); extern CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFString, 3, 4))); extern CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) __attribute__((format(CFString, 3, 0))); extern CFMutableStringRef CFStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength); extern CFMutableStringRef CFStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFStringRef theString); extern CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy(CFAllocatorRef alloc, UniChar *chars, CFIndex numChars, CFIndex capacity, CFAllocatorRef externalCharactersAllocator); extern CFIndex CFStringGetLength(CFStringRef theString); extern UniChar CFStringGetCharacterAtIndex(CFStringRef theString, CFIndex idx); extern void CFStringGetCharacters(CFStringRef theString, CFRange range, UniChar *buffer); extern Boolean CFStringGetPascalString(CFStringRef theString, StringPtr buffer, CFIndex bufferSize, CFStringEncoding encoding); extern Boolean CFStringGetCString(CFStringRef theString, char *buffer, CFIndex bufferSize, CFStringEncoding encoding); extern ConstStringPtr CFStringGetPascalStringPtr(CFStringRef theString, CFStringEncoding encoding); extern const char *CFStringGetCStringPtr(CFStringRef theString, CFStringEncoding encoding); extern const UniChar *CFStringGetCharactersPtr(CFStringRef theString); extern CFIndex CFStringGetBytes(CFStringRef theString, CFRange range, CFStringEncoding encoding, UInt8 lossByte, Boolean isExternalRepresentation, UInt8 *buffer, CFIndex maxBufLen, CFIndex *usedBufLen); extern CFStringRef CFStringCreateFromExternalRepresentation(CFAllocatorRef alloc, CFDataRef data, CFStringEncoding encoding); extern CFDataRef CFStringCreateExternalRepresentation(CFAllocatorRef alloc, CFStringRef theString, CFStringEncoding encoding, UInt8 lossByte); extern CFStringEncoding CFStringGetSmallestEncoding(CFStringRef theString); extern CFStringEncoding CFStringGetFastestEncoding(CFStringRef theString); extern CFStringEncoding CFStringGetSystemEncoding(void); extern CFIndex CFStringGetMaximumSizeForEncoding(CFIndex length, CFStringEncoding encoding); extern Boolean CFStringGetFileSystemRepresentation(CFStringRef string, char *buffer, CFIndex maxBufLen); extern CFIndex CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string); extern CFStringRef CFStringCreateWithFileSystemRepresentation(CFAllocatorRef alloc, const char *buffer); typedef CFOptionFlags CFStringCompareFlags; enum { kCFCompareCaseInsensitive = 1, kCFCompareBackwards = 4, kCFCompareAnchored = 8, kCFCompareNonliteral = 16, kCFCompareLocalized = 32, kCFCompareNumerically = 64, kCFCompareDiacriticInsensitive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 128, kCFCompareWidthInsensitive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 256, kCFCompareForcedOrdering __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 512 }; extern CFComparisonResult CFStringCompareWithOptionsAndLocale(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFComparisonResult CFStringCompareWithOptions(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions); extern CFComparisonResult CFStringCompare(CFStringRef theString1, CFStringRef theString2, CFStringCompareFlags compareOptions); extern Boolean CFStringFindWithOptionsAndLocale(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocaleRef locale, CFRange *result) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFStringFindWithOptions(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result); extern CFArrayRef CFStringCreateArrayWithFindResults(CFAllocatorRef alloc, CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions); extern CFRange CFStringFind(CFStringRef theString, CFStringRef stringToFind, CFStringCompareFlags compareOptions); extern Boolean CFStringHasPrefix(CFStringRef theString, CFStringRef prefix); extern Boolean CFStringHasSuffix(CFStringRef theString, CFStringRef suffix); extern CFRange CFStringGetRangeOfComposedCharactersAtIndex(CFStringRef theString, CFIndex theIndex); extern Boolean CFStringFindCharacterFromSet(CFStringRef theString, CFCharacterSetRef theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result); extern void CFStringGetLineBounds(CFStringRef theString, CFRange range, CFIndex *lineBeginIndex, CFIndex *lineEndIndex, CFIndex *contentsEndIndex); extern void CFStringGetParagraphBounds(CFStringRef string, CFRange range, CFIndex *parBeginIndex, CFIndex *parEndIndex, CFIndex *contentsEndIndex) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFStringGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex location, CFRange limitRange, CFOptionFlags options, CFLocaleRef locale, UTF32Char *character) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringRef CFStringCreateByCombiningStrings(CFAllocatorRef alloc, CFArrayRef theArray, CFStringRef separatorString); extern CFArrayRef CFStringCreateArrayBySeparatingStrings(CFAllocatorRef alloc, CFStringRef theString, CFStringRef separatorString); extern SInt32 CFStringGetIntValue(CFStringRef str); extern double CFStringGetDoubleValue(CFStringRef str); extern void CFStringAppend(CFMutableStringRef theString, CFStringRef appendedString); extern void CFStringAppendCharacters(CFMutableStringRef theString, const UniChar *chars, CFIndex numChars); extern void CFStringAppendPascalString(CFMutableStringRef theString, ConstStr255Param pStr, CFStringEncoding encoding); extern void CFStringAppendCString(CFMutableStringRef theString, const char *cStr, CFStringEncoding encoding); extern void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFString, 3, 4))); extern void CFStringAppendFormatAndArguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) __attribute__((format(CFString, 3, 0))); extern void CFStringInsert(CFMutableStringRef str, CFIndex idx, CFStringRef insertedStr); extern void CFStringDelete(CFMutableStringRef theString, CFRange range); extern void CFStringReplace(CFMutableStringRef theString, CFRange range, CFStringRef replacement); extern void CFStringReplaceAll(CFMutableStringRef theString, CFStringRef replacement); extern CFIndex CFStringFindAndReplace(CFMutableStringRef theString, CFStringRef stringToFind, CFStringRef replacementString, CFRange rangeToSearch, CFStringCompareFlags compareOptions); extern void CFStringSetExternalCharactersNoCopy(CFMutableStringRef theString, UniChar *chars, CFIndex length, CFIndex capacity); extern void CFStringPad(CFMutableStringRef theString, CFStringRef padString, CFIndex length, CFIndex indexIntoPad); extern void CFStringTrim(CFMutableStringRef theString, CFStringRef trimString); extern void CFStringTrimWhitespace(CFMutableStringRef theString); extern void CFStringLowercase(CFMutableStringRef theString, CFLocaleRef locale); extern void CFStringUppercase(CFMutableStringRef theString, CFLocaleRef locale); extern void CFStringCapitalize(CFMutableStringRef theString, CFLocaleRef locale); typedef CFIndex CFStringNormalizationForm; enum { kCFStringNormalizationFormD = 0, kCFStringNormalizationFormKD, kCFStringNormalizationFormC, kCFStringNormalizationFormKC }; extern void CFStringNormalize(CFMutableStringRef theString, CFStringNormalizationForm theForm); extern void CFStringFold(CFMutableStringRef theString, CFStringCompareFlags theFlags, CFLocaleRef theLocale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFStringTransform(CFMutableStringRef string, CFRange *range, CFStringRef transform, Boolean reverse); extern const CFStringRef kCFStringTransformStripCombiningMarks; extern const CFStringRef kCFStringTransformToLatin; extern const CFStringRef kCFStringTransformFullwidthHalfwidth; extern const CFStringRef kCFStringTransformLatinKatakana; extern const CFStringRef kCFStringTransformLatinHiragana; extern const CFStringRef kCFStringTransformHiraganaKatakana; extern const CFStringRef kCFStringTransformMandarinLatin; extern const CFStringRef kCFStringTransformLatinHangul; extern const CFStringRef kCFStringTransformLatinArabic; extern const CFStringRef kCFStringTransformLatinHebrew; extern const CFStringRef kCFStringTransformLatinThai; extern const CFStringRef kCFStringTransformLatinCyrillic; extern const CFStringRef kCFStringTransformLatinGreek; extern const CFStringRef kCFStringTransformToXMLHex; extern const CFStringRef kCFStringTransformToUnicodeName; extern const CFStringRef kCFStringTransformStripDiacritics __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFStringIsEncodingAvailable(CFStringEncoding encoding); extern const CFStringEncoding *CFStringGetListOfAvailableEncodings(void); extern CFStringRef CFStringGetNameOfEncoding(CFStringEncoding encoding); extern unsigned long CFStringConvertEncodingToNSStringEncoding(CFStringEncoding encoding); extern CFStringEncoding CFStringConvertNSStringEncodingToEncoding(unsigned long encoding); extern UInt32 CFStringConvertEncodingToWindowsCodepage(CFStringEncoding encoding); extern CFStringEncoding CFStringConvertWindowsCodepageToEncoding(UInt32 codepage); extern CFStringEncoding CFStringConvertIANACharSetNameToEncoding(CFStringRef theString); extern CFStringRef CFStringConvertEncodingToIANACharSetName(CFStringEncoding encoding); extern CFStringEncoding CFStringGetMostCompatibleMacStringEncoding(CFStringEncoding encoding); typedef struct { UniChar buffer[64]; CFStringRef theString; const UniChar *directUniCharBuffer; const char *directCStringBuffer; CFRange rangeToBuffer; CFIndex bufferedRangeStart; CFIndex bufferedRangeEnd; } CFStringInlineBuffer; static __inline__ __attribute__((always_inline)) void CFStringInitInlineBuffer(CFStringRef str, CFStringInlineBuffer *buf, CFRange range) { buf->theString = str; buf->rangeToBuffer = range; buf->directCStringBuffer = (buf->directUniCharBuffer = CFStringGetCharactersPtr(str)) ? __null : CFStringGetCStringPtr(str, kCFStringEncodingASCII); buf->bufferedRangeStart = buf->bufferedRangeEnd = 0; } static __inline__ __attribute__((always_inline)) UniChar CFStringGetCharacterFromInlineBuffer(CFStringInlineBuffer *buf, CFIndex idx) { if (idx < 0 || idx >= buf->rangeToBuffer.length) return 0; if (buf->directUniCharBuffer) return buf->directUniCharBuffer[idx + buf->rangeToBuffer.location]; if (buf->directCStringBuffer) return (UniChar)(buf->directCStringBuffer[idx + buf->rangeToBuffer.location]); if (idx >= buf->bufferedRangeEnd || idx < buf->bufferedRangeStart) { if ((buf->bufferedRangeStart = idx - 4) < 0) buf->bufferedRangeStart = 0; buf->bufferedRangeEnd = buf->bufferedRangeStart + 64; if (buf->bufferedRangeEnd > buf->rangeToBuffer.length) buf->bufferedRangeEnd = buf->rangeToBuffer.length; CFStringGetCharacters(buf->theString, CFRangeMake(buf->rangeToBuffer.location + buf->bufferedRangeStart, buf->bufferedRangeEnd - buf->bufferedRangeStart), buf->buffer); } return buf->buffer[idx - buf->bufferedRangeStart]; } static __inline__ __attribute__((always_inline)) Boolean CFStringIsSurrogateHighCharacter(UniChar character) { return ((character >= 0xD800UL) && (character <= 0xDBFFUL) ? true : false); } static __inline__ __attribute__((always_inline)) Boolean CFStringIsSurrogateLowCharacter(UniChar character) { return ((character >= 0xDC00UL) && (character <= 0xDFFFUL) ? true : false); } static __inline__ __attribute__((always_inline)) UTF32Char CFStringGetLongCharacterForSurrogatePair(UniChar surrogateHigh, UniChar surrogateLow) { return (UTF32Char)(((surrogateHigh - 0xD800UL) << 10) + (surrogateLow - 0xDC00UL) + 0x0010000UL); } static __inline__ __attribute__((always_inline)) Boolean CFStringGetSurrogatePairForLongCharacter(UTF32Char character, UniChar *surrogates) { if ((character > 0xFFFFUL) && (character < 0x110000UL)) { character -= 0x10000; if (__null != surrogates) { surrogates[0] = (UniChar)((character >> 10) + 0xD800UL); surrogates[1] = (UniChar)((character & 0x3FF) + 0xDC00UL); } return true; } else { if (__null != surrogates) *surrogates = (UniChar)character; return false; } } extern void CFShow(CFTypeRef obj); extern void CFShowStr(CFStringRef str); extern CFStringRef __CFStringMakeConstantString(const char *cStr) __attribute__((format_arg(1))); } extern "C" { extern CFTypeID CFTimeZoneGetTypeID(void); extern CFTimeZoneRef CFTimeZoneCopySystem(void); extern void CFTimeZoneResetSystem(void); extern CFTimeZoneRef CFTimeZoneCopyDefault(void); extern void CFTimeZoneSetDefault(CFTimeZoneRef tz); extern CFArrayRef CFTimeZoneCopyKnownNames(void); extern CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary(void); extern void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict); extern CFTimeZoneRef CFTimeZoneCreate(CFAllocatorRef allocator, CFStringRef name, CFDataRef data); extern CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator, CFTimeInterval ti); extern CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef name, Boolean tryAbbrev); extern CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz); extern CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz); extern CFTimeInterval CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, CFAbsoluteTime at); extern CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, CFAbsoluteTime at); extern Boolean CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, CFAbsoluteTime at); extern CFTimeInterval CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, CFAbsoluteTime at) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFAbsoluteTime CFTimeZoneGetNextDaylightSavingTimeTransition(CFTimeZoneRef tz, CFAbsoluteTime at) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFIndex CFTimeZoneNameStyle; enum { kCFTimeZoneNameStyleStandard, kCFTimeZoneNameStyleShortStandard, kCFTimeZoneNameStyleDaylightSaving, kCFTimeZoneNameStyleShortDaylightSaving, kCFTimeZoneNameStyleGeneric, kCFTimeZoneNameStyleShortGeneric } __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringRef CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz, CFTimeZoneNameStyle style, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFNotificationName kCFTimeZoneSystemTimeZoneDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(NSCalendar))) __CFCalendar * CFCalendarRef; extern CFTypeID CFCalendarGetTypeID(void); extern CFCalendarRef CFCalendarCopyCurrent(void); extern CFCalendarRef CFCalendarCreateWithIdentifier(CFAllocatorRef allocator, CFCalendarIdentifier identifier); extern CFCalendarIdentifier CFCalendarGetIdentifier(CFCalendarRef calendar); extern CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar); extern void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale); extern CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar); extern void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz); extern CFIndex CFCalendarGetFirstWeekday(CFCalendarRef calendar); extern void CFCalendarSetFirstWeekday(CFCalendarRef calendar, CFIndex wkdy); extern CFIndex CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar); extern void CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar, CFIndex mwd); typedef CFOptionFlags CFCalendarUnit; enum { kCFCalendarUnitEra = (1UL << 1), kCFCalendarUnitYear = (1UL << 2), kCFCalendarUnitMonth = (1UL << 3), kCFCalendarUnitDay = (1UL << 4), kCFCalendarUnitHour = (1UL << 5), kCFCalendarUnitMinute = (1UL << 6), kCFCalendarUnitSecond = (1UL << 7), kCFCalendarUnitWeek __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use kCFCalendarUnitWeekOfYear or kCFCalendarUnitWeekOfMonth instead"))) = (1UL << 8), kCFCalendarUnitWeekday = (1UL << 9), kCFCalendarUnitWeekdayOrdinal = (1UL << 10), kCFCalendarUnitQuarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 11), kCFCalendarUnitWeekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 12), kCFCalendarUnitWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 13), kCFCalendarUnitYearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 14), }; extern CFRange CFCalendarGetMinimumRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit); extern CFRange CFCalendarGetMaximumRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit); extern CFRange CFCalendarGetRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit smallerUnit, CFCalendarUnit biggerUnit, CFAbsoluteTime at); extern CFIndex CFCalendarGetOrdinalityOfUnit(CFCalendarRef calendar, CFCalendarUnit smallerUnit, CFCalendarUnit biggerUnit, CFAbsoluteTime at); extern Boolean CFCalendarGetTimeRangeOfUnit(CFCalendarRef calendar, CFCalendarUnit unit, CFAbsoluteTime at, CFAbsoluteTime *startp, CFTimeInterval *tip) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFCalendarComposeAbsoluteTime(CFCalendarRef calendar, CFAbsoluteTime *at, const char *componentDesc, ...); extern Boolean CFCalendarDecomposeAbsoluteTime(CFCalendarRef calendar, CFAbsoluteTime at, const char *componentDesc, ...); enum { kCFCalendarComponentsWrap = (1UL << 0) }; extern Boolean CFCalendarAddComponents(CFCalendarRef calendar, CFAbsoluteTime *at, CFOptionFlags options, const char *componentDesc, ...); extern Boolean CFCalendarGetComponentDifference(CFCalendarRef calendar, CFAbsoluteTime startingAT, CFAbsoluteTime resultAT, CFOptionFlags options, const char *componentDesc, ...); } extern "C" { typedef CFStringRef CFDateFormatterKey __attribute__((swift_wrapper(enum))); typedef struct __attribute__((objc_bridge_mutable(id))) __CFDateFormatter *CFDateFormatterRef; extern CFStringRef CFDateFormatterCreateDateFormatFromTemplate(CFAllocatorRef allocator, CFStringRef tmplate, CFOptionFlags options, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFTypeID CFDateFormatterGetTypeID(void); typedef CFIndex CFDateFormatterStyle; enum { kCFDateFormatterNoStyle = 0, kCFDateFormatterShortStyle = 1, kCFDateFormatterMediumStyle = 2, kCFDateFormatterLongStyle = 3, kCFDateFormatterFullStyle = 4 }; typedef CFOptionFlags CFISO8601DateFormatOptions; enum { kCFISO8601DateFormatWithYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 0), kCFISO8601DateFormatWithMonth __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 1), kCFISO8601DateFormatWithWeekOfYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 2), kCFISO8601DateFormatWithDay __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 4), kCFISO8601DateFormatWithTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 5), kCFISO8601DateFormatWithTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 6), kCFISO8601DateFormatWithSpaceBetweenDateAndTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 7), kCFISO8601DateFormatWithDashSeparatorInDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 8), kCFISO8601DateFormatWithColonSeparatorInTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 9), kCFISO8601DateFormatWithColonSeparatorInTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = (1UL << 10), kCFISO8601DateFormatWithFractionalSeconds __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = (1UL << 11), kCFISO8601DateFormatWithFullDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithYear | kCFISO8601DateFormatWithMonth | kCFISO8601DateFormatWithDay | kCFISO8601DateFormatWithDashSeparatorInDate, kCFISO8601DateFormatWithFullTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTime | kCFISO8601DateFormatWithColonSeparatorInTime | kCFISO8601DateFormatWithTimeZone | kCFISO8601DateFormatWithColonSeparatorInTimeZone, kCFISO8601DateFormatWithInternetDateTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullDate | kCFISO8601DateFormatWithFullTime, }; extern CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern CFDateFormatterRef CFDateFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, CFDateFormatterStyle dateStyle, CFDateFormatterStyle timeStyle); extern CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter); extern CFDateFormatterStyle CFDateFormatterGetDateStyle(CFDateFormatterRef formatter); extern CFDateFormatterStyle CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter); extern CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter); extern void CFDateFormatterSetFormat(CFDateFormatterRef formatter, CFStringRef formatString); extern CFStringRef CFDateFormatterCreateStringWithDate(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFDateRef date); extern CFStringRef CFDateFormatterCreateStringWithAbsoluteTime(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFAbsoluteTime at); extern CFDateRef CFDateFormatterCreateDateFromString(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFStringRef string, CFRange *rangep); extern Boolean CFDateFormatterGetAbsoluteTimeFromString(CFDateFormatterRef formatter, CFStringRef string, CFRange *rangep, CFAbsoluteTime *atp); extern void CFDateFormatterSetProperty(CFDateFormatterRef formatter, CFStringRef key, CFTypeRef value); extern CFTypeRef CFDateFormatterCopyProperty(CFDateFormatterRef formatter, CFDateFormatterKey key); extern const CFDateFormatterKey kCFDateFormatterIsLenient; extern const CFDateFormatterKey kCFDateFormatterTimeZone; extern const CFDateFormatterKey kCFDateFormatterCalendarName; extern const CFDateFormatterKey kCFDateFormatterDefaultFormat; extern const CFDateFormatterKey kCFDateFormatterTwoDigitStartDate; extern const CFDateFormatterKey kCFDateFormatterDefaultDate; extern const CFDateFormatterKey kCFDateFormatterCalendar; extern const CFDateFormatterKey kCFDateFormatterEraSymbols; extern const CFDateFormatterKey kCFDateFormatterMonthSymbols; extern const CFDateFormatterKey kCFDateFormatterShortMonthSymbols; extern const CFDateFormatterKey kCFDateFormatterWeekdaySymbols; extern const CFDateFormatterKey kCFDateFormatterShortWeekdaySymbols; extern const CFDateFormatterKey kCFDateFormatterAMSymbol; extern const CFDateFormatterKey kCFDateFormatterPMSymbol; extern const CFDateFormatterKey kCFDateFormatterLongEraSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterVeryShortMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterVeryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterVeryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterVeryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterShortQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterShortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterGregorianStartDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFDateFormatterKey kCFDateFormatterDoesRelativeDateFormattingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef CFStringRef CFErrorDomain __attribute__((swift_wrapper(struct))); typedef struct __attribute__((objc_bridge(NSError))) __CFError * CFErrorRef; extern CFTypeID CFErrorGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFErrorDomain kCFErrorDomainPOSIX __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFErrorDomain kCFErrorDomainOSStatus __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFErrorDomain kCFErrorDomainMach __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFErrorDomain kCFErrorDomainCocoa __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorLocalizedDescriptionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorLocalizedFailureKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kCFErrorLocalizedFailureReasonKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorLocalizedRecoverySuggestionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorDescriptionKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorUnderlyingErrorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorURLKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFErrorFilePathKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFErrorRef CFErrorCreate(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, CFDictionaryRef userInfo) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFErrorRef CFErrorCreateWithUserInfoKeysAndValues(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, const void *const *userInfoKeys, const void *const *userInfoValues, CFIndex numUserInfoValues) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFErrorDomain CFErrorGetDomain(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFErrorGetCode(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringRef CFErrorCopyDescription(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringRef CFErrorCopyFailureReason(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef const struct __attribute__((objc_bridge(NSNumber))) __CFBoolean * CFBooleanRef; extern const CFBooleanRef kCFBooleanTrue; extern const CFBooleanRef kCFBooleanFalse; extern CFTypeID CFBooleanGetTypeID(void); extern Boolean CFBooleanGetValue(CFBooleanRef boolean); typedef CFIndex CFNumberType; enum { kCFNumberSInt8Type = 1, kCFNumberSInt16Type = 2, kCFNumberSInt32Type = 3, kCFNumberSInt64Type = 4, kCFNumberFloat32Type = 5, kCFNumberFloat64Type = 6, kCFNumberCharType = 7, kCFNumberShortType = 8, kCFNumberIntType = 9, kCFNumberLongType = 10, kCFNumberLongLongType = 11, kCFNumberFloatType = 12, kCFNumberDoubleType = 13, kCFNumberCFIndexType = 14, kCFNumberNSIntegerType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15, kCFNumberCGFloatType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 16, kCFNumberMaxType = 16 }; typedef const struct __attribute__((objc_bridge(NSNumber))) __CFNumber * CFNumberRef; extern const CFNumberRef kCFNumberPositiveInfinity; extern const CFNumberRef kCFNumberNegativeInfinity; extern const CFNumberRef kCFNumberNaN; extern CFTypeID CFNumberGetTypeID(void); extern CFNumberRef CFNumberCreate(CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr); extern CFNumberType CFNumberGetType(CFNumberRef number); extern CFIndex CFNumberGetByteSize(CFNumberRef number); extern Boolean CFNumberIsFloatType(CFNumberRef number); extern Boolean CFNumberGetValue(CFNumberRef number, CFNumberType theType, void *valuePtr); extern CFComparisonResult CFNumberCompare(CFNumberRef number, CFNumberRef otherNumber, void *context); } extern "C" { typedef CFStringRef CFNumberFormatterKey __attribute__((swift_wrapper(enum))); typedef struct __attribute__((objc_bridge_mutable(id))) __CFNumberFormatter *CFNumberFormatterRef; extern CFTypeID CFNumberFormatterGetTypeID(void); typedef CFIndex CFNumberFormatterStyle; enum { kCFNumberFormatterNoStyle = 0, kCFNumberFormatterDecimalStyle = 1, kCFNumberFormatterCurrencyStyle = 2, kCFNumberFormatterPercentStyle = 3, kCFNumberFormatterScientificStyle = 4, kCFNumberFormatterSpellOutStyle = 5, kCFNumberFormatterOrdinalStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 6, kCFNumberFormatterCurrencyISOCodeStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 8, kCFNumberFormatterCurrencyPluralStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 9, kCFNumberFormatterCurrencyAccountingStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 10, }; extern CFNumberFormatterRef CFNumberFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, CFNumberFormatterStyle style); extern CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter); extern CFNumberFormatterStyle CFNumberFormatterGetStyle(CFNumberFormatterRef formatter); extern CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter); extern void CFNumberFormatterSetFormat(CFNumberFormatterRef formatter, CFStringRef formatString); extern CFStringRef CFNumberFormatterCreateStringWithNumber(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberRef number); extern CFStringRef CFNumberFormatterCreateStringWithValue(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberType numberType, const void *valuePtr); typedef CFOptionFlags CFNumberFormatterOptionFlags; enum { kCFNumberFormatterParseIntegersOnly = 1 }; extern CFNumberRef CFNumberFormatterCreateNumberFromString(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFOptionFlags options); extern Boolean CFNumberFormatterGetValueFromString(CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFNumberType numberType, void *valuePtr); extern void CFNumberFormatterSetProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key, CFTypeRef value); extern CFTypeRef CFNumberFormatterCopyProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key); extern const CFNumberFormatterKey kCFNumberFormatterCurrencyCode; extern const CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; extern const CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; extern const CFNumberFormatterKey kCFNumberFormatterAlwaysShowDecimalSeparator; extern const CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; extern const CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; extern const CFNumberFormatterKey kCFNumberFormatterPercentSymbol; extern const CFNumberFormatterKey kCFNumberFormatterZeroSymbol; extern const CFNumberFormatterKey kCFNumberFormatterNaNSymbol; extern const CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; extern const CFNumberFormatterKey kCFNumberFormatterMinusSign; extern const CFNumberFormatterKey kCFNumberFormatterPlusSign; extern const CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; extern const CFNumberFormatterKey kCFNumberFormatterExponentSymbol; extern const CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; extern const CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; extern const CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; extern const CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; extern const CFNumberFormatterKey kCFNumberFormatterGroupingSize; extern const CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; extern const CFNumberFormatterKey kCFNumberFormatterRoundingMode; extern const CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; extern const CFNumberFormatterKey kCFNumberFormatterFormatWidth; extern const CFNumberFormatterKey kCFNumberFormatterPaddingPosition; extern const CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; extern const CFNumberFormatterKey kCFNumberFormatterDefaultFormat; extern const CFNumberFormatterKey kCFNumberFormatterMultiplier; extern const CFNumberFormatterKey kCFNumberFormatterPositivePrefix; extern const CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; extern const CFNumberFormatterKey kCFNumberFormatterNegativePrefix; extern const CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; extern const CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; extern const CFNumberFormatterKey kCFNumberFormatterInternationalCurrencySymbol; extern const CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFNumberFormatterKey kCFNumberFormatterIsLenient __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFIndex CFNumberFormatterRoundingMode; enum { kCFNumberFormatterRoundCeiling = 0, kCFNumberFormatterRoundFloor = 1, kCFNumberFormatterRoundDown = 2, kCFNumberFormatterRoundUp = 3, kCFNumberFormatterRoundHalfEven = 4, kCFNumberFormatterRoundHalfDown = 5, kCFNumberFormatterRoundHalfUp = 6 }; typedef CFIndex CFNumberFormatterPadPosition; enum { kCFNumberFormatterPadBeforePrefix = 0, kCFNumberFormatterPadAfterPrefix = 1, kCFNumberFormatterPadBeforeSuffix = 2, kCFNumberFormatterPadAfterSuffix = 3 }; extern Boolean CFNumberFormatterGetDecimalInfoForCurrencyCode(CFStringRef currencyCode, int32_t *defaultFractionDigits, double *roundingIncrement); } #pragma clang assume_nonnull begin extern "C" { extern const CFStringRef kCFPreferencesAnyApplication; extern const CFStringRef kCFPreferencesCurrentApplication; extern const CFStringRef kCFPreferencesAnyHost; extern const CFStringRef kCFPreferencesCurrentHost; extern const CFStringRef kCFPreferencesAnyUser; extern const CFStringRef kCFPreferencesCurrentUser; extern _Nullable CFPropertyListRef CFPreferencesCopyAppValue(CFStringRef key, CFStringRef applicationID); extern Boolean CFPreferencesGetAppBooleanValue(CFStringRef key, CFStringRef applicationID, Boolean * _Nullable keyExistsAndHasValidFormat); extern CFIndex CFPreferencesGetAppIntegerValue(CFStringRef key, CFStringRef applicationID, Boolean * _Nullable keyExistsAndHasValidFormat); extern void CFPreferencesSetAppValue(CFStringRef key, _Nullable CFPropertyListRef value, CFStringRef applicationID); extern void CFPreferencesAddSuitePreferencesToApp(CFStringRef applicationID, CFStringRef suiteID); extern void CFPreferencesRemoveSuitePreferencesFromApp(CFStringRef applicationID, CFStringRef suiteID); extern Boolean CFPreferencesAppSynchronize(CFStringRef applicationID); extern _Nullable CFPropertyListRef CFPreferencesCopyValue(CFStringRef key, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern CFDictionaryRef CFPreferencesCopyMultiple(_Nullable CFArrayRef keysToFetch, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern void CFPreferencesSetValue(CFStringRef key, _Nullable CFPropertyListRef value, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern void CFPreferencesSetMultiple(_Nullable CFDictionaryRef keysToSet, _Nullable CFArrayRef keysToRemove, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern Boolean CFPreferencesSynchronize(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern _Nullable CFArrayRef CFPreferencesCopyApplicationList(CFStringRef userName, CFStringRef hostName) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Unsupported API"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Unsupported API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Unsupported API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Unsupported API"))); extern _Nullable CFArrayRef CFPreferencesCopyKeyList(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName); extern Boolean CFPreferencesAppValueIsForced(CFStringRef key, CFStringRef applicationID); } #pragma clang assume_nonnull end extern "C" { typedef CFIndex CFURLPathStyle; enum { kCFURLPOSIXPathStyle = 0, kCFURLHFSPathStyle __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Carbon File Manager is deprecated, use kCFURLPOSIXPathStyle where possible"))), kCFURLWindowsPathStyle }; typedef const struct __attribute__((objc_bridge(NSURL))) __CFURL * CFURLRef; extern CFTypeID CFURLGetTypeID(void); extern CFURLRef CFURLCreateWithBytes(CFAllocatorRef allocator, const UInt8 *URLBytes, CFIndex length, CFStringEncoding encoding, CFURLRef baseURL); extern CFDataRef CFURLCreateData(CFAllocatorRef allocator, CFURLRef url, CFStringEncoding encoding, Boolean escapeWhitespace); extern CFURLRef CFURLCreateWithString(CFAllocatorRef allocator, CFStringRef URLString, CFURLRef baseURL); extern CFURLRef CFURLCreateAbsoluteURLWithBytes(CFAllocatorRef alloc, const UInt8 *relativeURLBytes, CFIndex length, CFStringEncoding encoding, CFURLRef baseURL, Boolean useCompatibilityMode); extern CFURLRef CFURLCreateWithFileSystemPath(CFAllocatorRef allocator, CFStringRef filePath, CFURLPathStyle pathStyle, Boolean isDirectory); extern CFURLRef CFURLCreateFromFileSystemRepresentation(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirectory); extern CFURLRef CFURLCreateWithFileSystemPathRelativeToBase(CFAllocatorRef allocator, CFStringRef filePath, CFURLPathStyle pathStyle, Boolean isDirectory, CFURLRef baseURL); extern CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirectory, CFURLRef baseURL); extern Boolean CFURLGetFileSystemRepresentation(CFURLRef url, Boolean resolveAgainstBase, UInt8 *buffer, CFIndex maxBufLen); extern CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL); extern CFStringRef CFURLGetString(CFURLRef anURL); extern CFURLRef CFURLGetBaseURL(CFURLRef anURL); extern Boolean CFURLCanBeDecomposed(CFURLRef anURL); extern CFStringRef CFURLCopyScheme(CFURLRef anURL); extern CFStringRef CFURLCopyNetLocation(CFURLRef anURL); extern CFStringRef CFURLCopyPath(CFURLRef anURL); extern CFStringRef CFURLCopyStrictPath(CFURLRef anURL, Boolean *isAbsolute); extern CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, CFURLPathStyle pathStyle); extern Boolean CFURLHasDirectoryPath(CFURLRef anURL); extern CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL); extern CFStringRef CFURLCopyHostName(CFURLRef anURL); extern SInt32 CFURLGetPortNumber(CFURLRef anURL); extern CFStringRef CFURLCopyUserName(CFURLRef anURL); extern CFStringRef CFURLCopyPassword(CFURLRef anURL); extern CFStringRef CFURLCopyParameterString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped) __attribute__((availability(macosx,introduced=10.2,deprecated=10.15,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="The CFURLCopyParameterString function is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, CFURLCopyParameterString will always return NULL, and the CFURLCopyPath(), CFURLCopyStrictPath(), and CFURLCopyFileSystemPath() functions will return the complete path including the semicolon separator and params component if the URL string contains them."))); extern CFStringRef CFURLCopyQueryString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped); extern CFStringRef CFURLCopyFragment(CFURLRef anURL, CFStringRef charactersToLeaveEscaped); extern CFStringRef CFURLCopyLastPathComponent(CFURLRef url); extern CFStringRef CFURLCopyPathExtension(CFURLRef url); extern CFURLRef CFURLCreateCopyAppendingPathComponent(CFAllocatorRef allocator, CFURLRef url, CFStringRef pathComponent, Boolean isDirectory); extern CFURLRef CFURLCreateCopyDeletingLastPathComponent(CFAllocatorRef allocator, CFURLRef url); extern CFURLRef CFURLCreateCopyAppendingPathExtension(CFAllocatorRef allocator, CFURLRef url, CFStringRef extension); extern CFURLRef CFURLCreateCopyDeletingPathExtension(CFAllocatorRef allocator, CFURLRef url); extern CFIndex CFURLGetBytes(CFURLRef url, UInt8 *buffer, CFIndex bufferLength); typedef CFIndex CFURLComponentType; enum { kCFURLComponentScheme = 1, kCFURLComponentNetLocation = 2, kCFURLComponentPath = 3, kCFURLComponentResourceSpecifier = 4, kCFURLComponentUser = 5, kCFURLComponentPassword = 6, kCFURLComponentUserInfo = 7, kCFURLComponentHost = 8, kCFURLComponentPort = 9, kCFURLComponentParameterString = 10, kCFURLComponentQuery = 11, kCFURLComponentFragment = 12 }; extern CFRange CFURLGetByteRangeForComponent(CFURLRef url, CFURLComponentType component, CFRange *rangeIncludingSeparators); extern CFStringRef CFURLCreateStringByReplacingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveEscaped); extern CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding(CFAllocatorRef allocator, CFStringRef origString, CFStringRef charsToLeaveEscaped, CFStringEncoding encoding) __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSString stringByRemovingPercentEncoding] or CFURLCreateStringByReplacingPercentEscapes() instead, which always uses the recommended UTF-8 encoding."))); extern CFStringRef CFURLCreateStringByAddingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveUnescaped, CFStringRef legalURLCharactersToBeEscaped, CFStringEncoding encoding) __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid)."))); extern Boolean CFURLIsFileReferenceURL(CFURLRef url) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFURLRef CFURLCreateFileReferenceURL(CFAllocatorRef allocator, CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFURLRef CFURLCreateFilePathURL(CFAllocatorRef allocator, CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); struct FSRef; extern CFURLRef CFURLCreateFromFSRef(CFAllocatorRef allocator, const struct FSRef *fsRef) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); extern Boolean CFURLGetFSRef(CFURLRef url, struct FSRef *fsRef) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); extern Boolean CFURLCopyResourcePropertyForKey(CFURLRef url, CFStringRef key, void *propertyValueTypeRefPtr, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDictionaryRef CFURLCopyResourcePropertiesForKeys(CFURLRef url, CFArrayRef keys, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFURLSetResourcePropertyForKey(CFURLRef url, CFStringRef key, CFTypeRef propertyValue, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFURLSetResourcePropertiesForKeys(CFURLRef url, CFDictionaryRef keyedPropertyValues, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLKeysOfUnsetValuesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFURLClearResourcePropertyCacheForKey(CFURLRef url, CFStringRef key) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFURLClearResourcePropertyCache(CFURLRef url) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFURLSetTemporaryResourcePropertyForKey(CFURLRef url, CFStringRef key, CFTypeRef propertyValue) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFURLResourceIsReachable(CFURLRef url, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLLocalizedNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsRegularFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsDirectoryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsSymbolicLinkKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsVolumeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsPackageKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsApplicationKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLApplicationIsScriptableKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFURLIsSystemImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsUserImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsHiddenKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLHasHiddenExtensionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLCreationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLContentAccessDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLContentModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLAttributeModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileContentIdentifierKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLMayShareFileContentKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLMayHaveExtendedAttributesKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLIsPurgeableKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLIsSparseKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLLinkCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLParentDirectoryURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLTypeIdentifierKey __attribute__((availability(macos,introduced=10.6,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))); extern const CFStringRef kCFURLLocalizedTypeDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLLabelNumberKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLLabelColorKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLLabelColorKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLLabelColorKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLLabelColorKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLLabelColorKey"))); extern const CFStringRef kCFURLLocalizedLabelKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLEffectiveIconKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLEffectiveIconKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLEffectiveIconKey"))); extern const CFStringRef kCFURLCustomIconKey __attribute__((availability(macosx,introduced=10.6,deprecated=10.12,message="Use NSURLCustomIconKey"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use NSURLCustomIconKey"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use NSURLCustomIconKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use NSURLCustomIconKey"))); extern const CFStringRef kCFURLFileResourceIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLPreferredIOBlockSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsReadableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsWritableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsExecutableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsExcludedFromBackupKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.1))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLTagNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFURLPathKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLCanonicalPathKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLIsMountTriggerKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLGenerationIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLDocumentIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLAddedToDirectoryDateKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLQuarantinePropertiesKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFURLFileResourceTypeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeNamedPipe __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeCharacterSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeBlockSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeRegular __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeSymbolicLink __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeSocket __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileResourceTypeUnknown __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLTotalFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLTotalFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLIsAliasFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLFileProtectionKey __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern const CFStringRef kCFURLFileProtectionNone __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern const CFStringRef kCFURLFileProtectionComplete __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern const CFStringRef kCFURLFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern const CFStringRef kCFURLFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern const CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeTotalCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeAvailableCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFURLVolumeAvailableCapacityForOpportunisticUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFURLVolumeResourceCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsPersistentIDsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsSymbolicLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsHardLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsSparseFilesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsZeroRunsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsVolumeSizesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsRenamingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeSupportsExtendedSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsBrowsableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeMaximumFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsEjectableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsRemovableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsInternalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsAutomountedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsLocalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsReadOnlyKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeURLForRemountingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeUUIDStringKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeLocalizedNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLVolumeIsEncryptedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeIsRootFileSystemKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeSupportsCompressionKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeSupportsFileCloningKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeSupportsSwapRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern const CFStringRef kCFURLVolumeSupportsImmutableFilesKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kCFURLVolumeSupportsAccessPermissionsKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kCFURLVolumeSupportsFileProtectionKey __attribute__((availability(macosx,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern const CFStringRef kCFURLIsUbiquitousItemKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use kCFURLUbiquitousItemDownloadingStatusKey instead"))); extern const CFStringRef kCFURLUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentDownloadedKey on NSMetadataItem instead"))); extern const CFStringRef kCFURLUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead"))); extern const CFStringRef kCFURLUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern const CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFOptionFlags CFURLBookmarkCreationOptions; enum { kCFURLBookmarkCreationMinimalBookmarkMask = ( 1UL << 9 ), kCFURLBookmarkCreationSuitableForBookmarkFile = ( 1UL << 10 ), kCFURLBookmarkCreationWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 11 ), kCFURLBookmarkCreationSecurityScopeAllowOnlyReadAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 12 ), kCFURLBookmarkCreationPreferFileIDResolutionMask __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="kCFURLBookmarkCreationPreferFileIDResolutionMask does nothing and has no effect on bookmark resolution"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="kCFURLBookmarkCreationPreferFileIDResolutionMask does nothing and has no effect on bookmark resolution"))) = ( 1UL << 8 ), } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFOptionFlags CFURLBookmarkResolutionOptions; enum { kCFURLBookmarkResolutionWithoutUIMask = ( 1UL << 8 ), kCFURLBookmarkResolutionWithoutMountingMask = ( 1UL << 9 ), kCFURLBookmarkResolutionWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1UL << 10 ), kCFBookmarkResolutionWithoutUIMask = kCFURLBookmarkResolutionWithoutUIMask, kCFBookmarkResolutionWithoutMountingMask = kCFURLBookmarkResolutionWithoutMountingMask, } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFOptionFlags CFURLBookmarkFileCreationOptions; extern CFDataRef CFURLCreateBookmarkData ( CFAllocatorRef allocator, CFURLRef url, CFURLBookmarkCreationOptions options, CFArrayRef resourcePropertiesToInclude, CFURLRef relativeToURL, CFErrorRef* error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFURLRef CFURLCreateByResolvingBookmarkData ( CFAllocatorRef allocator, CFDataRef bookmark, CFURLBookmarkResolutionOptions options, CFURLRef relativeToURL, CFArrayRef resourcePropertiesToInclude, Boolean* isStale, CFErrorRef* error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData ( CFAllocatorRef allocator, CFArrayRef resourcePropertiesToReturn, CFDataRef bookmark ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFTypeRef CFURLCreateResourcePropertyForKeyFromBookmarkData( CFAllocatorRef allocator, CFStringRef resourcePropertyKey, CFDataRef bookmark ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDataRef CFURLCreateBookmarkDataFromFile(CFAllocatorRef allocator, CFURLRef fileURL, CFErrorRef *errorRef ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFURLWriteBookmarkDataToFile( CFDataRef bookmarkRef, CFURLRef fileURL, CFURLBookmarkFileCreationOptions options, CFErrorRef *errorRef ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDataRef CFURLCreateBookmarkDataFromAliasRecord ( CFAllocatorRef allocatorRef, CFDataRef aliasRecordDataRef ) __attribute__((availability(macos,introduced=10.6,deprecated=11.0,message="The Carbon Alias Manager is deprecated. This function should only be used to convert Carbon AliasRecords to bookmark data."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern Boolean CFURLStartAccessingSecurityScopedResource(CFURLRef url) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFURLStopAccessingSecurityScopedResource(CFURLRef url) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } typedef unsigned int boolean_t; typedef __darwin_natural_t natural_t; typedef int integer_t; typedef uintptr_t vm_offset_t; typedef uintptr_t vm_size_t; typedef uint64_t mach_vm_address_t; typedef uint64_t mach_vm_offset_t; typedef uint64_t mach_vm_size_t; typedef uint64_t vm_map_offset_t; typedef uint64_t vm_map_address_t; typedef uint64_t vm_map_size_t; typedef mach_vm_address_t mach_port_context_t; typedef natural_t mach_port_name_t; typedef mach_port_name_t *mach_port_name_array_t; typedef __darwin_mach_port_t mach_port_t; typedef mach_port_t *mach_port_array_t; typedef natural_t mach_port_right_t; typedef natural_t mach_port_type_t; typedef mach_port_type_t *mach_port_type_array_t; typedef natural_t mach_port_urefs_t; typedef integer_t mach_port_delta_t; typedef natural_t mach_port_seqno_t; typedef natural_t mach_port_mscount_t; typedef natural_t mach_port_msgcount_t; typedef natural_t mach_port_rights_t; typedef unsigned int mach_port_srights_t; typedef struct mach_port_status { mach_port_rights_t mps_pset; mach_port_seqno_t mps_seqno; mach_port_mscount_t mps_mscount; mach_port_msgcount_t mps_qlimit; mach_port_msgcount_t mps_msgcount; mach_port_rights_t mps_sorights; boolean_t mps_srights; boolean_t mps_pdrequest; boolean_t mps_nsrequest; natural_t mps_flags; } mach_port_status_t; typedef struct mach_port_limits { mach_port_msgcount_t mpl_qlimit; } mach_port_limits_t; typedef struct mach_port_info_ext { mach_port_status_t mpie_status; mach_port_msgcount_t mpie_boost_cnt; uint32_t reserved[6]; } mach_port_info_ext_t; typedef integer_t *mach_port_info_t; typedef int mach_port_flavor_t; typedef struct mach_port_qos { unsigned int name:1; unsigned int prealloc:1; boolean_t pad1:30; natural_t len; } mach_port_qos_t; typedef struct mach_port_options { uint32_t flags; mach_port_limits_t mpl; union { uint64_t reserved[2]; mach_port_name_t work_interval_port; }; }mach_port_options_t; typedef mach_port_options_t *mach_port_options_ptr_t; enum mach_port_guard_exception_codes { kGUARD_EXC_DESTROY = 1u << 0, kGUARD_EXC_MOD_REFS = 1u << 1, kGUARD_EXC_SET_CONTEXT = 1u << 2, kGUARD_EXC_UNGUARDED = 1u << 3, kGUARD_EXC_INCORRECT_GUARD = 1u << 4, kGUARD_EXC_IMMOVABLE = 1u << 5, kGUARD_EXC_STRICT_REPLY = 1u << 6, kGUARD_EXC_MSG_FILTERED = 1u << 7, kGUARD_EXC_INVALID_RIGHT = 1u << 8, kGUARD_EXC_INVALID_NAME = 1u << 9, kGUARD_EXC_INVALID_VALUE = 1u << 10, kGUARD_EXC_INVALID_ARGUMENT = 1u << 11, kGUARD_EXC_RIGHT_EXISTS = 1u << 12, kGUARD_EXC_KERN_NO_SPACE = 1u << 13, kGUARD_EXC_KERN_FAILURE = 1u << 14, kGUARD_EXC_KERN_RESOURCE = 1u << 15, kGUARD_EXC_SEND_INVALID_REPLY = 1u << 16, kGUARD_EXC_SEND_INVALID_VOUCHER = 1u << 17, kGUARD_EXC_SEND_INVALID_RIGHT = 1u << 18, kGUARD_EXC_RCV_INVALID_NAME = 1u << 19, kGUARD_EXC_RCV_GUARDED_DESC = 1u << 20, }; extern "C" { typedef CFStringRef CFRunLoopMode __attribute__((swift_wrapper(struct))); typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoop * CFRunLoopRef; typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoopSource * CFRunLoopSourceRef; typedef struct __attribute__((objc_bridge_mutable(id))) __CFRunLoopObserver * CFRunLoopObserverRef; typedef struct __attribute__((objc_bridge_mutable(NSTimer))) __CFRunLoopTimer * CFRunLoopTimerRef; typedef SInt32 CFRunLoopRunResult; enum { kCFRunLoopRunFinished = 1, kCFRunLoopRunStopped = 2, kCFRunLoopRunTimedOut = 3, kCFRunLoopRunHandledSource = 4 }; typedef CFOptionFlags CFRunLoopActivity; enum { kCFRunLoopEntry = (1UL << 0), kCFRunLoopBeforeTimers = (1UL << 1), kCFRunLoopBeforeSources = (1UL << 2), kCFRunLoopBeforeWaiting = (1UL << 5), kCFRunLoopAfterWaiting = (1UL << 6), kCFRunLoopExit = (1UL << 7), kCFRunLoopAllActivities = 0x0FFFFFFFU }; extern const CFRunLoopMode kCFRunLoopDefaultMode; extern const CFRunLoopMode kCFRunLoopCommonModes; extern CFTypeID CFRunLoopGetTypeID(void); extern CFRunLoopRef CFRunLoopGetCurrent(void); extern CFRunLoopRef CFRunLoopGetMain(void); extern CFRunLoopMode CFRunLoopCopyCurrentMode(CFRunLoopRef rl); extern CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl); extern void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFRunLoopMode mode); extern CFAbsoluteTime CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFRunLoopMode mode); extern void CFRunLoopRun(void); extern CFRunLoopRunResult CFRunLoopRunInMode(CFRunLoopMode mode, CFTimeInterval seconds, Boolean returnAfterSourceHandled); extern Boolean CFRunLoopIsWaiting(CFRunLoopRef rl); extern void CFRunLoopWakeUp(CFRunLoopRef rl); extern void CFRunLoopStop(CFRunLoopRef rl); extern void CFRunLoopPerformBlock(CFRunLoopRef rl, CFTypeRef mode, void (*block)(void)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFRunLoopContainsSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode); extern void CFRunLoopAddSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode); extern void CFRunLoopRemoveSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode); extern Boolean CFRunLoopContainsObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode); extern void CFRunLoopAddObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode); extern void CFRunLoopRemoveObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode); extern Boolean CFRunLoopContainsTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode); extern void CFRunLoopAddTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode); extern void CFRunLoopRemoveTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode); typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); Boolean (*equal)(const void *info1, const void *info2); CFHashCode (*hash)(const void *info); void (*schedule)(void *info, CFRunLoopRef rl, CFRunLoopMode mode); void (*cancel)(void *info, CFRunLoopRef rl, CFRunLoopMode mode); void (*perform)(void *info); } CFRunLoopSourceContext; typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); Boolean (*equal)(const void *info1, const void *info2); CFHashCode (*hash)(const void *info); mach_port_t (*getPort)(void *info); void * (*perform)(void *msg, CFIndex size, CFAllocatorRef allocator, void *info); } CFRunLoopSourceContext1; extern CFTypeID CFRunLoopSourceGetTypeID(void); extern CFRunLoopSourceRef CFRunLoopSourceCreate(CFAllocatorRef allocator, CFIndex order, CFRunLoopSourceContext *context); extern CFIndex CFRunLoopSourceGetOrder(CFRunLoopSourceRef source); extern void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source); extern Boolean CFRunLoopSourceIsValid(CFRunLoopSourceRef source); extern void CFRunLoopSourceGetContext(CFRunLoopSourceRef source, CFRunLoopSourceContext *context); extern void CFRunLoopSourceSignal(CFRunLoopSourceRef source); typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFRunLoopObserverContext; typedef void (*CFRunLoopObserverCallBack)(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info); extern CFTypeID CFRunLoopObserverGetTypeID(void); extern CFRunLoopObserverRef CFRunLoopObserverCreate(CFAllocatorRef allocator, CFOptionFlags activities, Boolean repeats, CFIndex order, CFRunLoopObserverCallBack callout, CFRunLoopObserverContext *context); extern CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler(CFAllocatorRef allocator, CFOptionFlags activities, Boolean repeats, CFIndex order, void (*block) (CFRunLoopObserverRef observer, CFRunLoopActivity activity)) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFOptionFlags CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer); extern Boolean CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer); extern CFIndex CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer); extern void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer); extern Boolean CFRunLoopObserverIsValid(CFRunLoopObserverRef observer); extern void CFRunLoopObserverGetContext(CFRunLoopObserverRef observer, CFRunLoopObserverContext *context); typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFRunLoopTimerContext; typedef void (*CFRunLoopTimerCallBack)(CFRunLoopTimerRef timer, void *info); extern CFTypeID CFRunLoopTimerGetTypeID(void); extern CFRunLoopTimerRef CFRunLoopTimerCreate(CFAllocatorRef allocator, CFAbsoluteTime fireDate, CFTimeInterval interval, CFOptionFlags flags, CFIndex order, CFRunLoopTimerCallBack callout, CFRunLoopTimerContext *context); extern CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler(CFAllocatorRef allocator, CFAbsoluteTime fireDate, CFTimeInterval interval, CFOptionFlags flags, CFIndex order, void (*block) (CFRunLoopTimerRef timer)) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFAbsoluteTime CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer); extern void CFRunLoopTimerSetNextFireDate(CFRunLoopTimerRef timer, CFAbsoluteTime fireDate); extern CFTimeInterval CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer); extern Boolean CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer); extern CFIndex CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer); extern void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer); extern Boolean CFRunLoopTimerIsValid(CFRunLoopTimerRef timer); extern void CFRunLoopTimerGetContext(CFRunLoopTimerRef timer, CFRunLoopTimerContext *context); extern CFTimeInterval CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef timer, CFTimeInterval tolerance) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(id))) __CFSocket * CFSocketRef; typedef CFIndex CFSocketError; enum { kCFSocketSuccess = 0, kCFSocketError = -1L, kCFSocketTimeout = -2L }; typedef struct { SInt32 protocolFamily; SInt32 socketType; SInt32 protocol; CFDataRef address; } CFSocketSignature; typedef CFOptionFlags CFSocketCallBackType; enum { kCFSocketNoCallBack = 0, kCFSocketReadCallBack = 1, kCFSocketAcceptCallBack = 2, kCFSocketDataCallBack = 3, kCFSocketConnectCallBack = 4, kCFSocketWriteCallBack = 8 }; enum { kCFSocketAutomaticallyReenableReadCallBack = 1, kCFSocketAutomaticallyReenableAcceptCallBack = 2, kCFSocketAutomaticallyReenableDataCallBack = 3, kCFSocketAutomaticallyReenableWriteCallBack = 8, kCFSocketLeaveErrors __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 64, kCFSocketCloseOnInvalidate = 128 }; typedef void (*CFSocketCallBack)(CFSocketRef s, CFSocketCallBackType type, CFDataRef address, const void *data, void *info); typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFSocketContext; typedef int CFSocketNativeHandle; extern CFTypeID CFSocketGetTypeID(void); extern CFSocketRef CFSocketCreate(CFAllocatorRef allocator, SInt32 protocolFamily, SInt32 socketType, SInt32 protocol, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context); extern CFSocketRef CFSocketCreateWithNative(CFAllocatorRef allocator, CFSocketNativeHandle sock, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context); extern CFSocketRef CFSocketCreateWithSocketSignature(CFAllocatorRef allocator, const CFSocketSignature *signature, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context); extern CFSocketRef CFSocketCreateConnectedToSocketSignature(CFAllocatorRef allocator, const CFSocketSignature *signature, CFOptionFlags callBackTypes, CFSocketCallBack callout, const CFSocketContext *context, CFTimeInterval timeout); extern CFSocketError CFSocketSetAddress(CFSocketRef s, CFDataRef address); extern CFSocketError CFSocketConnectToAddress(CFSocketRef s, CFDataRef address, CFTimeInterval timeout); extern void CFSocketInvalidate(CFSocketRef s); extern Boolean CFSocketIsValid(CFSocketRef s); extern CFDataRef CFSocketCopyAddress(CFSocketRef s); extern CFDataRef CFSocketCopyPeerAddress(CFSocketRef s); extern void CFSocketGetContext(CFSocketRef s, CFSocketContext *context); extern CFSocketNativeHandle CFSocketGetNative(CFSocketRef s); extern CFRunLoopSourceRef CFSocketCreateRunLoopSource(CFAllocatorRef allocator, CFSocketRef s, CFIndex order); extern CFOptionFlags CFSocketGetSocketFlags(CFSocketRef s); extern void CFSocketSetSocketFlags(CFSocketRef s, CFOptionFlags flags); extern void CFSocketDisableCallBacks(CFSocketRef s, CFOptionFlags callBackTypes); extern void CFSocketEnableCallBacks(CFSocketRef s, CFOptionFlags callBackTypes); extern CFSocketError CFSocketSendData(CFSocketRef s, CFDataRef address, CFDataRef data, CFTimeInterval timeout); extern CFSocketError CFSocketRegisterValue(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFPropertyListRef value); extern CFSocketError CFSocketCopyRegisteredValue(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFPropertyListRef *value, CFDataRef *nameServerAddress); extern CFSocketError CFSocketRegisterSocketSignature(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, const CFSocketSignature *signature); extern CFSocketError CFSocketCopyRegisteredSocketSignature(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name, CFSocketSignature *signature, CFDataRef *nameServerAddress); extern CFSocketError CFSocketUnregister(const CFSocketSignature *nameServerSignature, CFTimeInterval timeout, CFStringRef name); extern void CFSocketSetDefaultNameRegistryPortNumber(UInt16 port); extern UInt16 CFSocketGetDefaultNameRegistryPortNumber(void); extern const CFStringRef kCFSocketCommandKey; extern const CFStringRef kCFSocketNameKey; extern const CFStringRef kCFSocketValueKey; extern const CFStringRef kCFSocketResultKey; extern const CFStringRef kCFSocketErrorKey; extern const CFStringRef kCFSocketRegisterCommand; extern const CFStringRef kCFSocketRetrieveCommand; } typedef void (*os_function_t)(void *_Nullable); typedef void (*os_block_t)(void); struct accessx_descriptor { unsigned int ad_name_offset; int ad_flags; int ad_pad[2]; }; extern "C" { int getattrlistbulk(int, void *, void *, size_t, uint64_t) __attribute__((availability(ios,introduced=8.0))); int getattrlistat(int, const char *, void *, void *, size_t, unsigned long) __attribute__((availability(ios,introduced=8.0))); int setattrlistat(int, const char *, void *, void *, size_t, uint32_t) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); } extern "C" { int faccessat(int, const char *, int, int) __attribute__((availability(ios,introduced=8.0))); int fchownat(int, const char *, uid_t, gid_t, int) __attribute__((availability(ios,introduced=8.0))); int linkat(int, const char *, int, const char *, int) __attribute__((availability(ios,introduced=8.0))); ssize_t readlinkat(int, const char *, char *, size_t) __attribute__((availability(ios,introduced=8.0))); int symlinkat(const char *, int, const char *) __attribute__((availability(ios,introduced=8.0))); int unlinkat(int, const char *, int) __attribute__((availability(ios,introduced=8.0))); } extern "C" { void _exit(int) __attribute__((__noreturn__)); int access(const char *, int); unsigned int alarm(unsigned int); int chdir(const char *); int chown(const char *, uid_t, gid_t); int close(int) __asm("_" "close" ); int dup(int); int dup2(int, int); int execl(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execle(const char * __path, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execlp(const char * __file, const char * __arg0, ...) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execv(const char * __path, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execve(const char * __file, char * const * __argv, char * const * __envp) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int execvp(const char * __file, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); pid_t fork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); long fpathconf(int, int); char *getcwd(char *, size_t); gid_t getegid(void); uid_t geteuid(void); gid_t getgid(void); int getgroups(int, gid_t []); char *getlogin(void); pid_t getpgrp(void); pid_t getpid(void); pid_t getppid(void); uid_t getuid(void); int isatty(int); int link(const char *, const char *); off_t lseek(int, off_t, int); long pathconf(const char *, int); int pause(void) __asm("_" "pause" ); int pipe(int [2]); ssize_t read(int, void *, size_t) __asm("_" "read" ); int rmdir(const char *); int setgid(gid_t); int setpgid(pid_t, pid_t); pid_t setsid(void); int setuid(uid_t); unsigned int sleep(unsigned int) __asm("_" "sleep" ); long sysconf(int); pid_t tcgetpgrp(int); int tcsetpgrp(int, pid_t); char *ttyname(int); int ttyname_r(int, char *, size_t) __asm("_" "ttyname_r" ); int unlink(const char *); ssize_t write(int __fd, const void * __buf, size_t __nbyte) __asm("_" "write" ); } extern "C" { size_t confstr(int, char *, size_t) __asm("_" "confstr" ); int getopt(int, char * const [], const char *) __asm("_" "getopt" ); extern char *optarg; extern int optind, opterr, optopt; } extern "C" { __attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) void *brk(const void *); int chroot(const char *) ; char *crypt(const char *, const char *); void encrypt(char *, int) __asm("_" "encrypt" ); int fchdir(int); long gethostid(void); pid_t getpgid(pid_t); pid_t getsid(pid_t); int getdtablesize(void) ; int getpagesize(void) __attribute__((__const__)) ; char *getpass(const char *) ; char *getwd(char *) ; int lchown(const char *, uid_t, gid_t) __asm("_" "lchown" ); int lockf(int, int, off_t) __asm("_" "lockf" ); int nice(int) __asm("_" "nice" ); ssize_t pread(int __fd, void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pread" ); ssize_t pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __asm("_" "pwrite" ); __attribute__((__deprecated__)) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) void *sbrk(int); pid_t setpgrp(void) __asm("_" "setpgrp" ); int setregid(gid_t, gid_t) __asm("_" "setregid" ); int setreuid(uid_t, uid_t) __asm("_" "setreuid" ); void swab(const void * , void * , ssize_t); void sync(void); int truncate(const char *, off_t); useconds_t ualarm(useconds_t, useconds_t); int usleep(useconds_t) __asm("_" "usleep" ); pid_t vfork(void) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int fsync(int) __asm("_" "fsync" ); int ftruncate(int, off_t); int getlogin_r(char *, size_t); } extern "C" { int fchown(int, uid_t, gid_t); int gethostname(char *, size_t); ssize_t readlink(const char * , char * , size_t); int setegid(gid_t); int seteuid(uid_t); int symlink(const char *, const char *); } extern "C" { int pselect(int, fd_set * , fd_set * , fd_set * , const struct timespec * , const sigset_t * ) __asm("_" "pselect" ) ; int select(int, fd_set * , fd_set * , fd_set * , struct timeval * ) __asm("_" "select" ) ; } typedef __darwin_uuid_t uuid_t; extern "C" { void _Exit(int) __attribute__((__noreturn__)); int accessx_np(const struct accessx_descriptor *, size_t, int *, uid_t); int acct(const char *); int add_profil(char *, size_t, unsigned long, unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); void endusershell(void); int execvP(const char * __file, const char * __searchpath, char * const * __argv) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); char *fflagstostr(unsigned long); int getdomainname(char *, int); int getgrouplist(const char *, int, int *, int *); int gethostuuid(uuid_t, const struct timespec *) __attribute__((availability(ios,unavailable))); mode_t getmode(const void *, mode_t); int getpeereid(int, uid_t *, gid_t *); int getsgroups_np(int *, uuid_t); char *getusershell(void); int getwgroups_np(int *, uuid_t); int initgroups(const char *, int); int issetugid(void); char *mkdtemp(char *); int mknod(const char *, mode_t, dev_t); int mkpath_np(const char *path, mode_t omode) __attribute__((availability(ios,introduced=5.0))); int mkpathat_np(int dfd, const char *path, mode_t omode) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkstemp(char *); int mkstemps(char *, int); char *mktemp(char *); int mkostemp(char *path, int oflags) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkostemps(char *path, int slen, int oflags) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); int mkstemp_dprotected_np(char *path, int dpclass, int dpflags) __attribute__((availability(macosx,unavailable))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); char *mkdtempat_np(int dfd, char *path) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); int mkstempsat_np(int dfd, char *path, int slen) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); int mkostempsat_np(int dfd, char *path, int slen, int oflags) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); int nfssvc(int, void *); int profil(char *, size_t, unsigned long, unsigned int); __attribute__((__deprecated__("Use of per-thread security contexts is error-prone and discouraged."))) int pthread_setugid_np(uid_t, gid_t); int pthread_getugid_np( uid_t *, gid_t *); int reboot(int); int revoke(const char *); __attribute__((__deprecated__)) int rcmd(char **, int, const char *, const char *, const char *, int *); __attribute__((__deprecated__)) int rcmd_af(char **, int, const char *, const char *, const char *, int *, int); __attribute__((__deprecated__)) int rresvport(int *); __attribute__((__deprecated__)) int rresvport_af(int *, int); __attribute__((__deprecated__)) int iruserok(unsigned long, int, const char *, const char *); __attribute__((__deprecated__)) int iruserok_sa(const void *, int, int, const char *, const char *); __attribute__((__deprecated__)) int ruserok(const char *, int, const char *, const char *); int setdomainname(const char *, int); int setgroups(int, const gid_t *); void sethostid(long); int sethostname(const char *, int); void setkey(const char *) __asm("_" "setkey" ); int setlogin(const char *); void *setmode(const char *) __asm("_" "setmode" ); int setrgid(gid_t); int setruid(uid_t); int setsgroups_np(int, const uuid_t); void setusershell(void); int setwgroups_np(int, const uuid_t); int strtofflags(char **, unsigned long *, unsigned long *); int swapon(const char *); int ttyslot(void); int undelete(const char *); int unwhiteout(const char *); void *valloc(size_t); __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,deprecated=10.0,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost()."))) __attribute__((availability(macosx,deprecated=10.12,message="syscall(2) is unsupported; " "please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost()."))) int syscall(int, ...); extern char *suboptarg; int getsubopt(char **, char * const *, char **); int fgetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(ios,introduced=3.0))); int fsetattrlist(int,void*,void*,size_t,unsigned int) __attribute__((availability(ios,introduced=3.0))); int getattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "getattrlist" ); int setattrlist(const char*,void*,void*,size_t,unsigned int) __asm("_" "setattrlist" ); int exchangedata(const char*,const char*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); struct fssearchblock; struct searchstate; int searchfs(const char *, struct fssearchblock *, unsigned long *, unsigned int, unsigned int, struct searchstate *) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); int fsctl(const char *,unsigned long,void*,unsigned int); int ffsctl(int,unsigned long,void*,unsigned int) __attribute__((availability(ios,introduced=3.0))); int fsync_volume_np(int, int) __attribute__((availability(ios,introduced=6.0))); int sync_volume_np(const char *, int) __attribute__((availability(ios,introduced=6.0))); extern int optreset; } struct flock { off_t l_start; off_t l_len; pid_t l_pid; short l_type; short l_whence; }; struct flocktimeout { struct flock fl; struct timespec timeout; }; struct radvisory { off_t ra_offset; int ra_count; }; typedef struct fsignatures { off_t fs_file_start; void *fs_blob_start; size_t fs_blob_size; size_t fs_fsignatures_size; char fs_cdhash[20]; int fs_hash_type; } fsignatures_t; typedef struct fsupplement { off_t fs_file_start; off_t fs_blob_start; size_t fs_blob_size; int fs_orig_fd; } fsupplement_t; typedef struct fchecklv { off_t lv_file_start; size_t lv_error_message_size; void *lv_error_message; } fchecklv_t; typedef struct fgetsigsinfo { off_t fg_file_start; int fg_info_request; int fg_sig_is_platform; } fgetsigsinfo_t; typedef struct fstore { unsigned int fst_flags; int fst_posmode; off_t fst_offset; off_t fst_length; off_t fst_bytesalloc; } fstore_t; typedef struct fpunchhole { unsigned int fp_flags; unsigned int reserved; off_t fp_offset; off_t fp_length; } fpunchhole_t; typedef struct ftrimactivefile { off_t fta_offset; off_t fta_length; } ftrimactivefile_t; typedef struct fspecread { unsigned int fsr_flags; unsigned int reserved; off_t fsr_offset; off_t fsr_length; } fspecread_t; typedef struct fbootstraptransfer { off_t fbt_offset; size_t fbt_length; void *fbt_buffer; } fbootstraptransfer_t; #pragma pack(4) struct log2phys { unsigned int l2p_flags; off_t l2p_contigbytes; off_t l2p_devoffset; }; #pragma pack() struct _filesec; typedef struct _filesec *filesec_t; typedef enum { FILESEC_OWNER = 1, FILESEC_GROUP = 2, FILESEC_UUID = 3, FILESEC_MODE = 4, FILESEC_ACL = 5, FILESEC_GRPUUID = 6, FILESEC_ACL_RAW = 100, FILESEC_ACL_ALLOCSIZE = 101 } filesec_property_t; extern "C" { int open(const char *, int, ...) __asm("_" "open" ); int openat(int, const char *, int, ...) __asm("_" "openat" ) __attribute__((availability(ios,introduced=8.0))); int creat(const char *, mode_t) __asm("_" "creat" ); int fcntl(int, int, ...) __asm("_" "fcntl" ); int openx_np(const char *, int, filesec_t); int open_dprotected_np( const char *, int, int, int, ...); int flock(int, int); filesec_t filesec_init(void); filesec_t filesec_dup(filesec_t); void filesec_free(filesec_t); int filesec_get_property(filesec_t, filesec_property_t, void *); int filesec_query_property(filesec_t, filesec_property_t, int *); int filesec_set_property(filesec_t, filesec_property_t, const void *); int filesec_unset_property(filesec_t, filesec_property_t) __attribute__((availability(ios,introduced=3.2))); } typedef struct objc_class *Class; struct objc_object { Class _Nonnull isa __attribute__((deprecated)); }; typedef struct objc_object *id; typedef struct objc_selector *SEL; typedef void (*IMP)(void ); typedef bool BOOL; extern "C" __attribute__((visibility("default"))) const char * _Nonnull sel_getName(SEL _Nonnull sel) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); extern "C" __attribute__((visibility("default"))) SEL _Nonnull sel_registerName(const char * _Nonnull str) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); extern "C" __attribute__((visibility("default"))) const char * _Nonnull object_getClassName(id _Nullable obj) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); extern "C" __attribute__((visibility("default"))) void * _Nullable object_getIndexedIvars(id _Nullable obj) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); extern "C" __attribute__((visibility("default"))) BOOL sel_isMapped(SEL _Nonnull sel) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); extern "C" __attribute__((visibility("default"))) SEL _Nonnull sel_getUid(const char * _Nonnull str) __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); typedef const void* objc_objectptr_t; extern "C" __attribute__((visibility("default"))) id _Nullable objc_retainedObject(objc_objectptr_t _Nullable obj) __attribute__((unavailable("use CFBridgingRelease() or a (__bridge_transfer id) cast instead"))) ; extern "C" __attribute__((visibility("default"))) id _Nullable objc_unretainedObject(objc_objectptr_t _Nullable obj) __attribute__((unavailable("use a (__bridge id) cast instead"))) ; extern "C" __attribute__((visibility("default"))) objc_objectptr_t _Nullable objc_unretainedPointer(id _Nullable obj) __attribute__((unavailable("use a __bridge cast instead"))) ; typedef long NSInteger; typedef unsigned long NSUInteger; // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSMethodSignature #define _REWRITER_typedef_NSMethodSignature typedef struct objc_object NSMethodSignature; typedef struct {} _objc_exc_NSMethodSignature; #endif #ifndef _REWRITER_typedef_NSInvocation #define _REWRITER_typedef_NSInvocation typedef struct objc_object NSInvocation; typedef struct {} _objc_exc_NSInvocation; #endif // @protocol NSObject // - (BOOL)isEqual:(id)object; // @property (readonly) NSUInteger hash; // @property (readonly) Class superclass; // - (Class)class __attribute__((availability(swift, unavailable, message="use 'type(of: anObject)' instead"))); // - (instancetype)self; // - (id)performSelector:(SEL)aSelector; // - (id)performSelector:(SEL)aSelector withObject:(id)object; // - (id)performSelector:(SEL)aSelector withObject:(id)object1 withObject:(id)object2; // - (BOOL)isProxy; // - (BOOL)isKindOfClass:(Class)aClass; // - (BOOL)isMemberOfClass:(Class)aClass; // - (BOOL)conformsToProtocol:(Protocol *)aProtocol; // - (BOOL)respondsToSelector:(SEL)aSelector; // - (instancetype)retain ; // - (oneway void)release ; // - (instancetype)autorelease ; // - (NSUInteger)retainCount ; // - (struct _NSZone *)zone ; // @property (readonly, copy) NSString *description; /* @optional */ // @property (readonly, copy) NSString *debugDescription; /* @end */ __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))) __attribute__((objc_root_class)) extern "C" __attribute__((visibility("default"))) #ifndef _REWRITER_typedef_NSObject #define _REWRITER_typedef_NSObject typedef struct objc_object NSObject; typedef struct {} _objc_exc_NSObject; #endif struct NSObject_IMPL { Class isa; }; // + (void)load; // + (void)initialize; #if 0 - (instancetype)init __attribute__((objc_designated_initializer)) ; #endif // + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); // + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((availability(swift, unavailable, message="use object initializers instead"))); // + (instancetype)alloc __attribute__((availability(swift, unavailable, message="use object initializers instead"))); // - (void)dealloc __attribute__((availability(swift, unavailable, message="use 'deinit' to define a de-initializer"))); // - (void)finalize __attribute__((deprecated("Objective-C garbage collection is no longer supported"))); // - (id)copy; // - (id)mutableCopy; // + (id)copyWithZone:(struct _NSZone *)zone ; // + (id)mutableCopyWithZone:(struct _NSZone *)zone ; // + (BOOL)instancesRespondToSelector:(SEL)aSelector; // + (BOOL)conformsToProtocol:(Protocol *)protocol; // - (IMP)methodForSelector:(SEL)aSelector; // + (IMP)instanceMethodForSelector:(SEL)aSelector; // - (void)doesNotRecognizeSelector:(SEL)aSelector; // - (id)forwardingTargetForSelector:(SEL)aSelector __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); // - (void)forwardInvocation:(NSInvocation *)anInvocation __attribute__((availability(swift, unavailable, message=""))); // - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message=""))); // + (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message=""))); // - (BOOL)allowsWeakReference __attribute__((unavailable)); // - (BOOL)retainWeakReference __attribute__((unavailable)); // + (BOOL)isSubclassOfClass:(Class)aClass; // + (BOOL)resolveClassMethod:(SEL)sel __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); // + (BOOL)resolveInstanceMethod:(SEL)sel __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=1.0))); // + (NSUInteger)hash; // + (Class)superclass; // + (Class)class __attribute__((availability(swift, unavailable, message="use 'aClass.self' instead"))); // + (NSString *)description; // + (NSString *)debugDescription; /* @end */ extern __attribute__((__visibility__("default"))) #ifndef _REWRITER_typedef_OS_object #define _REWRITER_typedef_OS_object typedef struct objc_object OS_object; typedef struct {} _objc_exc_OS_object; #endif struct OS_object_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((__availability__(swift, unavailable, message="Unavailable in Swift"))); /* @end */ ; extern "C" { __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((__visibility__("default"))) __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC"))) void* os_retain(void *object); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((__visibility__("default"))) void __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC"))) os_release(void *object); } typedef enum : uint32_t { OS_CLOCK_MACH_ABSOLUTE_TIME = 32, } os_clockid_t; struct __attribute__((__swift_private__)) os_workgroup_attr_opaque_s { uint32_t sig; char opaque[60]; }; struct __attribute__((__swift_private__)) os_workgroup_interval_data_opaque_s { uint32_t sig; char opaque[56]; }; struct __attribute__((__swift_private__)) os_workgroup_join_token_opaque_s { uint32_t sig; char opaque[36]; }; extern "C" { #pragma clang assume_nonnull begin __attribute__((__swift_name__("WorkGroup"))) extern __attribute__((__visibility__("default"))) #ifndef _REWRITER_typedef_OS_os_workgroup #define _REWRITER_typedef_OS_os_workgroup typedef struct objc_object OS_os_workgroup; typedef struct {} _objc_exc_OS_os_workgroup; #endif struct OS_os_workgroup_IMPL { struct OS_object_IMPL OS_object_IVARS; }; // - (instancetype)init __attribute__((__availability__(swift, unavailable, message="Unavailable in Swift"))); /* @end */ typedef OS_os_workgroup * __attribute__((objc_independent_class)) os_workgroup_t; typedef struct os_workgroup_attr_opaque_s os_workgroup_attr_s; typedef struct os_workgroup_attr_opaque_s *os_workgroup_attr_t; __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_copy_port(os_workgroup_t wg, mach_port_t *mach_port_out); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((__swift_name__("WorkGroup.init(__name:port:)"))) extern __attribute__((__visibility__("default"))) __attribute__((__ns_returns_retained__)) os_workgroup_t _Nullable os_workgroup_create_with_port(const char *_Nullable name, mach_port_t mach_port); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__ns_returns_retained__)) os_workgroup_t _Nullable os_workgroup_create_with_workgroup(const char * _Nullable name, os_workgroup_t wg); __attribute__((__swift_private__)) typedef struct os_workgroup_join_token_opaque_s os_workgroup_join_token_s; __attribute__((__swift_private__)) typedef struct os_workgroup_join_token_opaque_s *os_workgroup_join_token_t; __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_join(os_workgroup_t wg, os_workgroup_join_token_t token_out); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) void os_workgroup_leave(os_workgroup_t wg, os_workgroup_join_token_t token); typedef uint32_t os_workgroup_index; typedef void (*os_workgroup_working_arena_destructor_t)(void * _Nullable); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_set_working_arena(os_workgroup_t wg, void * _Nullable arena, uint32_t max_workers, os_workgroup_working_arena_destructor_t destructor); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) void * _Nullable os_workgroup_get_working_arena(os_workgroup_t wg, os_workgroup_index * _Nullable index_out); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) void os_workgroup_cancel(os_workgroup_t wg); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) bool os_workgroup_testcancel(os_workgroup_t wg); __attribute__((__swift_private__)) typedef struct os_workgroup_max_parallel_threads_attr_s os_workgroup_mpt_attr_s; __attribute__((__swift_private__)) typedef struct os_workgroup_max_parallel_threads_attr_s *os_workgroup_mpt_attr_t; __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) int os_workgroup_max_parallel_threads(os_workgroup_t wg, os_workgroup_mpt_attr_t _Nullable attr); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin __attribute__((__swift_name__("Repeatable"))) // @protocol OS_os_workgroup_interval /* @end */ ; __attribute__((__swift_name__("WorkGroupInterval"))) extern __attribute__((__visibility__("default"))) #ifndef _REWRITER_typedef_OS_os_workgroup_interval #define _REWRITER_typedef_OS_os_workgroup_interval typedef struct objc_object OS_os_workgroup_interval; typedef struct {} _objc_exc_OS_os_workgroup_interval; #endif struct OS_os_workgroup_interval_IMPL { struct OS_os_workgroup_IMPL OS_os_workgroup_IVARS; }; // - (instancetype)init __attribute__((__availability__(swift, unavailable, message="Unavailable in Swift"))); /* @end */ ; typedef OS_os_workgroup/*<OS_os_workgroup_interval>*/ * __attribute__((objc_independent_class)) os_workgroup_interval_t; typedef struct os_workgroup_interval_data_opaque_s os_workgroup_interval_data_s; typedef struct os_workgroup_interval_data_opaque_s *os_workgroup_interval_data_t; __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_interval_start(os_workgroup_interval_t wg, uint64_t start, uint64_t deadline, os_workgroup_interval_data_t _Nullable data); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_interval_update(os_workgroup_interval_t wg, uint64_t deadline, os_workgroup_interval_data_t _Nullable data); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((__swift_private__)) extern __attribute__((__visibility__("default"))) __attribute__((__warn_unused_result__)) int os_workgroup_interval_finish(os_workgroup_interval_t wg, os_workgroup_interval_data_t _Nullable data); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin __attribute__((__swift_name__("Parallelizable"))) // @protocol OS_os_workgroup_parallel /* @end */ ; __attribute__((__swift_name__("WorkGroupParallel"))) extern __attribute__((__visibility__("default"))) #ifndef _REWRITER_typedef_OS_os_workgroup_parallel #define _REWRITER_typedef_OS_os_workgroup_parallel typedef struct objc_object OS_os_workgroup_parallel; typedef struct {} _objc_exc_OS_os_workgroup_parallel; #endif struct OS_os_workgroup_parallel_IMPL { struct OS_os_workgroup_IMPL OS_os_workgroup_IVARS; }; // - (instancetype)init __attribute__((__availability__(swift, unavailable, message="Unavailable in Swift"))); /* @end */ ; typedef OS_os_workgroup/*<OS_os_workgroup_parallel>*/ * __attribute__((objc_independent_class)) os_workgroup_parallel_t; __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) extern __attribute__((__visibility__("default"))) __attribute__((__ns_returns_retained__)) __attribute__((__swift_name__("WorkGroupParallel.init(__name:attr:)"))) os_workgroup_parallel_t _Nullable os_workgroup_parallel_create(const char * _Nullable name, os_workgroup_attr_t _Nullable attr); #pragma clang assume_nonnull end } typedef void (*dispatch_function_t)(void *_Nullable); struct time_value { integer_t seconds; integer_t microseconds; }; typedef struct time_value time_value_t; typedef int alarm_type_t; typedef int sleep_type_t; typedef int clock_id_t; typedef int clock_flavor_t; typedef int *clock_attr_t; typedef int clock_res_t; struct mach_timespec { unsigned int tv_sec; clock_res_t tv_nsec; }; typedef struct mach_timespec mach_timespec_t; #pragma clang assume_nonnull begin extern "C" { struct timespec; typedef uint64_t dispatch_time_t; enum { DISPATCH_WALLTIME_NOW __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) = ~1ull, }; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_time_t dispatch_time(dispatch_time_t when, int64_t delta); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_time_t dispatch_walltime(const struct timespec *_Nullable when, int64_t delta); } #pragma clang assume_nonnull end typedef enum : unsigned int { QOS_CLASS_USER_INTERACTIVE __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x21, QOS_CLASS_USER_INITIATED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x19, QOS_CLASS_DEFAULT __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x15, QOS_CLASS_UTILITY __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x11, QOS_CLASS_BACKGROUND __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x09, QOS_CLASS_UNSPECIFIED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x00, } qos_class_t; extern "C" { __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) qos_class_t qos_class_self(void); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) qos_class_t qos_class_main(void); } #pragma clang assume_nonnull begin // @protocol OS_dispatch_object <NSObject> /* @end */ typedef NSObject/*<OS_dispatch_object>*/ * __attribute__((objc_independent_class)) dispatch_object_t; static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void _dispatch_object_validate(dispatch_object_t object) { void *isa = *(void *volatile*)( void*)object; (void)isa; } typedef void (*dispatch_block_t)(void); extern "C" { typedef qos_class_t dispatch_qos_class_t; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC"))) void dispatch_retain(dispatch_object_t object); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) __attribute__((__availability__(swift, unavailable, message="Can't be used with ARC"))) void dispatch_release(dispatch_object_t object); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) void *_Nullable dispatch_get_context(dispatch_object_t object); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) void dispatch_set_context(dispatch_object_t object, void *_Nullable context); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) void dispatch_set_finalizer_f(dispatch_object_t object, dispatch_function_t _Nullable finalizer); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_activate(dispatch_object_t object); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_suspend(dispatch_object_t object); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_resume(dispatch_object_t object); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) void dispatch_set_qos_class_floor(dispatch_object_t object, dispatch_qos_class_t qos_class, int relative_priority); __attribute__((__unavailable__)) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) intptr_t dispatch_wait(void *object, dispatch_time_t timeout); __attribute__((__unavailable__)) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_notify(void *object, dispatch_object_t queue, dispatch_block_t notification_block); __attribute__((__unavailable__)) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_cancel(void *object); __attribute__((__unavailable__)) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) intptr_t dispatch_testcancel(void *object); __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface"))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__)) __attribute__((__cold__)) __attribute__((__format__(printf,2,3))) void dispatch_debug(dispatch_object_t object, const char *message, ...); __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface"))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__)) __attribute__((__cold__)) __attribute__((__format__(printf,2,0))) void dispatch_debugv(dispatch_object_t object, const char *message, va_list ap); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol OS_dispatch_queue <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_queue>*/ * __attribute__((objc_independent_class)) dispatch_queue_t; // @protocol OS_dispatch_queue_global <OS_dispatch_queue> /* @end */ typedef NSObject/*<OS_dispatch_queue_global>*/ * __attribute__((objc_independent_class)) dispatch_queue_global_t; // @protocol OS_dispatch_queue_serial <OS_dispatch_queue> /* @end */ typedef NSObject/*<OS_dispatch_queue_serial>*/ * __attribute__((objc_independent_class)) dispatch_queue_serial_t; // @protocol OS_dispatch_queue_main <OS_dispatch_queue_serial> /* @end */ typedef NSObject/*<OS_dispatch_queue_main>*/ * __attribute__((objc_independent_class)) dispatch_queue_main_t; // @protocol OS_dispatch_queue_concurrent <OS_dispatch_queue> /* @end */ typedef NSObject/*<OS_dispatch_queue_concurrent>*/ * __attribute__((objc_independent_class)) dispatch_queue_concurrent_t; extern "C" { __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_async(dispatch_queue_t queue, dispatch_block_t block); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_async_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_sync(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_sync_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_async_and_wait(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_async_and_wait_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_apply(size_t iterations, dispatch_queue_t _Nullable queue, __attribute__((__noescape__)) void (^block)(size_t)); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_apply_f(size_t iterations, dispatch_queue_t _Nullable queue, void *_Nullable context, void (*work)(void *_Nullable, size_t)); __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="unsupported interface"))) __attribute__((availability(ios,introduced=4.0,deprecated=6.0,message="unsupported interface"))) extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_queue_t dispatch_get_current_queue(void); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) struct dispatch_queue_s _dispatch_main_q; static __inline__ __attribute__((__always_inline__)) __attribute__((__const__)) __attribute__((__nothrow__)) dispatch_queue_main_t dispatch_get_main_queue(void) { return (( dispatch_queue_main_t)&(_dispatch_main_q)); } typedef long dispatch_queue_priority_t; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__const__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_queue_global_t dispatch_get_global_queue(intptr_t identifier, uintptr_t flags); // @protocol OS_dispatch_queue_attr <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_queue_attr>*/ * __attribute__((objc_independent_class)) dispatch_queue_attr_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent; __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) dispatch_queue_attr_t dispatch_queue_attr_make_initially_inactive( dispatch_queue_attr_t _Nullable attr); typedef enum : unsigned long { DISPATCH_AUTORELEASE_FREQUENCY_INHERIT __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 0, DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 1, DISPATCH_AUTORELEASE_FREQUENCY_NEVER __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) = 2, } __attribute__((__enum_extensibility__(open))) dispatch_autorelease_frequency_t; __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) dispatch_queue_attr_t dispatch_queue_attr_make_with_autorelease_frequency( dispatch_queue_attr_t _Nullable attr, dispatch_autorelease_frequency_t frequency); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) dispatch_queue_attr_t dispatch_queue_attr_make_with_qos_class(dispatch_queue_attr_t _Nullable attr, dispatch_qos_class_t qos_class, int relative_priority); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_queue_t dispatch_queue_create_with_target(const char *_Nullable label, dispatch_queue_attr_t _Nullable attr, dispatch_queue_t _Nullable target) __asm__("_" "dispatch_queue_create_with_target" "$V2"); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_queue_t dispatch_queue_create(const char *_Nullable label, dispatch_queue_attr_t _Nullable attr); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) const char * dispatch_queue_get_label(dispatch_queue_t _Nullable queue); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__warn_unused_result__)) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) dispatch_qos_class_t dispatch_queue_get_qos_class(dispatch_queue_t queue, int *_Nullable relative_priority_ptr); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) void dispatch_set_target_queue(dispatch_object_t object, dispatch_queue_t _Nullable queue); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nothrow__)) __attribute__((__noreturn__)) void dispatch_main(void); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_after(dispatch_time_t when, dispatch_queue_t queue, dispatch_block_t block); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_after_f(dispatch_time_t when, dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_barrier_async(dispatch_queue_t queue, dispatch_block_t block); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_barrier_async_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_barrier_sync(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_barrier_sync_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_barrier_async_and_wait(dispatch_queue_t queue, __attribute__((__noescape__)) dispatch_block_t block); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_barrier_async_and_wait_f(dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_queue_set_specific(dispatch_queue_t queue, const void *key, void *_Nullable context, dispatch_function_t _Nullable destructor); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) void *_Nullable dispatch_queue_get_specific(dispatch_queue_t queue, const void *key); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) void *_Nullable dispatch_get_specific(const void *key); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) void dispatch_assert_queue(dispatch_queue_t queue) __asm__("_" "dispatch_assert_queue" "$V2"); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) void dispatch_assert_queue_barrier(dispatch_queue_t queue); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) void dispatch_assert_queue_not(dispatch_queue_t queue) __asm__("_" "dispatch_assert_queue_not" "$V2"); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" { typedef enum : unsigned long { DISPATCH_BLOCK_BARRIER __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x1, DISPATCH_BLOCK_DETACHED __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x2, DISPATCH_BLOCK_ASSIGN_CURRENT __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x4, DISPATCH_BLOCK_NO_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x8, DISPATCH_BLOCK_INHERIT_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x10, DISPATCH_BLOCK_ENFORCE_QOS_CLASS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) = 0x20, } __attribute__((__flag_enum__)) __attribute__((__enum_extensibility__(open))) dispatch_block_flags_t; __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_block_t dispatch_block_create(dispatch_block_flags_t flags, dispatch_block_t block); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(4))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_block_t dispatch_block_create_with_qos_class(dispatch_block_flags_t flags, dispatch_qos_class_t qos_class, int relative_priority, dispatch_block_t block); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nothrow__)) void dispatch_block_perform(dispatch_block_flags_t flags, __attribute__((__noescape__)) dispatch_block_t block); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) intptr_t dispatch_block_wait(dispatch_block_t block, dispatch_time_t timeout); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_block_notify(dispatch_block_t block, dispatch_queue_t queue, dispatch_block_t notification_block); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_block_cancel(dispatch_block_t block); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) intptr_t dispatch_block_testcancel(dispatch_block_t block); } #pragma clang assume_nonnull end typedef int kern_return_t; typedef natural_t mach_msg_timeout_t; typedef unsigned int mach_msg_bits_t; typedef natural_t mach_msg_size_t; typedef integer_t mach_msg_id_t; typedef unsigned int mach_msg_priority_t; typedef unsigned int mach_msg_type_name_t; typedef unsigned int mach_msg_copy_options_t; typedef unsigned int mach_msg_guard_flags_t; typedef unsigned int mach_msg_descriptor_type_t; #pragma pack(push, 4) typedef struct{ natural_t pad1; mach_msg_size_t pad2; unsigned int pad3 : 24; mach_msg_descriptor_type_t type : 8; } mach_msg_type_descriptor_t; typedef struct{ mach_port_t name; mach_msg_size_t pad1; unsigned int pad2 : 16; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; } mach_msg_port_descriptor_t; typedef struct{ uint32_t address; mach_msg_size_t size; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; unsigned int pad1: 8; mach_msg_descriptor_type_t type: 8; } mach_msg_ool_descriptor32_t; typedef struct{ uint64_t address; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; unsigned int pad1: 8; mach_msg_descriptor_type_t type: 8; mach_msg_size_t size; } mach_msg_ool_descriptor64_t; typedef struct{ void* address; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; unsigned int pad1: 8; mach_msg_descriptor_type_t type: 8; mach_msg_size_t size; } mach_msg_ool_descriptor_t; typedef struct{ uint32_t address; mach_msg_size_t count; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; } mach_msg_ool_ports_descriptor32_t; typedef struct{ uint64_t address; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; mach_msg_size_t count; } mach_msg_ool_ports_descriptor64_t; typedef struct{ void* address; boolean_t deallocate: 8; mach_msg_copy_options_t copy: 8; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; mach_msg_size_t count; } mach_msg_ool_ports_descriptor_t; typedef struct{ uint32_t context; mach_port_name_t name; mach_msg_guard_flags_t flags : 16; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; } mach_msg_guarded_port_descriptor32_t; typedef struct{ uint64_t context; mach_msg_guard_flags_t flags : 16; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; mach_port_name_t name; } mach_msg_guarded_port_descriptor64_t; typedef struct{ mach_port_context_t context; mach_msg_guard_flags_t flags : 16; mach_msg_type_name_t disposition : 8; mach_msg_descriptor_type_t type : 8; mach_port_name_t name; } mach_msg_guarded_port_descriptor_t; typedef union{ mach_msg_port_descriptor_t port; mach_msg_ool_descriptor_t out_of_line; mach_msg_ool_ports_descriptor_t ool_ports; mach_msg_type_descriptor_t type; mach_msg_guarded_port_descriptor_t guarded_port; } mach_msg_descriptor_t; typedef struct{ mach_msg_size_t msgh_descriptor_count; } mach_msg_body_t; typedef struct{ mach_msg_bits_t msgh_bits; mach_msg_size_t msgh_size; mach_port_t msgh_remote_port; mach_port_t msgh_local_port; mach_port_name_t msgh_voucher_port; mach_msg_id_t msgh_id; } mach_msg_header_t; typedef struct{ mach_msg_header_t header; mach_msg_body_t body; } mach_msg_base_t; typedef unsigned int mach_msg_trailer_type_t; typedef unsigned int mach_msg_trailer_size_t; typedef char *mach_msg_trailer_info_t; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; } mach_msg_trailer_t; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; mach_port_seqno_t msgh_seqno; } mach_msg_seqno_trailer_t; typedef struct{ unsigned int val[2]; } security_token_t; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; mach_port_seqno_t msgh_seqno; security_token_t msgh_sender; } mach_msg_security_trailer_t; typedef struct{ unsigned int val[8]; } audit_token_t; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; mach_port_seqno_t msgh_seqno; security_token_t msgh_sender; audit_token_t msgh_audit; } mach_msg_audit_trailer_t; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; mach_port_seqno_t msgh_seqno; security_token_t msgh_sender; audit_token_t msgh_audit; mach_port_context_t msgh_context; } mach_msg_context_trailer_t; typedef struct{ mach_port_name_t sender; } msg_labels_t; typedef int mach_msg_filter_id; typedef struct{ mach_msg_trailer_type_t msgh_trailer_type; mach_msg_trailer_size_t msgh_trailer_size; mach_port_seqno_t msgh_seqno; security_token_t msgh_sender; audit_token_t msgh_audit; mach_port_context_t msgh_context; mach_msg_filter_id msgh_ad; msg_labels_t msgh_labels; } mach_msg_mac_trailer_t; typedef mach_msg_mac_trailer_t mach_msg_max_trailer_t; typedef mach_msg_security_trailer_t mach_msg_format_0_trailer_t; extern const security_token_t KERNEL_SECURITY_TOKEN; extern const audit_token_t KERNEL_AUDIT_TOKEN; typedef integer_t mach_msg_options_t; typedef struct{ mach_msg_header_t header; } mach_msg_empty_send_t; typedef struct{ mach_msg_header_t header; mach_msg_trailer_t trailer; } mach_msg_empty_rcv_t; typedef union{ mach_msg_empty_send_t send; mach_msg_empty_rcv_t rcv; } mach_msg_empty_t; #pragma pack(pop) typedef natural_t mach_msg_type_size_t; typedef natural_t mach_msg_type_number_t; typedef integer_t mach_msg_option_t; typedef kern_return_t mach_msg_return_t; extern "C" { __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) extern mach_msg_return_t mach_msg_overwrite( mach_msg_header_t *msg, mach_msg_option_t option, mach_msg_size_t send_size, mach_msg_size_t rcv_size, mach_port_name_t rcv_name, mach_msg_timeout_t timeout, mach_port_name_t notify, mach_msg_header_t *rcv_msg, mach_msg_size_t rcv_limit); __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) extern mach_msg_return_t mach_msg( mach_msg_header_t *msg, mach_msg_option_t option, mach_msg_size_t send_size, mach_msg_size_t rcv_size, mach_port_name_t rcv_name, mach_msg_timeout_t timeout, mach_port_name_t notify); __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) extern kern_return_t mach_voucher_deallocate( mach_port_name_t voucher); } #pragma clang assume_nonnull begin // @protocol OS_dispatch_source <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_source>*/ * __attribute__((objc_independent_class)) dispatch_source_t;; extern "C" { typedef const struct dispatch_source_type_s *dispatch_source_type_t; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_add; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_or; __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_data_replace; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_mach_send; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_mach_recv; __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_memorypressure; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_proc; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_read; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_signal; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_timer; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_vnode; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) const struct dispatch_source_type_s _dispatch_source_type_write; typedef unsigned long dispatch_source_mach_send_flags_t; typedef unsigned long dispatch_source_mach_recv_flags_t; typedef unsigned long dispatch_source_memorypressure_flags_t; typedef unsigned long dispatch_source_proc_flags_t; typedef unsigned long dispatch_source_vnode_flags_t; typedef unsigned long dispatch_source_timer_flags_t; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_source_t dispatch_source_create(dispatch_source_type_t type, uintptr_t handle, uintptr_t mask, dispatch_queue_t _Nullable queue); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_event_handler(dispatch_source_t source, dispatch_block_t _Nullable handler); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_event_handler_f(dispatch_source_t source, dispatch_function_t _Nullable handler); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_cancel_handler(dispatch_source_t source, dispatch_block_t _Nullable handler); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_cancel_handler_f(dispatch_source_t source, dispatch_function_t _Nullable handler); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_source_cancel(dispatch_source_t source); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) intptr_t dispatch_source_testcancel(dispatch_source_t source); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) uintptr_t dispatch_source_get_handle(dispatch_source_t source); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) uintptr_t dispatch_source_get_mask(dispatch_source_t source); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__pure__)) __attribute__((__nothrow__)) uintptr_t dispatch_source_get_data(dispatch_source_t source); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_source_merge_data(dispatch_source_t source, uintptr_t value); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_source_set_timer(dispatch_source_t source, dispatch_time_t start, uint64_t interval, uint64_t leeway); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_registration_handler(dispatch_source_t source, dispatch_block_t _Nullable handler); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.3))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_source_set_registration_handler_f(dispatch_source_t source, dispatch_function_t _Nullable handler); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol OS_dispatch_group <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_group>*/ * __attribute__((objc_independent_class)) dispatch_group_t; extern "C" { __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_group_t dispatch_group_create(void); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_group_async(dispatch_group_t group, dispatch_queue_t queue, dispatch_block_t block); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_group_async_f(dispatch_group_t group, dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) intptr_t dispatch_group_wait(dispatch_group_t group, dispatch_time_t timeout); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_group_notify(dispatch_group_t group, dispatch_queue_t queue, dispatch_block_t block); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_group_notify_f(dispatch_group_t group, dispatch_queue_t queue, void *_Nullable context, dispatch_function_t work); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_group_enter(dispatch_group_t group); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_group_leave(dispatch_group_t group); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol OS_dispatch_semaphore <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_semaphore>*/ * __attribute__((objc_independent_class)) dispatch_semaphore_t; extern "C" { __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_semaphore_t dispatch_semaphore_create(intptr_t value); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) intptr_t dispatch_semaphore_wait(dispatch_semaphore_t dsema, dispatch_time_t timeout); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) intptr_t dispatch_semaphore_signal(dispatch_semaphore_t dsema); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" { typedef intptr_t dispatch_once_t; __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_once(dispatch_once_t *predicate, __attribute__((__noescape__)) dispatch_block_t block); static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void _dispatch_once(dispatch_once_t *predicate, __attribute__((__noescape__)) dispatch_block_t block) { if (__builtin_expect((*predicate), (~0l)) != ~0l) { dispatch_once(predicate, block); } else { __asm__ __volatile__("" ::: "memory"); } __builtin_assume(*predicate == ~0l); } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void dispatch_once_f(dispatch_once_t *predicate, void *_Nullable context, dispatch_function_t function); static __inline__ __attribute__((__always_inline__)) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nothrow__)) void _dispatch_once_f(dispatch_once_t *predicate, void *_Nullable context, dispatch_function_t function) { if (__builtin_expect((*predicate), (~0l)) != ~0l) { dispatch_once_f(predicate, context, function); } else { __asm__ __volatile__("" ::: "memory"); } __builtin_assume(*predicate == ~0l); } } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" { // @protocol OS_dispatch_data <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_data>*/ * __attribute__((objc_independent_class)) dispatch_data_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) struct dispatch_data_s _dispatch_data_empty; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) const dispatch_block_t _dispatch_data_destructor_free; __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) extern __attribute__((visibility("default"))) const dispatch_block_t _dispatch_data_destructor_munmap; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_data_t dispatch_data_create(const void *buffer, size_t size, dispatch_queue_t _Nullable queue, dispatch_block_t _Nullable destructor); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__pure__)) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) size_t dispatch_data_get_size(dispatch_data_t data); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_data_t dispatch_data_create_map(dispatch_data_t data, const void *_Nullable *_Nullable buffer_ptr, size_t *_Nullable size_ptr); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_data_t dispatch_data_create_concat(dispatch_data_t data1, dispatch_data_t data2); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_data_t dispatch_data_create_subrange(dispatch_data_t data, size_t offset, size_t length); typedef bool (*dispatch_data_applier_t)(dispatch_data_t region, size_t offset, const void *buffer, size_t size); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) bool dispatch_data_apply(dispatch_data_t data, __attribute__((__noescape__)) dispatch_data_applier_t applier); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_data_t dispatch_data_copy_region(dispatch_data_t data, size_t location, size_t *offset_ptr); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" { typedef int dispatch_fd_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_read(dispatch_fd_t fd, size_t length, dispatch_queue_t queue, void (^handler)(dispatch_data_t data, int error)); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4))) __attribute__((__nothrow__)) void dispatch_write(dispatch_fd_t fd, dispatch_data_t data, dispatch_queue_t queue, void (^handler)(dispatch_data_t _Nullable data, int error)); // @protocol OS_dispatch_io <OS_dispatch_object> /* @end */ typedef NSObject/*<OS_dispatch_io>*/ * __attribute__((objc_independent_class)) dispatch_io_t; typedef unsigned long dispatch_io_type_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_io_t dispatch_io_create(dispatch_io_type_t type, dispatch_fd_t fd, dispatch_queue_t queue, void (^cleanup_handler)(int error)); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_io_t dispatch_io_create_with_path(dispatch_io_type_t type, const char *path, int oflag, mode_t mode, dispatch_queue_t queue, void (^cleanup_handler)(int error)); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(2))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_io_t dispatch_io_create_with_io(dispatch_io_type_t type, dispatch_io_t io, dispatch_queue_t queue, void (^cleanup_handler)(int error)); typedef void (*dispatch_io_handler_t)(bool done, dispatch_data_t _Nullable data, int error); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(4))) __attribute__((__nonnull__(5))) __attribute__((__nothrow__)) void dispatch_io_read(dispatch_io_t channel, off_t offset, size_t length, dispatch_queue_t queue, dispatch_io_handler_t io_handler); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nonnull__(3))) __attribute__((__nonnull__(4))) __attribute__((__nonnull__(5))) __attribute__((__nothrow__)) void dispatch_io_write(dispatch_io_t channel, off_t offset, dispatch_data_t data, dispatch_queue_t queue, dispatch_io_handler_t io_handler); typedef unsigned long dispatch_io_close_flags_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_io_close(dispatch_io_t channel, dispatch_io_close_flags_t flags); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_io_barrier(dispatch_io_t channel, dispatch_block_t barrier); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_fd_t dispatch_io_get_descriptor(dispatch_io_t channel); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_io_set_high_water(dispatch_io_t channel, size_t high_water); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_io_set_low_water(dispatch_io_t channel, size_t low_water); typedef unsigned long dispatch_io_interval_flags_t; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__(1))) __attribute__((__nothrow__)) void dispatch_io_set_interval(dispatch_io_t channel, uint64_t interval, dispatch_io_interval_flags_t flags); } #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" { // @protocol OS_dispatch_workloop <OS_dispatch_queue> /* @end */ typedef NSObject/*<OS_dispatch_workloop>*/ * __attribute__((objc_independent_class)) dispatch_workloop_t; __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_workloop_t dispatch_workloop_create(const char *_Nullable label); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__malloc__)) __attribute__((__ns_returns_retained__)) __attribute__((__warn_unused_result__)) __attribute__((__nothrow__)) dispatch_workloop_t dispatch_workloop_create_inactive(const char *_Nullable label); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_workloop_set_autorelease_frequency(dispatch_workloop_t workloop, dispatch_autorelease_frequency_t frequency); __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) extern __attribute__((visibility("default"))) __attribute__((__nonnull__)) __attribute__((__nothrow__)) void dispatch_workloop_set_os_workgroup(dispatch_workloop_t workloop, os_workgroup_t workgroup); } #pragma clang assume_nonnull end extern "C" { typedef struct { CFIndex domain; SInt32 error; } CFStreamError; typedef CFStringRef CFStreamPropertyKey __attribute__((swift_wrapper(struct))); typedef CFIndex CFStreamStatus; enum { kCFStreamStatusNotOpen = 0, kCFStreamStatusOpening, kCFStreamStatusOpen, kCFStreamStatusReading, kCFStreamStatusWriting, kCFStreamStatusAtEnd, kCFStreamStatusClosed, kCFStreamStatusError }; typedef CFOptionFlags CFStreamEventType; enum { kCFStreamEventNone = 0, kCFStreamEventOpenCompleted = 1, kCFStreamEventHasBytesAvailable = 2, kCFStreamEventCanAcceptBytes = 4, kCFStreamEventErrorOccurred = 8, kCFStreamEventEndEncountered = 16 }; typedef struct { CFIndex version; void * _Null_unspecified info; void *_Null_unspecified(* _Null_unspecified retain)(void * _Null_unspecified info); void (* _Null_unspecified release)(void * _Null_unspecified info); CFStringRef _Null_unspecified (* _Null_unspecified copyDescription)(void * _Null_unspecified info); } CFStreamClientContext; typedef struct __attribute__((objc_bridge_mutable(NSInputStream))) __CFReadStream * CFReadStreamRef; typedef struct __attribute__((objc_bridge_mutable(NSOutputStream))) __CFWriteStream * CFWriteStreamRef; typedef void (*CFReadStreamClientCallBack)(CFReadStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo); typedef void (*CFWriteStreamClientCallBack)(CFWriteStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo); extern CFTypeID CFReadStreamGetTypeID(void); extern CFTypeID CFWriteStreamGetTypeID(void); extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyDataWritten; extern CFReadStreamRef _Null_unspecified CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef _Null_unspecified alloc, const UInt8 * _Null_unspecified bytes, CFIndex length, CFAllocatorRef _Null_unspecified bytesDeallocator); extern CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithBuffer(CFAllocatorRef _Null_unspecified alloc, UInt8 * _Null_unspecified buffer, CFIndex bufferCapacity); extern CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef _Null_unspecified alloc, CFAllocatorRef _Null_unspecified bufferAllocator); extern CFReadStreamRef _Null_unspecified CFReadStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL); extern CFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL); extern void CFStreamCreateBoundPair(CFAllocatorRef _Null_unspecified alloc, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream, CFIndex transferBufferSize); extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyAppendToFile; extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertyFileCurrentOffset; extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketNativeHandle; extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketRemoteHostName; extern const CFStreamPropertyKey _Null_unspecified kCFStreamPropertySocketRemotePortNumber; extern const int kCFStreamErrorDomainSOCKS __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxy __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxyHost __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSProxyPort __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSVersion __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamSocketSOCKSVersion4 __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamSocketSOCKSVersion5 __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSUser __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySOCKSPassword __attribute__((availability(ios,introduced=2_0))); extern const int kCFStreamErrorDomainSSL __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertySocketSecurityLevel __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelNone __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelSSLv2 __attribute__((availability(ios,introduced=2_0,deprecated=10_0,message="" ))); extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelSSLv3 __attribute__((availability(ios,introduced=2_0,deprecated=10_0,message="" ))); extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelTLSv1 __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamSocketSecurityLevelNegotiatedSSL __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef _Nonnull kCFStreamPropertyShouldCloseNativeSocket __attribute__((availability(ios,introduced=2_0))); extern void CFStreamCreatePairWithSocket(CFAllocatorRef _Null_unspecified alloc, CFSocketNativeHandle sock, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream); extern void CFStreamCreatePairWithSocketToHost(CFAllocatorRef _Null_unspecified alloc, CFStringRef _Null_unspecified host, UInt32 port, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream); extern void CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef _Null_unspecified alloc, const CFSocketSignature * _Null_unspecified signature, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream); extern CFStreamStatus CFReadStreamGetStatus(CFReadStreamRef _Null_unspecified stream); extern CFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef _Null_unspecified stream); extern CFErrorRef _Null_unspecified CFReadStreamCopyError(CFReadStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFErrorRef _Null_unspecified CFWriteStreamCopyError(CFWriteStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFReadStreamOpen(CFReadStreamRef _Null_unspecified stream); extern Boolean CFWriteStreamOpen(CFWriteStreamRef _Null_unspecified stream); extern void CFReadStreamClose(CFReadStreamRef _Null_unspecified stream); extern void CFWriteStreamClose(CFWriteStreamRef _Null_unspecified stream); extern Boolean CFReadStreamHasBytesAvailable(CFReadStreamRef _Null_unspecified stream); extern CFIndex CFReadStreamRead(CFReadStreamRef _Null_unspecified stream, UInt8 * _Null_unspecified buffer, CFIndex bufferLength); extern const UInt8 * _Null_unspecified CFReadStreamGetBuffer(CFReadStreamRef _Null_unspecified stream, CFIndex maxBytesToRead, CFIndex * _Null_unspecified numBytesRead); extern Boolean CFWriteStreamCanAcceptBytes(CFWriteStreamRef _Null_unspecified stream); extern CFIndex CFWriteStreamWrite(CFWriteStreamRef _Null_unspecified stream, const UInt8 * _Null_unspecified buffer, CFIndex bufferLength); extern CFTypeRef _Null_unspecified CFReadStreamCopyProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName); extern CFTypeRef _Null_unspecified CFWriteStreamCopyProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName); extern Boolean CFReadStreamSetProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue); extern Boolean CFWriteStreamSetProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue); extern Boolean CFReadStreamSetClient(CFReadStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFReadStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext); extern Boolean CFWriteStreamSetClient(CFWriteStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFWriteStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext); extern void CFReadStreamScheduleWithRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode); extern void CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, _Null_unspecified CFRunLoopMode runLoopMode); extern void CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode); extern void CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode); extern void CFReadStreamSetDispatchQueue(CFReadStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFWriteStreamSetDispatchQueue(CFWriteStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern dispatch_queue_t _Null_unspecified CFReadStreamCopyDispatchQueue(CFReadStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern dispatch_queue_t _Null_unspecified CFWriteStreamCopyDispatchQueue(CFWriteStreamRef _Null_unspecified stream) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFIndex CFStreamErrorDomain; enum { kCFStreamErrorDomainCustom = -1L, kCFStreamErrorDomainPOSIX = 1, kCFStreamErrorDomainMacOSStatus }; extern CFStreamError CFReadStreamGetError(CFReadStreamRef _Null_unspecified stream); extern CFStreamError CFWriteStreamGetError(CFWriteStreamRef _Null_unspecified stream); } extern "C" { typedef CFOptionFlags CFPropertyListMutabilityOptions; enum { kCFPropertyListImmutable = 0, kCFPropertyListMutableContainers = 1 << 0, kCFPropertyListMutableContainersAndLeaves = 1 << 1, }; extern CFPropertyListRef CFPropertyListCreateFromXMLData(CFAllocatorRef allocator, CFDataRef xmlData, CFOptionFlags mutabilityOption, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateWithData instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateWithData instead."))); extern CFDataRef CFPropertyListCreateXMLData(CFAllocatorRef allocator, CFPropertyListRef propertyList) __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateData instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateData instead."))); extern CFPropertyListRef CFPropertyListCreateDeepCopy(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFOptionFlags mutabilityOption); typedef CFIndex CFPropertyListFormat; enum { kCFPropertyListOpenStepFormat = 1, kCFPropertyListXMLFormat_v1_0 = 100, kCFPropertyListBinaryFormat_v1_0 = 200 }; extern Boolean CFPropertyListIsValid(CFPropertyListRef plist, CFPropertyListFormat format); extern CFIndex CFPropertyListWriteToStream(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use CFPropertyListWrite instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListWrite instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListWrite instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListWrite instead."))); extern CFPropertyListRef CFPropertyListCreateFromStream(CFAllocatorRef allocator, CFReadStreamRef stream, CFIndex streamLength, CFOptionFlags mutabilityOption, CFPropertyListFormat *format, CFStringRef *errorString) __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFPropertyListCreateWithStream instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFPropertyListCreateWithStream instead."))); enum { kCFPropertyListReadCorruptError = 3840, kCFPropertyListReadUnknownVersionError = 3841, kCFPropertyListReadStreamError = 3842, kCFPropertyListWriteStreamError = 3851, } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFPropertyListRef CFPropertyListCreateWithData(CFAllocatorRef allocator, CFDataRef data, CFOptionFlags options, CFPropertyListFormat *format, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFPropertyListRef CFPropertyListCreateWithStream(CFAllocatorRef allocator, CFReadStreamRef stream, CFIndex streamLength, CFOptionFlags options, CFPropertyListFormat *format, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFPropertyListWrite(CFPropertyListRef propertyList, CFWriteStreamRef stream, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFDataRef CFPropertyListCreateData(CFAllocatorRef allocator, CFPropertyListRef propertyList, CFPropertyListFormat format, CFOptionFlags options, CFErrorRef *error) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef const void * (*CFSetRetainCallBack)(CFAllocatorRef allocator, const void *value); typedef void (*CFSetReleaseCallBack)(CFAllocatorRef allocator, const void *value); typedef CFStringRef (*CFSetCopyDescriptionCallBack)(const void *value); typedef Boolean (*CFSetEqualCallBack)(const void *value1, const void *value2); typedef CFHashCode (*CFSetHashCallBack)(const void *value); typedef struct { CFIndex version; CFSetRetainCallBack retain; CFSetReleaseCallBack release; CFSetCopyDescriptionCallBack copyDescription; CFSetEqualCallBack equal; CFSetHashCallBack hash; } CFSetCallBacks; extern const CFSetCallBacks kCFTypeSetCallBacks; extern const CFSetCallBacks kCFCopyStringSetCallBacks; typedef void (*CFSetApplierFunction)(const void *value, void *context); typedef const struct __attribute__((objc_bridge(NSSet))) __CFSet * CFSetRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableSet))) __CFSet * CFMutableSetRef; extern CFTypeID CFSetGetTypeID(void); extern CFSetRef CFSetCreate(CFAllocatorRef allocator, const void **values, CFIndex numValues, const CFSetCallBacks *callBacks); extern CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet); extern CFMutableSetRef CFSetCreateMutable(CFAllocatorRef allocator, CFIndex capacity, const CFSetCallBacks *callBacks); extern CFMutableSetRef CFSetCreateMutableCopy(CFAllocatorRef allocator, CFIndex capacity, CFSetRef theSet); extern CFIndex CFSetGetCount(CFSetRef theSet); extern CFIndex CFSetGetCountOfValue(CFSetRef theSet, const void *value); extern Boolean CFSetContainsValue(CFSetRef theSet, const void *value); extern const void *CFSetGetValue(CFSetRef theSet, const void *value); extern Boolean CFSetGetValueIfPresent(CFSetRef theSet, const void *candidate, const void **value); extern void CFSetGetValues(CFSetRef theSet, const void **values); extern void CFSetApplyFunction(CFSetRef theSet, CFSetApplierFunction __attribute__((noescape)) applier, void *context); extern void CFSetAddValue(CFMutableSetRef theSet, const void *value); extern void CFSetReplaceValue(CFMutableSetRef theSet, const void *value); extern void CFSetSetValue(CFMutableSetRef theSet, const void *value); extern void CFSetRemoveValue(CFMutableSetRef theSet, const void *value); extern void CFSetRemoveAllValues(CFMutableSetRef theSet); } extern "C" { typedef CFIndex CFStringEncodings; enum { kCFStringEncodingMacJapanese = 1, kCFStringEncodingMacChineseTrad = 2, kCFStringEncodingMacKorean = 3, kCFStringEncodingMacArabic = 4, kCFStringEncodingMacHebrew = 5, kCFStringEncodingMacGreek = 6, kCFStringEncodingMacCyrillic = 7, kCFStringEncodingMacDevanagari = 9, kCFStringEncodingMacGurmukhi = 10, kCFStringEncodingMacGujarati = 11, kCFStringEncodingMacOriya = 12, kCFStringEncodingMacBengali = 13, kCFStringEncodingMacTamil = 14, kCFStringEncodingMacTelugu = 15, kCFStringEncodingMacKannada = 16, kCFStringEncodingMacMalayalam = 17, kCFStringEncodingMacSinhalese = 18, kCFStringEncodingMacBurmese = 19, kCFStringEncodingMacKhmer = 20, kCFStringEncodingMacThai = 21, kCFStringEncodingMacLaotian = 22, kCFStringEncodingMacGeorgian = 23, kCFStringEncodingMacArmenian = 24, kCFStringEncodingMacChineseSimp = 25, kCFStringEncodingMacTibetan = 26, kCFStringEncodingMacMongolian = 27, kCFStringEncodingMacEthiopic = 28, kCFStringEncodingMacCentralEurRoman = 29, kCFStringEncodingMacVietnamese = 30, kCFStringEncodingMacExtArabic = 31, kCFStringEncodingMacSymbol = 33, kCFStringEncodingMacDingbats = 34, kCFStringEncodingMacTurkish = 35, kCFStringEncodingMacCroatian = 36, kCFStringEncodingMacIcelandic = 37, kCFStringEncodingMacRomanian = 38, kCFStringEncodingMacCeltic = 39, kCFStringEncodingMacGaelic = 40, kCFStringEncodingMacFarsi = 0x8C, kCFStringEncodingMacUkrainian = 0x98, kCFStringEncodingMacInuit = 0xEC, kCFStringEncodingMacVT100 = 0xFC, kCFStringEncodingMacHFS = 0xFF, kCFStringEncodingISOLatin2 = 0x0202, kCFStringEncodingISOLatin3 = 0x0203, kCFStringEncodingISOLatin4 = 0x0204, kCFStringEncodingISOLatinCyrillic = 0x0205, kCFStringEncodingISOLatinArabic = 0x0206, kCFStringEncodingISOLatinGreek = 0x0207, kCFStringEncodingISOLatinHebrew = 0x0208, kCFStringEncodingISOLatin5 = 0x0209, kCFStringEncodingISOLatin6 = 0x020A, kCFStringEncodingISOLatinThai = 0x020B, kCFStringEncodingISOLatin7 = 0x020D, kCFStringEncodingISOLatin8 = 0x020E, kCFStringEncodingISOLatin9 = 0x020F, kCFStringEncodingISOLatin10 = 0x0210, kCFStringEncodingDOSLatinUS = 0x0400, kCFStringEncodingDOSGreek = 0x0405, kCFStringEncodingDOSBalticRim = 0x0406, kCFStringEncodingDOSLatin1 = 0x0410, kCFStringEncodingDOSGreek1 = 0x0411, kCFStringEncodingDOSLatin2 = 0x0412, kCFStringEncodingDOSCyrillic = 0x0413, kCFStringEncodingDOSTurkish = 0x0414, kCFStringEncodingDOSPortuguese = 0x0415, kCFStringEncodingDOSIcelandic = 0x0416, kCFStringEncodingDOSHebrew = 0x0417, kCFStringEncodingDOSCanadianFrench = 0x0418, kCFStringEncodingDOSArabic = 0x0419, kCFStringEncodingDOSNordic = 0x041A, kCFStringEncodingDOSRussian = 0x041B, kCFStringEncodingDOSGreek2 = 0x041C, kCFStringEncodingDOSThai = 0x041D, kCFStringEncodingDOSJapanese = 0x0420, kCFStringEncodingDOSChineseSimplif = 0x0421, kCFStringEncodingDOSKorean = 0x0422, kCFStringEncodingDOSChineseTrad = 0x0423, kCFStringEncodingWindowsLatin2 = 0x0501, kCFStringEncodingWindowsCyrillic = 0x0502, kCFStringEncodingWindowsGreek = 0x0503, kCFStringEncodingWindowsLatin5 = 0x0504, kCFStringEncodingWindowsHebrew = 0x0505, kCFStringEncodingWindowsArabic = 0x0506, kCFStringEncodingWindowsBalticRim = 0x0507, kCFStringEncodingWindowsVietnamese = 0x0508, kCFStringEncodingWindowsKoreanJohab = 0x0510, kCFStringEncodingANSEL = 0x0601, kCFStringEncodingJIS_X0201_76 = 0x0620, kCFStringEncodingJIS_X0208_83 = 0x0621, kCFStringEncodingJIS_X0208_90 = 0x0622, kCFStringEncodingJIS_X0212_90 = 0x0623, kCFStringEncodingJIS_C6226_78 = 0x0624, kCFStringEncodingShiftJIS_X0213 __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x0628, kCFStringEncodingShiftJIS_X0213_MenKuTen = 0x0629, kCFStringEncodingGB_2312_80 = 0x0630, kCFStringEncodingGBK_95 = 0x0631, kCFStringEncodingGB_18030_2000 = 0x0632, kCFStringEncodingKSC_5601_87 = 0x0640, kCFStringEncodingKSC_5601_92_Johab = 0x0641, kCFStringEncodingCNS_11643_92_P1 = 0x0651, kCFStringEncodingCNS_11643_92_P2 = 0x0652, kCFStringEncodingCNS_11643_92_P3 = 0x0653, kCFStringEncodingISO_2022_JP = 0x0820, kCFStringEncodingISO_2022_JP_2 = 0x0821, kCFStringEncodingISO_2022_JP_1 = 0x0822, kCFStringEncodingISO_2022_JP_3 = 0x0823, kCFStringEncodingISO_2022_CN = 0x0830, kCFStringEncodingISO_2022_CN_EXT = 0x0831, kCFStringEncodingISO_2022_KR = 0x0840, kCFStringEncodingEUC_JP = 0x0920, kCFStringEncodingEUC_CN = 0x0930, kCFStringEncodingEUC_TW = 0x0931, kCFStringEncodingEUC_KR = 0x0940, kCFStringEncodingShiftJIS = 0x0A01, kCFStringEncodingKOI8_R = 0x0A02, kCFStringEncodingBig5 = 0x0A03, kCFStringEncodingMacRomanLatin1 = 0x0A04, kCFStringEncodingHZ_GB_2312 = 0x0A05, kCFStringEncodingBig5_HKSCS_1999 = 0x0A06, kCFStringEncodingVISCII = 0x0A07, kCFStringEncodingKOI8_U = 0x0A08, kCFStringEncodingBig5_E = 0x0A09, kCFStringEncodingNextStepJapanese = 0x0B02, kCFStringEncodingEBCDIC_US = 0x0C01, kCFStringEncodingEBCDIC_CP037 = 0x0C02, kCFStringEncodingUTF7 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04000100, kCFStringEncodingUTF7_IMAP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x0A10, kCFStringEncodingShiftJIS_X0213_00 = 0x0628 }; } extern "C" { typedef const void * (*CFTreeRetainCallBack)(const void *info); typedef void (*CFTreeReleaseCallBack)(const void *info); typedef CFStringRef (*CFTreeCopyDescriptionCallBack)(const void *info); typedef struct { CFIndex version; void * info; CFTreeRetainCallBack retain; CFTreeReleaseCallBack release; CFTreeCopyDescriptionCallBack copyDescription; } CFTreeContext; typedef void (*CFTreeApplierFunction)(const void *value, void *context); typedef struct __attribute__((objc_bridge_mutable(id))) __CFTree * CFTreeRef; extern CFTypeID CFTreeGetTypeID(void); extern CFTreeRef CFTreeCreate(CFAllocatorRef allocator, const CFTreeContext *context); extern CFTreeRef CFTreeGetParent(CFTreeRef tree); extern CFTreeRef CFTreeGetNextSibling(CFTreeRef tree); extern CFTreeRef CFTreeGetFirstChild(CFTreeRef tree); extern void CFTreeGetContext(CFTreeRef tree, CFTreeContext *context); extern CFIndex CFTreeGetChildCount(CFTreeRef tree); extern CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, CFIndex idx); extern void CFTreeGetChildren(CFTreeRef tree, CFTreeRef *children); extern void CFTreeApplyFunctionToChildren(CFTreeRef tree, CFTreeApplierFunction __attribute__((noescape)) applier, void *context); extern CFTreeRef CFTreeFindRoot(CFTreeRef tree); extern void CFTreeSetContext(CFTreeRef tree, const CFTreeContext *context); extern void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild); extern void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild); extern void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling); extern void CFTreeRemove(CFTreeRef tree); extern void CFTreeRemoveAllChildren(CFTreeRef tree); extern void CFTreeSortChildren(CFTreeRef tree, CFComparatorFunction comparator, void *context); } extern "C" { extern Boolean CFURLCreateDataAndPropertiesFromResource(CFAllocatorRef alloc, CFURLRef url, CFDataRef *resourceData, CFDictionaryRef *properties, CFArrayRef desiredProperties, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys."))); extern Boolean CFURLWriteDataAndPropertiesToResource(CFURLRef url, CFDataRef dataToWrite, CFDictionaryRef propertiesToWrite, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For resource data, use the CFWriteStream API. For file resource properties, use CFURLSetResourcePropertiesForKeys."))); extern Boolean CFURLDestroyResource(CFURLRef url, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLGetFileSystemRepresentation and removefile(3) instead."))); extern CFTypeRef CFURLCreatePropertyFromResource(CFAllocatorRef alloc, CFURLRef url, CFStringRef property, SInt32 *errorCode) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="For file resource properties, use CFURLCopyResourcePropertyForKey."))); typedef CFIndex CFURLError; enum { kCFURLUnknownError = -10L, kCFURLUnknownSchemeError = -11L, kCFURLResourceNotFoundError = -12L, kCFURLResourceAccessViolationError = -13L, kCFURLRemoteHostUnavailableError = -14L, kCFURLImproperArgumentsError = -15L, kCFURLUnknownPropertyKeyError = -16L, kCFURLPropertyKeyUnavailableError = -17L, kCFURLTimeoutError = -18L } __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFError codes instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFError codes instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFError codes instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFError codes instead"))); extern const CFStringRef kCFURLFileExists __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLResourceIsReachable instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLResourceIsReachable instead."))); extern const CFStringRef kCFURLFileDirectoryContents __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use the CFURLEnumerator API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use the CFURLEnumerator API instead."))); extern const CFStringRef kCFURLFileLength __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSizeKey instead."))); extern const CFStringRef kCFURLFileLastModificationTime __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLContentModificationDateKey instead."))); extern const CFStringRef kCFURLFilePOSIXMode __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))); extern const CFStringRef kCFURLFileOwnerID __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use CFURLCopyResourcePropertyForKey with kCFURLFileSecurityKey and then the CFFileSecurity API instead."))); extern const CFStringRef kCFURLHTTPStatusCode __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSHTTPURLResponse methods instead."))); extern const CFStringRef kCFURLHTTPStatusLine __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSHTTPURLResponse methods instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSHTTPURLResponse methods instead."))); } extern "C" { typedef const struct __attribute__((objc_bridge(id))) __CFUUID * CFUUIDRef; typedef struct { UInt8 byte0; UInt8 byte1; UInt8 byte2; UInt8 byte3; UInt8 byte4; UInt8 byte5; UInt8 byte6; UInt8 byte7; UInt8 byte8; UInt8 byte9; UInt8 byte10; UInt8 byte11; UInt8 byte12; UInt8 byte13; UInt8 byte14; UInt8 byte15; } CFUUIDBytes; extern CFTypeID CFUUIDGetTypeID(void); extern CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc); extern CFUUIDRef CFUUIDCreateWithBytes(CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1, UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5, UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9, UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13, UInt8 byte14, UInt8 byte15); extern CFUUIDRef CFUUIDCreateFromString(CFAllocatorRef alloc, CFStringRef uuidStr); extern CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid); extern CFUUIDRef CFUUIDGetConstantUUIDWithBytes(CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1, UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5, UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9, UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13, UInt8 byte14, UInt8 byte15); extern CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid); extern CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes); } extern "C" { extern CFURLRef CFCopyHomeDirectoryURL(void) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); } typedef integer_t cpu_type_t; typedef integer_t cpu_subtype_t; typedef integer_t cpu_threadtype_t; extern "C" { typedef struct __attribute__((objc_bridge(id))) __CFBundle *CFBundleRef; typedef struct __attribute__((objc_bridge(id))) __CFBundle *CFPlugInRef; extern const CFStringRef kCFBundleInfoDictionaryVersionKey; extern const CFStringRef kCFBundleExecutableKey; extern const CFStringRef kCFBundleIdentifierKey; extern const CFStringRef kCFBundleVersionKey; extern const CFStringRef kCFBundleDevelopmentRegionKey; extern const CFStringRef kCFBundleNameKey; extern const CFStringRef kCFBundleLocalizationsKey; extern CFBundleRef CFBundleGetMainBundle(void); extern CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID); extern CFArrayRef CFBundleGetAllBundles(void); extern CFTypeID CFBundleGetTypeID(void); extern CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL); extern CFArrayRef CFBundleCreateBundlesFromDirectory(CFAllocatorRef allocator, CFURLRef directoryURL, CFStringRef bundleType); extern CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle); extern CFTypeRef CFBundleGetValueForInfoDictionaryKey(CFBundleRef bundle, CFStringRef key); extern CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle); extern CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle); extern void CFBundleGetPackageInfo(CFBundleRef bundle, UInt32 *packageType, UInt32 *packageCreator); extern CFStringRef CFBundleGetIdentifier(CFBundleRef bundle); extern UInt32 CFBundleGetVersionNumber(CFBundleRef bundle); extern CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle); extern CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle); extern CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle); extern CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle); extern CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle); extern CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle); extern CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle); extern CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory(CFURLRef bundleURL); extern Boolean CFBundleGetPackageInfoInDirectory(CFURLRef url, UInt32 *packageType, UInt32 *packageCreator); extern CFURLRef CFBundleCopyResourceURL(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName); extern CFArrayRef CFBundleCopyResourceURLsOfType(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName); extern CFStringRef CFBundleCopyLocalizedString(CFBundleRef bundle, CFStringRef key, CFStringRef value, CFStringRef tableName) __attribute__((format_arg(2))); extern CFURLRef CFBundleCopyResourceURLInDirectory(CFURLRef bundleURL, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName); extern CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory(CFURLRef bundleURL, CFStringRef resourceType, CFStringRef subDirName); extern CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle); extern CFArrayRef CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray); extern CFArrayRef CFBundleCopyLocalizationsForPreferences(CFArrayRef locArray, CFArrayRef prefArray); extern CFURLRef CFBundleCopyResourceURLForLocalization(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName); extern CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName); extern CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url); extern CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url); extern CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle); enum { kCFBundleExecutableArchitectureI386 = 0x00000007, kCFBundleExecutableArchitecturePPC = 0x00000012, kCFBundleExecutableArchitectureX86_64 = 0x01000007, kCFBundleExecutableArchitecturePPC64 = 0x01000012, kCFBundleExecutableArchitectureARM64 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) = 0x0100000c, } __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFBundlePreflightExecutable(CFBundleRef bundle, CFErrorRef *error) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFBundleLoadExecutableAndReturnError(CFBundleRef bundle, CFErrorRef *error) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFBundleLoadExecutable(CFBundleRef bundle); extern Boolean CFBundleIsExecutableLoaded(CFBundleRef bundle); extern void CFBundleUnloadExecutable(CFBundleRef bundle); extern void *CFBundleGetFunctionPointerForName(CFBundleRef bundle, CFStringRef functionName); extern void CFBundleGetFunctionPointersForNames(CFBundleRef bundle, CFArrayRef functionNames, void *ftbl[]); extern void *CFBundleGetDataPointerForName(CFBundleRef bundle, CFStringRef symbolName); extern void CFBundleGetDataPointersForNames(CFBundleRef bundle, CFArrayRef symbolNames, void *stbl[]); extern CFURLRef CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle, CFStringRef executableName); extern Boolean CFBundleIsExecutableLoadable(CFBundleRef bundle) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern Boolean CFBundleIsExecutableLoadableForURL(CFURLRef url) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern Boolean CFBundleIsArchitectureLoadable(cpu_type_t arch) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle); typedef int CFBundleRefNum; extern CFBundleRefNum CFBundleOpenBundleResourceMap(CFBundleRef bundle) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFBundleOpenBundleResourceFiles(CFBundleRef bundle, CFBundleRefNum *refNum, CFBundleRefNum *localizedRefNum) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern void CFBundleCloseBundleResourceMap(CFBundleRef bundle, CFBundleRefNum refNum) __attribute__((availability(macosx,introduced=10.0,deprecated=10.15,message="The Carbon Resource Manager is deprecated. This should only be used to access Resource Manager-style resources in old bundles."))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(NSMessagePort))) __CFMessagePort * CFMessagePortRef; enum { kCFMessagePortSuccess = 0, kCFMessagePortSendTimeout = -1, kCFMessagePortReceiveTimeout = -2, kCFMessagePortIsInvalid = -3, kCFMessagePortTransportError = -4, kCFMessagePortBecameInvalidError = -5 }; typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFMessagePortContext; typedef CFDataRef (*CFMessagePortCallBack)(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info); typedef void (*CFMessagePortInvalidationCallBack)(CFMessagePortRef ms, void *info); extern CFTypeID CFMessagePortGetTypeID(void); extern CFMessagePortRef CFMessagePortCreateLocal(CFAllocatorRef allocator, CFStringRef name, CFMessagePortCallBack callout, CFMessagePortContext *context, Boolean *shouldFreeInfo); extern CFMessagePortRef CFMessagePortCreateRemote(CFAllocatorRef allocator, CFStringRef name); extern Boolean CFMessagePortIsRemote(CFMessagePortRef ms); extern CFStringRef CFMessagePortGetName(CFMessagePortRef ms); extern Boolean CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName); extern void CFMessagePortGetContext(CFMessagePortRef ms, CFMessagePortContext *context); extern void CFMessagePortInvalidate(CFMessagePortRef ms); extern Boolean CFMessagePortIsValid(CFMessagePortRef ms); extern CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack(CFMessagePortRef ms); extern void CFMessagePortSetInvalidationCallBack(CFMessagePortRef ms, CFMessagePortInvalidationCallBack callout); extern SInt32 CFMessagePortSendRequest(CFMessagePortRef remote, SInt32 msgid, CFDataRef data, CFTimeInterval sendTimeout, CFTimeInterval rcvTimeout, CFStringRef replyMode, CFDataRef *returnData); extern CFRunLoopSourceRef CFMessagePortCreateRunLoopSource(CFAllocatorRef allocator, CFMessagePortRef local, CFIndex order); extern void CFMessagePortSetDispatchQueue(CFMessagePortRef ms, dispatch_queue_t queue) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { extern const CFStringRef kCFPlugInDynamicRegistrationKey; extern const CFStringRef kCFPlugInDynamicRegisterFunctionKey; extern const CFStringRef kCFPlugInUnloadFunctionKey; extern const CFStringRef kCFPlugInFactoriesKey; extern const CFStringRef kCFPlugInTypesKey; typedef void (*CFPlugInDynamicRegisterFunction)(CFPlugInRef plugIn); typedef void (*CFPlugInUnloadFunction)(CFPlugInRef plugIn); typedef void *(*CFPlugInFactoryFunction)(CFAllocatorRef allocator, CFUUIDRef typeUUID); extern CFTypeID CFPlugInGetTypeID(void); extern CFPlugInRef CFPlugInCreate(CFAllocatorRef allocator, CFURLRef plugInURL); extern CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn); extern void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, Boolean flag); extern Boolean CFPlugInIsLoadOnDemand(CFPlugInRef plugIn); extern CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID) __attribute__((cf_returns_retained)); extern CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn(CFUUIDRef typeUUID, CFPlugInRef plugIn) __attribute__((cf_returns_retained)); extern void *CFPlugInInstanceCreate(CFAllocatorRef allocator, CFUUIDRef factoryUUID, CFUUIDRef typeUUID); extern Boolean CFPlugInRegisterFactoryFunction(CFUUIDRef factoryUUID, CFPlugInFactoryFunction func); extern Boolean CFPlugInRegisterFactoryFunctionByName(CFUUIDRef factoryUUID, CFPlugInRef plugIn, CFStringRef functionName); extern Boolean CFPlugInUnregisterFactory(CFUUIDRef factoryUUID); extern Boolean CFPlugInRegisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID); extern Boolean CFPlugInUnregisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID); extern void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID); extern void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID); typedef struct __attribute__((objc_bridge(id))) __CFPlugInInstance *CFPlugInInstanceRef; typedef Boolean (*CFPlugInInstanceGetInterfaceFunction)(CFPlugInInstanceRef instance, CFStringRef interfaceName, void **ftbl); typedef void (*CFPlugInInstanceDeallocateInstanceDataFunction)(void *instanceData); extern Boolean CFPlugInInstanceGetInterfaceFunctionTable(CFPlugInInstanceRef instance, CFStringRef interfaceName, void **ftbl); extern CFStringRef CFPlugInInstanceGetFactoryName(CFPlugInInstanceRef instance) __attribute__((cf_returns_retained)); extern void *CFPlugInInstanceGetInstanceData(CFPlugInInstanceRef instance); extern CFTypeID CFPlugInInstanceGetTypeID(void); extern CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize(CFAllocatorRef allocator, CFIndex instanceDataSize, CFPlugInInstanceDeallocateInstanceDataFunction deallocateInstanceFunction, CFStringRef factoryName, CFPlugInInstanceGetInterfaceFunction getInterfaceFunction); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(NSMachPort))) __CFMachPort * CFMachPortRef; typedef struct { CFIndex version; void * info; const void *(*retain)(const void *info); void (*release)(const void *info); CFStringRef (*copyDescription)(const void *info); } CFMachPortContext; typedef void (*CFMachPortCallBack)(CFMachPortRef port, void *msg, CFIndex size, void *info); typedef void (*CFMachPortInvalidationCallBack)(CFMachPortRef port, void *info); extern CFTypeID CFMachPortGetTypeID(void); extern CFMachPortRef CFMachPortCreate(CFAllocatorRef allocator, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo); extern CFMachPortRef CFMachPortCreateWithPort(CFAllocatorRef allocator, mach_port_t portNum, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo); extern mach_port_t CFMachPortGetPort(CFMachPortRef port); extern void CFMachPortGetContext(CFMachPortRef port, CFMachPortContext *context); extern void CFMachPortInvalidate(CFMachPortRef port); extern Boolean CFMachPortIsValid(CFMachPortRef port); extern CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack(CFMachPortRef port); extern void CFMachPortSetInvalidationCallBack(CFMachPortRef port, CFMachPortInvalidationCallBack callout); extern CFRunLoopSourceRef CFMachPortCreateRunLoopSource(CFAllocatorRef allocator, CFMachPortRef port, CFIndex order); } extern "C" { typedef const struct __attribute__((objc_bridge(NSAttributedString))) __CFAttributedString *CFAttributedStringRef; typedef struct __attribute__((objc_bridge_mutable(NSMutableAttributedString))) __CFAttributedString *CFMutableAttributedStringRef; extern CFTypeID CFAttributedStringGetTypeID(void); extern CFAttributedStringRef CFAttributedStringCreate(CFAllocatorRef alloc, CFStringRef str, CFDictionaryRef attributes); extern CFAttributedStringRef CFAttributedStringCreateWithSubstring(CFAllocatorRef alloc, CFAttributedStringRef aStr, CFRange range); extern CFAttributedStringRef CFAttributedStringCreateCopy(CFAllocatorRef alloc, CFAttributedStringRef aStr); extern CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr); extern CFIndex CFAttributedStringGetLength(CFAttributedStringRef aStr); extern CFDictionaryRef CFAttributedStringGetAttributes(CFAttributedStringRef aStr, CFIndex loc, CFRange *effectiveRange); extern CFTypeRef CFAttributedStringGetAttribute(CFAttributedStringRef aStr, CFIndex loc, CFStringRef attrName, CFRange *effectiveRange); extern CFDictionaryRef CFAttributedStringGetAttributesAndLongestEffectiveRange(CFAttributedStringRef aStr, CFIndex loc, CFRange inRange, CFRange *longestEffectiveRange); extern CFTypeRef CFAttributedStringGetAttributeAndLongestEffectiveRange(CFAttributedStringRef aStr, CFIndex loc, CFStringRef attrName, CFRange inRange, CFRange *longestEffectiveRange); extern CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFAttributedStringRef aStr); extern CFMutableAttributedStringRef CFAttributedStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength); extern void CFAttributedStringReplaceString(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef replacement); extern CFMutableStringRef CFAttributedStringGetMutableString(CFMutableAttributedStringRef aStr); extern void CFAttributedStringSetAttributes(CFMutableAttributedStringRef aStr, CFRange range, CFDictionaryRef replacement, Boolean clearOtherAttributes); extern void CFAttributedStringSetAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, CFTypeRef value); extern void CFAttributedStringRemoveAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName); extern void CFAttributedStringReplaceAttributedString(CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement); extern void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr); extern void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr); } extern "C" { typedef const struct __attribute__((objc_bridge_mutable(id))) __CFURLEnumerator *CFURLEnumeratorRef; extern CFTypeID CFURLEnumeratorGetTypeID( void ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFOptionFlags CFURLEnumeratorOptions; enum { kCFURLEnumeratorDefaultBehavior = 0, kCFURLEnumeratorDescendRecursively = 1UL << 0, kCFURLEnumeratorSkipInvisibles = 1UL << 1, kCFURLEnumeratorGenerateFileReferenceURLs = 1UL << 2, kCFURLEnumeratorSkipPackageContents = 1UL << 3, kCFURLEnumeratorIncludeDirectoriesPreOrder = 1UL << 4, kCFURLEnumeratorIncludeDirectoriesPostOrder = 1UL << 5, kCFURLEnumeratorGenerateRelativePathURLs __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 6, }; extern CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL( CFAllocatorRef alloc, CFURLRef directoryURL, CFURLEnumeratorOptions option, CFArrayRef propertyKeys ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes( CFAllocatorRef alloc, CFURLEnumeratorOptions option, CFArrayRef propertyKeys ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFIndex CFURLEnumeratorResult; enum { kCFURLEnumeratorSuccess = 1, kCFURLEnumeratorEnd = 2, kCFURLEnumeratorError = 3, kCFURLEnumeratorDirectoryPostOrderSuccess = 4, }; extern CFURLEnumeratorResult CFURLEnumeratorGetNextURL( CFURLEnumeratorRef enumerator, CFURLRef *url, CFErrorRef *error ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFURLEnumeratorSkipDescendents( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFURLEnumeratorGetDescendentLevel( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFURLEnumeratorGetSourceDidChange( CFURLEnumeratorRef enumerator ) __attribute__((availability(macos,introduced=10.6,deprecated=10.7,message="Use File System Events API instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=5.0,message="Use File System Events API instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use File System Events API instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use File System Events API instead"))); } typedef union { unsigned char g_guid[16]; unsigned int g_guid_asint[16 / sizeof(unsigned int)]; } guid_t; #pragma pack(1) typedef struct { u_int8_t sid_kind; u_int8_t sid_authcount; u_int8_t sid_authority[6]; u_int32_t sid_authorities[16]; } ntsid_t; #pragma pack() struct kauth_identity_extlookup { u_int32_t el_seqno; u_int32_t el_result; u_int32_t el_flags; __darwin_pid_t el_info_pid; u_int64_t el_extend; u_int32_t el_info_reserved_1; uid_t el_uid; guid_t el_uguid; u_int32_t el_uguid_valid; ntsid_t el_usid; u_int32_t el_usid_valid; gid_t el_gid; guid_t el_gguid; u_int32_t el_gguid_valid; ntsid_t el_gsid; u_int32_t el_gsid_valid; u_int32_t el_member_valid; u_int32_t el_sup_grp_cnt; gid_t el_sup_groups[16]; }; struct kauth_cache_sizes { u_int32_t kcs_group_size; u_int32_t kcs_id_size; }; typedef u_int32_t kauth_ace_rights_t; struct kauth_ace { guid_t ace_applicable; u_int32_t ace_flags; kauth_ace_rights_t ace_rights; }; typedef struct kauth_ace *kauth_ace_t; struct kauth_acl { u_int32_t acl_entrycount; u_int32_t acl_flags; struct kauth_ace acl_ace[1]; }; typedef struct kauth_acl *kauth_acl_t; struct kauth_filesec { u_int32_t fsec_magic; guid_t fsec_owner; guid_t fsec_group; struct kauth_acl fsec_acl; }; typedef struct kauth_filesec *kauth_filesec_t; typedef enum { ACL_READ_DATA = (1<<1), ACL_LIST_DIRECTORY = (1<<1), ACL_WRITE_DATA = (1<<2), ACL_ADD_FILE = (1<<2), ACL_EXECUTE = (1<<3), ACL_SEARCH = (1<<3), ACL_DELETE = (1<<4), ACL_APPEND_DATA = (1<<5), ACL_ADD_SUBDIRECTORY = (1<<5), ACL_DELETE_CHILD = (1<<6), ACL_READ_ATTRIBUTES = (1<<7), ACL_WRITE_ATTRIBUTES = (1<<8), ACL_READ_EXTATTRIBUTES = (1<<9), ACL_WRITE_EXTATTRIBUTES = (1<<10), ACL_READ_SECURITY = (1<<11), ACL_WRITE_SECURITY = (1<<12), ACL_CHANGE_OWNER = (1<<13), ACL_SYNCHRONIZE = (1<<20), } acl_perm_t; typedef enum { ACL_UNDEFINED_TAG = 0, ACL_EXTENDED_ALLOW = 1, ACL_EXTENDED_DENY = 2 } acl_tag_t; typedef enum { ACL_TYPE_EXTENDED = 0x00000100, ACL_TYPE_ACCESS = 0x00000000, ACL_TYPE_DEFAULT = 0x00000001, ACL_TYPE_AFS = 0x00000002, ACL_TYPE_CODA = 0x00000003, ACL_TYPE_NTFS = 0x00000004, ACL_TYPE_NWFS = 0x00000005 } acl_type_t; typedef enum { ACL_FIRST_ENTRY = 0, ACL_NEXT_ENTRY = -1, ACL_LAST_ENTRY = -2 } acl_entry_id_t; typedef enum { ACL_FLAG_DEFER_INHERIT = (1 << 0), ACL_FLAG_NO_INHERIT = (1<<17), ACL_ENTRY_INHERITED = (1<<4), ACL_ENTRY_FILE_INHERIT = (1<<5), ACL_ENTRY_DIRECTORY_INHERIT = (1<<6), ACL_ENTRY_LIMIT_INHERIT = (1<<7), ACL_ENTRY_ONLY_INHERIT = (1<<8) } acl_flag_t; struct _acl; struct _acl_entry; struct _acl_permset; struct _acl_flagset; typedef struct _acl *acl_t; typedef struct _acl_entry *acl_entry_t; typedef struct _acl_permset *acl_permset_t; typedef struct _acl_flagset *acl_flagset_t; typedef u_int64_t acl_permset_mask_t; extern "C" { extern acl_t acl_dup(acl_t acl); extern int acl_free(void *obj_p); extern acl_t acl_init(int count); extern int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); extern int acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p); extern int acl_create_entry_np(acl_t *acl_p, acl_entry_t *entry_p, int entry_index); extern int acl_delete_entry(acl_t acl, acl_entry_t entry_d); extern int acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p); extern int acl_valid(acl_t acl); extern int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl); extern int acl_valid_file_np(const char *path, acl_type_t type, acl_t acl); extern int acl_valid_link_np(const char *path, acl_type_t type, acl_t acl); extern int acl_add_perm(acl_permset_t permset_d, acl_perm_t perm); extern int acl_calc_mask(acl_t *acl_p); extern int acl_clear_perms(acl_permset_t permset_d); extern int acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm); extern int acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm); extern int acl_get_permset(acl_entry_t entry_d, acl_permset_t *permset_p); extern int acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d); extern int acl_maximal_permset_mask_np(acl_permset_mask_t * mask_p) __attribute__((availability(ios,introduced=4.3))); extern int acl_get_permset_mask_np(acl_entry_t entry_d, acl_permset_mask_t * mask_p) __attribute__((availability(ios,introduced=4.3))); extern int acl_set_permset_mask_np(acl_entry_t entry_d, acl_permset_mask_t mask) __attribute__((availability(ios,introduced=4.3))); extern int acl_add_flag_np(acl_flagset_t flagset_d, acl_flag_t flag); extern int acl_clear_flags_np(acl_flagset_t flagset_d); extern int acl_delete_flag_np(acl_flagset_t flagset_d, acl_flag_t flag); extern int acl_get_flag_np(acl_flagset_t flagset_d, acl_flag_t flag); extern int acl_get_flagset_np(void *obj_p, acl_flagset_t *flagset_p); extern int acl_set_flagset_np(void *obj_p, acl_flagset_t flagset_d); extern void *acl_get_qualifier(acl_entry_t entry_d); extern int acl_get_tag_type(acl_entry_t entry_d, acl_tag_t *tag_type_p); extern int acl_set_qualifier(acl_entry_t entry_d, const void *tag_qualifier_p); extern int acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type); extern int acl_delete_def_file(const char *path_p); extern acl_t acl_get_fd(int fd); extern acl_t acl_get_fd_np(int fd, acl_type_t type); extern acl_t acl_get_file(const char *path_p, acl_type_t type); extern acl_t acl_get_link_np(const char *path_p, acl_type_t type); extern int acl_set_fd(int fd, acl_t acl); extern int acl_set_fd_np(int fd, acl_t acl, acl_type_t acl_type); extern int acl_set_file(const char *path_p, acl_type_t type, acl_t acl); extern int acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl); extern ssize_t acl_copy_ext(void *buf_p, acl_t acl, ssize_t size); extern ssize_t acl_copy_ext_native(void *buf_p, acl_t acl, ssize_t size); extern acl_t acl_copy_int(const void *buf_p); extern acl_t acl_copy_int_native(const void *buf_p); extern acl_t acl_from_text(const char *buf_p); extern ssize_t acl_size(acl_t acl); extern char *acl_to_text(acl_t acl, ssize_t *len_p); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(NSFileSecurity))) __CFFileSecurity* CFFileSecurityRef; extern CFTypeID CFFileSecurityGetTypeID(void) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFFileSecurityRef CFFileSecurityCreateCopy(CFAllocatorRef allocator, CFFileSecurityRef fileSec) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityCopyOwnerUUID(CFFileSecurityRef fileSec, CFUUIDRef *ownerUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetOwnerUUID(CFFileSecurityRef fileSec, CFUUIDRef ownerUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityCopyGroupUUID(CFFileSecurityRef fileSec, CFUUIDRef *groupUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetGroupUUID(CFFileSecurityRef fileSec, CFUUIDRef groupUUID) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityCopyAccessControlList(CFFileSecurityRef fileSec, acl_t *accessControlList) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetAccessControlList(CFFileSecurityRef fileSec, acl_t accessControlList) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityGetOwner(CFFileSecurityRef fileSec, uid_t *owner) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetOwner(CFFileSecurityRef fileSec, uid_t owner) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityGetGroup(CFFileSecurityRef fileSec, gid_t *group) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetGroup(CFFileSecurityRef fileSec, gid_t group) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityGetMode(CFFileSecurityRef fileSec, mode_t *mode) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecuritySetMode(CFFileSecurityRef fileSec, mode_t mode) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef CFOptionFlags CFFileSecurityClearOptions; enum { kCFFileSecurityClearOwner = 1UL << 0, kCFFileSecurityClearGroup = 1UL << 1, kCFFileSecurityClearMode = 1UL << 2, kCFFileSecurityClearOwnerUUID = 1UL << 3, kCFFileSecurityClearGroupUUID = 1UL << 4, kCFFileSecurityClearAccessControlList = 1UL << 5 } __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileSecurityClearProperties(CFFileSecurityRef fileSec, CFFileSecurityClearOptions clearPropertyMask) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { extern CFStringRef CFStringTokenizerCopyBestStringLanguage(CFStringRef string, CFRange range) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef struct __attribute__((objc_bridge_mutable(id))) __CFStringTokenizer * CFStringTokenizerRef; enum { kCFStringTokenizerUnitWord = 0, kCFStringTokenizerUnitSentence = 1, kCFStringTokenizerUnitParagraph = 2, kCFStringTokenizerUnitLineBreak = 3, kCFStringTokenizerUnitWordBoundary = 4, kCFStringTokenizerAttributeLatinTranscription = 1UL << 16, kCFStringTokenizerAttributeLanguage = 1UL << 17, }; typedef CFOptionFlags CFStringTokenizerTokenType; enum { kCFStringTokenizerTokenNone = 0, kCFStringTokenizerTokenNormal = 1UL << 0, kCFStringTokenizerTokenHasSubTokensMask = 1UL << 1, kCFStringTokenizerTokenHasDerivedSubTokensMask = 1UL << 2, kCFStringTokenizerTokenHasHasNumbersMask = 1UL << 3, kCFStringTokenizerTokenHasNonLettersMask = 1UL << 4, kCFStringTokenizerTokenIsCJWordMask = 1UL << 5 }; extern CFTypeID CFStringTokenizerGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringTokenizerRef CFStringTokenizerCreate(CFAllocatorRef alloc, CFStringRef string, CFRange range, CFOptionFlags options, CFLocaleRef locale) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFStringTokenizerSetString(CFStringTokenizerRef tokenizer, CFStringRef string, CFRange range) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringTokenizerTokenType CFStringTokenizerGoToTokenAtIndex(CFStringTokenizerRef tokenizer, CFIndex index) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFStringTokenizerTokenType CFStringTokenizerAdvanceToNextToken(CFStringTokenizerRef tokenizer) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFRange CFStringTokenizerGetCurrentTokenRange(CFStringTokenizerRef tokenizer) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFTypeRef CFStringTokenizerCopyCurrentTokenAttribute(CFStringTokenizerRef tokenizer, CFOptionFlags attribute) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFIndex CFStringTokenizerGetCurrentSubTokens(CFStringTokenizerRef tokenizer, CFRange *ranges, CFIndex maxRangeLength, CFMutableArrayRef derivedSubTokens) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef int CFFileDescriptorNativeDescriptor; typedef struct __attribute__((objc_bridge_mutable(id))) __CFFileDescriptor * CFFileDescriptorRef; enum { kCFFileDescriptorReadCallBack = 1UL << 0, kCFFileDescriptorWriteCallBack = 1UL << 1 }; typedef void (*CFFileDescriptorCallBack)(CFFileDescriptorRef f, CFOptionFlags callBackTypes, void *info); typedef struct { CFIndex version; void * info; void * (*retain)(void *info); void (*release)(void *info); CFStringRef (*copyDescription)(void *info); } CFFileDescriptorContext; extern CFTypeID CFFileDescriptorGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFFileDescriptorRef CFFileDescriptorCreate(CFAllocatorRef allocator, CFFileDescriptorNativeDescriptor fd, Boolean closeOnInvalidate, CFFileDescriptorCallBack callout, const CFFileDescriptorContext *context) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFFileDescriptorNativeDescriptor CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFFileDescriptorGetContext(CFFileDescriptorRef f, CFFileDescriptorContext *context) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFFileDescriptorEnableCallBacks(CFFileDescriptorRef f, CFOptionFlags callBackTypes) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFFileDescriptorDisableCallBacks(CFFileDescriptorRef f, CFOptionFlags callBackTypes) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern void CFFileDescriptorInvalidate(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern Boolean CFFileDescriptorIsValid(CFFileDescriptorRef f) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource(CFAllocatorRef allocator, CFFileDescriptorRef f, CFIndex order) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } extern "C" { typedef struct __attribute__((objc_bridge_mutable(id))) __CFUserNotification * CFUserNotificationRef; typedef void (*CFUserNotificationCallBack)(CFUserNotificationRef userNotification, CFOptionFlags responseFlags); extern CFTypeID CFUserNotificationGetTypeID(void) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern CFUserNotificationRef CFUserNotificationCreate(CFAllocatorRef allocator, CFTimeInterval timeout, CFOptionFlags flags, SInt32 *error, CFDictionaryRef dictionary) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFUserNotificationReceiveResponse(CFUserNotificationRef userNotification, CFTimeInterval timeout, CFOptionFlags *responseFlags) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern CFStringRef CFUserNotificationGetResponseValue(CFUserNotificationRef userNotification, CFStringRef key, CFIndex idx) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern CFDictionaryRef CFUserNotificationGetResponseDictionary(CFUserNotificationRef userNotification) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFUserNotificationUpdate(CFUserNotificationRef userNotification, CFTimeInterval timeout, CFOptionFlags flags, CFDictionaryRef dictionary) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFUserNotificationCancel(CFUserNotificationRef userNotification) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern CFRunLoopSourceRef CFUserNotificationCreateRunLoopSource(CFAllocatorRef allocator, CFUserNotificationRef userNotification, CFUserNotificationCallBack callout, CFIndex order) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFUserNotificationDisplayNotice(CFTimeInterval timeout, CFOptionFlags flags, CFURLRef iconURL, CFURLRef soundURL, CFURLRef localizationURL, CFStringRef alertHeader, CFStringRef alertMessage, CFStringRef defaultButtonTitle) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern SInt32 CFUserNotificationDisplayAlert(CFTimeInterval timeout, CFOptionFlags flags, CFURLRef iconURL, CFURLRef soundURL, CFURLRef localizationURL, CFStringRef alertHeader, CFStringRef alertMessage, CFStringRef defaultButtonTitle, CFStringRef alternateButtonTitle, CFStringRef otherButtonTitle, CFOptionFlags *responseFlags) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); enum { kCFUserNotificationStopAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 0, kCFUserNotificationNoteAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 1, kCFUserNotificationCautionAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2, kCFUserNotificationPlainAlertLevel __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 3 }; enum { kCFUserNotificationDefaultResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 0, kCFUserNotificationAlternateResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 1, kCFUserNotificationOtherResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2, kCFUserNotificationCancelResponse __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 3 }; enum { kCFUserNotificationNoDefaultButtonFlag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 5), kCFUserNotificationUseRadioButtonsFlag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 6) }; static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationCheckBoxChecked(CFIndex i) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(1UL << (8 + i)));} static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationSecureTextField(CFIndex i) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(1UL << (16 + i)));} static __inline__ __attribute__((always_inline)) CFOptionFlags CFUserNotificationPopUpSelection(CFIndex n) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) {return ((CFOptionFlags)(n << 24));} extern const CFStringRef kCFUserNotificationIconURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationSoundURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationLocalizationURLKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationAlertHeaderKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationAlertMessageKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationDefaultButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationAlternateButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationOtherButtonTitleKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationProgressIndicatorValueKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationPopUpTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationTextFieldTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationCheckBoxTitlesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationTextFieldValuesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationPopUpSelectionKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationAlertTopMostKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern const CFStringRef kCFUserNotificationKeyboardTypesKey __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); } #pragma clang assume_nonnull begin extern "C" double NSFoundationVersionNumber; // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_Protocol #define _REWRITER_typedef_Protocol typedef struct objc_object Protocol; typedef struct {} _objc_exc_Protocol; #endif typedef NSString * NSExceptionName __attribute__((swift_wrapper(struct))); typedef NSString * NSRunLoopMode __attribute__((swift_wrapper(struct))); extern "C" NSString *NSStringFromSelector(SEL aSelector); extern "C" SEL NSSelectorFromString(NSString *aSelectorName); extern "C" NSString *NSStringFromClass(Class aClass); extern "C" Class _Nullable NSClassFromString(NSString *aClassName); extern "C" NSString *NSStringFromProtocol(Protocol *proto) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" Protocol * _Nullable NSProtocolFromString(NSString *namestr) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" const char *NSGetSizeAndAlignment(const char *typePtr, NSUInteger * _Nullable sizep, NSUInteger * _Nullable alignp); extern "C" void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))) __attribute__((not_tail_called)); extern "C" void NSLogv(NSString *format, va_list args) __attribute__((format(__NSString__, 1, 0))) __attribute__((not_tail_called)); typedef NSInteger NSComparisonResult; enum { NSOrderedAscending = -1L, NSOrderedSame, NSOrderedDescending }; typedef NSComparisonResult (*NSComparator)(id obj1, id obj2); typedef NSUInteger NSEnumerationOptions; enum { NSEnumerationConcurrent = (1UL << 0), NSEnumerationReverse = (1UL << 1), }; typedef NSUInteger NSSortOptions; enum { NSSortConcurrent = (1UL << 0), NSSortStable = (1UL << 4), }; typedef NSInteger NSQualityOfService; enum { NSQualityOfServiceUserInteractive = 0x21, NSQualityOfServiceUserInitiated = 0x19, NSQualityOfServiceUtility = 0x11, NSQualityOfServiceBackground = 0x09, NSQualityOfServiceDefault = -1 } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); static const NSInteger NSNotFound = 9223372036854775807L; #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef struct _NSZone NSZone; extern "C" NSZone *NSDefaultMallocZone(void) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" NSZone *NSCreateZone(NSUInteger startSize, NSUInteger granularity, BOOL canFree) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void NSRecycleZone(NSZone *zone)__attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void NSSetZoneName(NSZone * _Nullable zone, NSString *name)__attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" NSString *NSZoneName(NSZone * _Nullable zone) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" NSZone * _Nullable NSZoneFromPointer(void *ptr) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void *NSZoneMalloc(NSZone * _Nullable zone, NSUInteger size) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void *NSZoneCalloc(NSZone * _Nullable zone, NSUInteger numElems, NSUInteger byteSize) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void *NSZoneRealloc(NSZone * _Nullable zone, void * _Nullable ptr, NSUInteger size) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); extern "C" void NSZoneFree(NSZone * _Nullable zone, void *ptr) __attribute__((availability(swift, unavailable, message="Zone-based memory management is unavailable"))); static __inline__ __attribute__((always_inline)) __attribute__((ns_returns_retained)) id _Nullable NSMakeCollectable(CFTypeRef _Nullable __attribute__((cf_consumed)) cf) __attribute__((availability(swift, unavailable, message="Garbage Collection is not supported"))); static __inline__ __attribute__((always_inline)) __attribute__((ns_returns_retained)) id _Nullable NSMakeCollectable(CFTypeRef _Nullable __attribute__((cf_consumed)) cf) { return (id)cf; } extern "C" NSUInteger NSPageSize(void); extern "C" NSUInteger NSLogPageSize(void); extern "C" NSUInteger NSRoundUpToMultipleOfPageSize(NSUInteger bytes); extern "C" NSUInteger NSRoundDownToMultipleOfPageSize(NSUInteger bytes); extern "C" void *NSAllocateMemoryPages(NSUInteger bytes); extern "C" void NSDeallocateMemoryPages(void *ptr, NSUInteger bytes); extern "C" void NSCopyMemoryPages(const void *source, void *dest, NSUInteger bytes); extern "C" NSUInteger NSRealMemoryAvailable(void) __attribute__((availability(macos,introduced=10.0,deprecated=10.8,message="Use NSProcessInfo instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message="Use NSProcessInfo instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSProcessInfo instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSProcessInfo instead"))); #pragma clang assume_nonnull end // @class NSInvocation; #ifndef _REWRITER_typedef_NSInvocation #define _REWRITER_typedef_NSInvocation typedef struct objc_object NSInvocation; typedef struct {} _objc_exc_NSInvocation; #endif #ifndef _REWRITER_typedef_NSMethodSignature #define _REWRITER_typedef_NSMethodSignature typedef struct objc_object NSMethodSignature; typedef struct {} _objc_exc_NSMethodSignature; #endif #ifndef _REWRITER_typedef_NSCoder #define _REWRITER_typedef_NSCoder typedef struct objc_object NSCoder; typedef struct {} _objc_exc_NSCoder; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSEnumerator #define _REWRITER_typedef_NSEnumerator typedef struct objc_object NSEnumerator; typedef struct {} _objc_exc_NSEnumerator; #endif // @class Protocol; #ifndef _REWRITER_typedef_Protocol #define _REWRITER_typedef_Protocol typedef struct objc_object Protocol; typedef struct {} _objc_exc_Protocol; #endif #pragma clang assume_nonnull begin // @protocol NSCopying // - (id)copyWithZone:(nullable NSZone *)zone; /* @end */ // @protocol NSMutableCopying // - (id)mutableCopyWithZone:(nullable NSZone *)zone; /* @end */ // @protocol NSCoding // - (void)encodeWithCoder:(NSCoder *)coder; // - (nullable instancetype)initWithCoder:(NSCoder *)coder; /* @end */ // @protocol NSSecureCoding <NSCoding> /* @required */ @property (class, readonly) BOOL supportsSecureCoding; /* @end */ // @interface NSObject (NSCoderMethods) // + (NSInteger)version; // + (void)setVersion:(NSInteger)aVersion; // @property (readonly) Class classForCoder; // - (nullable id)replacementObjectForCoder:(NSCoder *)coder; // - (nullable id)awakeAfterUsingCoder:(NSCoder *)coder __attribute__((ns_consumes_self)) __attribute__((ns_returns_retained)); /* @end */ // @protocol NSDiscardableContent /* @required */ // - (BOOL)beginContentAccess; // - (void)endContentAccess; // - (void)discardContentIfPossible; // - (BOOL)isContentDiscarded; /* @end */ // @interface NSObject (NSDiscardableContentProxy) // @property (readonly, retain) id autoContentAccessingProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone * _Nullable zone) ; extern "C" void NSDeallocateObject(id object) ; extern "C" id NSCopyObject(id object, NSUInteger extraBytes, NSZone * _Nullable zone) __attribute__((availability(macos,introduced=10.0,deprecated=10.8,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); extern "C" BOOL NSShouldRetainWithZone(id anObject, NSZone * _Nullable requestedZone) ; extern "C" void NSIncrementExtraRefCount(id object) ; extern "C" BOOL NSDecrementExtraRefCountWasZero(id object) ; extern "C" NSUInteger NSExtraRefCount(id object) ; static __inline__ __attribute__((always_inline)) __attribute__((cf_returns_retained)) CFTypeRef _Nullable CFBridgingRetain(id _Nullable X) { return X ? CFRetain((CFTypeRef)X) : __null; } static __inline__ __attribute__((always_inline)) id _Nullable CFBridgingRelease(CFTypeRef __attribute__((cf_consumed)) _Nullable X) __attribute__((ns_returns_retained)) { return ((id (*)(id, SEL))(void *)objc_msgSend)((id)CFMakeCollectable(X), sel_registerName("autorelease")); } #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef struct { unsigned long state; id __attribute__((objc_ownership(none))) _Nullable * _Nullable itemsPtr; unsigned long * _Nullable mutationsPtr; unsigned long extra[5]; } NSFastEnumerationState; // @protocol NSFastEnumeration // - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id __attribute__((objc_ownership(none))) _Nullable [_Nonnull])buffer count:(NSUInteger)len; /* @end */ #ifndef _REWRITER_typedef_NSEnumerator #define _REWRITER_typedef_NSEnumerator typedef struct objc_object NSEnumerator; typedef struct {} _objc_exc_NSEnumerator; #endif struct NSEnumerator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable ObjectType)nextObject; /* @end */ // @interface NSEnumerator<ObjectType> (NSExtendedEnumerator) // @property (readonly, copy) NSArray<ObjectType> *allObjects; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSValue #define _REWRITER_typedef_NSValue typedef struct objc_object NSValue; typedef struct {} _objc_exc_NSValue; #endif struct NSValue_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)getValue:(void *)value size:(NSUInteger)size __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (readonly) const char *objCType __attribute__((objc_returns_inner_pointer)); // - (instancetype)initWithBytes:(const void *)value objCType:(const char *)type __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSValue (NSValueCreation) // + (NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type; // + (NSValue *)value:(const void *)value withObjCType:(const char *)type; /* @end */ // @interface NSValue (NSValueExtensionMethods) // + (NSValue *)valueWithNonretainedObject:(nullable id)anObject; // @property (nullable, readonly) id nonretainedObjectValue; // + (NSValue *)valueWithPointer:(nullable const void *)pointer; // @property (nullable, readonly) void *pointerValue; // - (BOOL)isEqualToValue:(NSValue *)value; /* @end */ #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif struct NSNumber_IMPL { struct NSValue_IMPL NSValue_IVARS; }; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithChar:(char)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedChar:(unsigned char)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithShort:(short)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedShort:(unsigned short)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithInt:(int)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedInt:(unsigned int)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithLong:(long)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedLong:(unsigned long)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithLongLong:(long long)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedLongLong:(unsigned long long)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithFloat:(float)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithDouble:(double)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithBool:(BOOL)value __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithInteger:(NSInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (NSNumber *)initWithUnsignedInteger:(NSUInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // @property (readonly) char charValue; // @property (readonly) unsigned char unsignedCharValue; // @property (readonly) short shortValue; // @property (readonly) unsigned short unsignedShortValue; // @property (readonly) int intValue; // @property (readonly) unsigned int unsignedIntValue; // @property (readonly) long longValue; // @property (readonly) unsigned long unsignedLongValue; // @property (readonly) long long longLongValue; // @property (readonly) unsigned long long unsignedLongLongValue; // @property (readonly) float floatValue; // @property (readonly) double doubleValue; // @property (readonly) BOOL boolValue; // @property (readonly) NSInteger integerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSUInteger unsignedIntegerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *stringValue; // - (NSComparisonResult)compare:(NSNumber *)otherNumber; // - (BOOL)isEqualToNumber:(NSNumber *)number; // - (NSString *)descriptionWithLocale:(nullable id)locale; /* @end */ // @interface NSNumber (NSNumberCreation) // + (NSNumber *)numberWithChar:(char)value; // + (NSNumber *)numberWithUnsignedChar:(unsigned char)value; // + (NSNumber *)numberWithShort:(short)value; // + (NSNumber *)numberWithUnsignedShort:(unsigned short)value; // + (NSNumber *)numberWithInt:(int)value; // + (NSNumber *)numberWithUnsignedInt:(unsigned int)value; // + (NSNumber *)numberWithLong:(long)value; // + (NSNumber *)numberWithUnsignedLong:(unsigned long)value; // + (NSNumber *)numberWithLongLong:(long long)value; // + (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value; // + (NSNumber *)numberWithFloat:(float)value; // + (NSNumber *)numberWithDouble:(double)value; // + (NSNumber *)numberWithBool:(BOOL)value; // + (NSNumber *)numberWithInteger:(NSInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSNumber *)numberWithUnsignedInteger:(NSUInteger)value __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSValue (NSDeprecated) // - (void)getValue:(void *)value __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getValue:size:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getValue:size:"))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange; typedef NSRange *NSRangePointer; static __inline__ __attribute__((always_inline)) NSRange NSMakeRange(NSUInteger loc, NSUInteger len) { NSRange r; r.location = loc; r.length = len; return r; } static __inline__ __attribute__((always_inline)) NSUInteger NSMaxRange(NSRange range) { return (range.location + range.length); } static __inline__ __attribute__((always_inline)) BOOL NSLocationInRange(NSUInteger loc, NSRange range) { return (!(loc < range.location) && (loc - range.location) < range.length) ? ((bool)1) : ((bool)0); } static __inline__ __attribute__((always_inline)) BOOL NSEqualRanges(NSRange range1, NSRange range2) { return (range1.location == range2.location && range1.length == range2.length); } extern "C" NSRange NSUnionRange(NSRange range1, NSRange range2); extern "C" NSRange NSIntersectionRange(NSRange range1, NSRange range2); extern "C" NSString *NSStringFromRange(NSRange range); extern "C" NSRange NSRangeFromString(NSString *aString); // @interface NSValue (NSValueRangeExtensions) // + (NSValue *)valueWithRange:(NSRange)range; // @property (readonly) NSRange rangeValue; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef NSInteger NSCollectionChangeType; enum { NSCollectionChangeInsert, NSCollectionChangeRemove } __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSOrderedCollectionChange #define _REWRITER_typedef_NSOrderedCollectionChange typedef struct objc_object NSOrderedCollectionChange; typedef struct {} _objc_exc_NSOrderedCollectionChange; #endif struct NSOrderedCollectionChange_IMPL { struct NSObject_IMPL NSObject_IVARS; }; #if 0 + (NSOrderedCollectionChange<ObjectType> *)changeWithObject:(nullable ObjectType)anObject type:(NSCollectionChangeType)type index:(NSUInteger)index; #endif #if 0 + (NSOrderedCollectionChange<ObjectType> *)changeWithObject:(nullable ObjectType)anObject type:(NSCollectionChangeType)type index:(NSUInteger)index associatedIndex:(NSUInteger)associatedIndex; #endif // @property (readonly, strong, nullable) ObjectType object; // @property (readonly) NSCollectionChangeType changeType; // @property (readonly) NSUInteger index; // @property (readonly) NSUInteger associatedIndex; // - (id)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #if 0 - (instancetype)initWithObject:(nullable ObjectType)anObject type:(NSCollectionChangeType)type index:(NSUInteger)index; #endif #if 0 - (instancetype)initWithObject:(nullable ObjectType)anObject type:(NSCollectionChangeType)type index:(NSUInteger)index associatedIndex:(NSUInteger)associatedIndex __attribute__((objc_designated_initializer)); #endif /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSIndexSet #define _REWRITER_typedef_NSIndexSet typedef struct objc_object NSIndexSet; typedef struct {} _objc_exc_NSIndexSet; #endif struct NSIndexSet_IMPL { struct NSObject_IMPL NSObject_IVARS; struct { NSUInteger _isEmpty : 1; NSUInteger _hasSingleRange : 1; NSUInteger _cacheValid : 1; NSUInteger _reservedArrayBinderController : 29; } _indexSetFlags; union { struct { NSRange _range; } _singleRange; struct { void * _Nonnull _data; void * _Nonnull _reserved; } _multipleRanges; } _internal; }; // + (instancetype)indexSet; // + (instancetype)indexSetWithIndex:(NSUInteger)value; // + (instancetype)indexSetWithIndexesInRange:(NSRange)range; // - (instancetype)initWithIndexesInRange:(NSRange)range __attribute__((objc_designated_initializer)); // - (instancetype)initWithIndexSet:(NSIndexSet *)indexSet __attribute__((objc_designated_initializer)); // - (instancetype)initWithIndex:(NSUInteger)value; // - (BOOL)isEqualToIndexSet:(NSIndexSet *)indexSet; // @property (readonly) NSUInteger count; // @property (readonly) NSUInteger firstIndex; // @property (readonly) NSUInteger lastIndex; // - (NSUInteger)indexGreaterThanIndex:(NSUInteger)value; // - (NSUInteger)indexLessThanIndex:(NSUInteger)value; // - (NSUInteger)indexGreaterThanOrEqualToIndex:(NSUInteger)value; // - (NSUInteger)indexLessThanOrEqualToIndex:(NSUInteger)value; // - (NSUInteger)getIndexes:(NSUInteger *)indexBuffer maxCount:(NSUInteger)bufferSize inIndexRange:(nullable NSRangePointer)range; // - (NSUInteger)countOfIndexesInRange:(NSRange)range __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)containsIndex:(NSUInteger)value; // - (BOOL)containsIndexesInRange:(NSRange)range; // - (BOOL)containsIndexes:(NSIndexSet *)indexSet; // - (BOOL)intersectsIndexesInRange:(NSRange)range; // - (void)enumerateIndexesUsingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateIndexesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateIndexesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexPassingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesPassingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateRangesUsingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateRangesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #ifndef _REWRITER_typedef_NSMutableIndexSet #define _REWRITER_typedef_NSMutableIndexSet typedef struct objc_object NSMutableIndexSet; typedef struct {} _objc_exc_NSMutableIndexSet; #endif struct NSMutableIndexSet_IMPL { struct NSIndexSet_IMPL NSIndexSet_IVARS; void *_reserved; }; // - (void)addIndexes:(NSIndexSet *)indexSet; // - (void)removeIndexes:(NSIndexSet *)indexSet; // - (void)removeAllIndexes; // - (void)addIndex:(NSUInteger)value; // - (void)removeIndex:(NSUInteger)value; // - (void)addIndexesInRange:(NSRange)range; // - (void)removeIndexesInRange:(NSRange)range; // - (void)shiftIndexesStartingAtIndex:(NSUInteger)index by:(NSInteger)delta; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger NSOrderedCollectionDifferenceCalculationOptions; enum { NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = (1 << 0UL), NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = (1 << 1UL), NSOrderedCollectionDifferenceCalculationInferMoves = (1 << 2UL) } __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSOrderedCollectionDifference #define _REWRITER_typedef_NSOrderedCollectionDifference typedef struct objc_object NSOrderedCollectionDifference; typedef struct {} _objc_exc_NSOrderedCollectionDifference; #endif struct NSOrderedCollectionDifference_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithChanges:(NSArray<NSOrderedCollectionChange<ObjectType> *> *)changes; #if 0 - (instancetype)initWithInsertIndexes:(NSIndexSet *)inserts insertedObjects:(nullable NSArray<ObjectType> *)insertedObjects removeIndexes:(NSIndexSet *)removes removedObjects:(nullable NSArray<ObjectType> *)removedObjects additionalChanges:(NSArray<NSOrderedCollectionChange<ObjectType> *> *)changes __attribute__((objc_designated_initializer)); #endif #if 0 - (instancetype)initWithInsertIndexes:(NSIndexSet *)inserts insertedObjects:(nullable NSArray<ObjectType> *)insertedObjects removeIndexes:(NSIndexSet *)removes removedObjects:(nullable NSArray<ObjectType> *)removedObjects; #endif // @property (strong, readonly) NSArray<NSOrderedCollectionChange<ObjectType> *> *insertions __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (strong, readonly) NSArray<NSOrderedCollectionChange<ObjectType> *> *removals __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (assign, readonly) BOOL hasChanges; // - (NSOrderedCollectionDifference<id> *)differenceByTransformingChangesWithBlock:(NSOrderedCollectionChange<id> *(__attribute__((noescape)) ^)(NSOrderedCollectionChange<ObjectType> *))block; // - (instancetype)inverseDifference __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSIndexSet #define _REWRITER_typedef_NSIndexSet typedef struct objc_object NSIndexSet; typedef struct {} _objc_exc_NSIndexSet; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif struct NSArray_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger count; // - (ObjectType)objectAtIndex:(NSUInteger)index; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSArray<ObjectType> (NSExtendedArray) // - (NSArray<ObjectType> *)arrayByAddingObject:(ObjectType)anObject; // - (NSArray<ObjectType> *)arrayByAddingObjectsFromArray:(NSArray<ObjectType> *)otherArray; // - (NSString *)componentsJoinedByString:(NSString *)separator; // - (BOOL)containsObject:(ObjectType)anObject; // @property (readonly, copy) NSString *description; // - (NSString *)descriptionWithLocale:(nullable id)locale; // - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level; // - (nullable ObjectType)firstObjectCommonWithArray:(NSArray<ObjectType> *)otherArray; // - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nonnull])objects range:(NSRange)range __attribute__((availability(swift, unavailable, message="Use 'subarrayWithRange()' instead"))); // - (NSUInteger)indexOfObject:(ObjectType)anObject; // - (NSUInteger)indexOfObject:(ObjectType)anObject inRange:(NSRange)range; // - (NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject; // - (NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range; // - (BOOL)isEqualToArray:(NSArray<ObjectType> *)otherArray; // @property (nullable, nonatomic, readonly) ObjectType firstObject __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, nonatomic, readonly) ObjectType lastObject; // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (NSEnumerator<ObjectType> *)reverseObjectEnumerator; // @property (readonly, copy) NSData *sortedArrayHint; // - (NSArray<ObjectType> *)sortedArrayUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))comparator context:(nullable void *)context; // - (NSArray<ObjectType> *)sortedArrayUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))comparator context:(nullable void *)context hint:(nullable NSData *)hint; // - (NSArray<ObjectType> *)sortedArrayUsingSelector:(SEL)comparator; // - (NSArray<ObjectType> *)subarrayWithRange:(NSRange)range; // - (BOOL)writeToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)makeObjectsPerformSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead"))); // - (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(nullable id)argument __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead"))); // - (NSArray<ObjectType> *)objectsAtIndexes:(NSIndexSet *)indexes; // - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexOfObjectPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape))^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSArray<ObjectType> *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSBinarySearchingOptions; enum { NSBinarySearchingFirstEqual = (1UL << 8), NSBinarySearchingLastEqual = (1UL << 9), NSBinarySearchingInsertionIndex = (1UL << 10), }; // - (NSUInteger)indexOfObject:(ObjectType)obj inSortedRange:(NSRange)r options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmp __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSArray<ObjectType> (NSArrayCreation) // + (instancetype)array; // + (instancetype)arrayWithObject:(ObjectType)anObject; // + (instancetype)arrayWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt; // + (instancetype)arrayWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // + (instancetype)arrayWithArray:(NSArray<ObjectType> *)array; // - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // - (instancetype)initWithArray:(NSArray<ObjectType> *)array; // - (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag; // - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // + (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(swift, unavailable, message="Use initializer instead"))); /* @end */ __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(swift, unavailable, message="NSArray diffing methods are not available in Swift, use Collection.difference(from:) instead"))) // @interface NSArray<ObjectType> (NSArrayDiffing) // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options usingEquivalenceTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj1, ObjectType obj2))block; // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options; // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromArray:(NSArray<ObjectType> *)other; // - (nullable NSArray<ObjectType> *)arrayByApplyingDifference:(NSOrderedCollectionDifference<ObjectType> *)difference; /* @end */ // @interface NSArray<ObjectType> (NSDeprecated) // - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nonnull])objects __attribute__((availability(swift, unavailable, message="Use 'as [AnyObject]' instead"))) __attribute__((availability(macos,introduced=10.0,deprecated=10.13,message="Use -getObjects:range: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="Use -getObjects:range: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=4.0,message="Use -getObjects:range: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Use -getObjects:range: instead"))); // + (nullable NSArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))); // + (nullable NSArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="arrayWithContentsOfURL:error:"))); // - (nullable NSArray<ObjectType> *)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))); // - (nullable NSArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))); // - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:"))); // - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:"))); /* @end */ #ifndef _REWRITER_typedef_NSMutableArray #define _REWRITER_typedef_NSMutableArray typedef struct objc_object NSMutableArray; typedef struct {} _objc_exc_NSMutableArray; #endif struct NSMutableArray_IMPL { struct NSArray_IMPL NSArray_IVARS; }; // - (void)addObject:(ObjectType)anObject; // - (void)insertObject:(ObjectType)anObject atIndex:(NSUInteger)index; // - (void)removeLastObject; // - (void)removeObjectAtIndex:(NSUInteger)index; // - (void)replaceObjectAtIndex:(NSUInteger)index withObject:(ObjectType)anObject; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSMutableArray<ObjectType> (NSExtendedMutableArray) // - (void)addObjectsFromArray:(NSArray<ObjectType> *)otherArray; // - (void)exchangeObjectAtIndex:(NSUInteger)idx1 withObjectAtIndex:(NSUInteger)idx2; // - (void)removeAllObjects; // - (void)removeObject:(ObjectType)anObject inRange:(NSRange)range; // - (void)removeObject:(ObjectType)anObject; // - (void)removeObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range; // - (void)removeObjectIdenticalTo:(ObjectType)anObject; // - (void)removeObjectsFromIndices:(NSUInteger *)indices numIndices:(NSUInteger)cnt __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); // - (void)removeObjectsInArray:(NSArray<ObjectType> *)otherArray; // - (void)removeObjectsInRange:(NSRange)range; // - (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> *)otherArray range:(NSRange)otherRange; // - (void)replaceObjectsInRange:(NSRange)range withObjectsFromArray:(NSArray<ObjectType> *)otherArray; // - (void)setArray:(NSArray<ObjectType> *)otherArray; // - (void)sortUsingFunction:(NSInteger (__attribute__((noescape)) *)(ObjectType, ObjectType, void * _Nullable))compare context:(nullable void *)context; // - (void)sortUsingSelector:(SEL)comparator; // - (void)insertObjects:(NSArray<ObjectType> *)objects atIndexes:(NSIndexSet *)indexes; // - (void)removeObjectsAtIndexes:(NSIndexSet *)indexes; // - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray<ObjectType> *)objects; // - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)sortUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableArray<ObjectType> (NSMutableArrayCreation) // + (instancetype)arrayWithCapacity:(NSUInteger)numItems; // + (nullable NSMutableArray<ObjectType> *)arrayWithContentsOfFile:(NSString *)path; // + (nullable NSMutableArray<ObjectType> *)arrayWithContentsOfURL:(NSURL *)url; // - (nullable NSMutableArray<ObjectType> *)initWithContentsOfFile:(NSString *)path; // - (nullable NSMutableArray<ObjectType> *)initWithContentsOfURL:(NSURL *)url; /* @end */ __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(swift, unavailable, message="NSMutableArray diffing methods are not available in Swift"))) // @interface NSMutableArray<ObjectType> (NSMutableArrayDiffing) // - (void)applyDifference:(NSOrderedCollectionDifference<ObjectType> *)difference; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSAutoreleasePool #define _REWRITER_typedef_NSAutoreleasePool typedef struct objc_object NSAutoreleasePool; typedef struct {} _objc_exc_NSAutoreleasePool; #endif struct NSAutoreleasePool_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_token; void *_reserved3; void *_reserved2; void *_reserved; }; // + (void)addObject:(id)anObject; // - (void)addObject:(id)anObject; // - (void)drain; /* @end */ #pragma clang assume_nonnull end typedef unsigned short unichar; #pragma clang assume_nonnull begin // @class NSItemProvider; #ifndef _REWRITER_typedef_NSItemProvider #define _REWRITER_typedef_NSItemProvider typedef struct objc_object NSItemProvider; typedef struct {} _objc_exc_NSItemProvider; #endif #ifndef _REWRITER_typedef_NSProgress #define _REWRITER_typedef_NSProgress typedef struct objc_object NSProgress; typedef struct {} _objc_exc_NSProgress; #endif typedef NSInteger NSItemProviderRepresentationVisibility; enum { NSItemProviderRepresentationVisibilityAll = 0, NSItemProviderRepresentationVisibilityTeam __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(macos,unavailable))) = 1, NSItemProviderRepresentationVisibilityGroup __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 2 , NSItemProviderRepresentationVisibilityOwnProcess = 3, } __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef NSInteger NSItemProviderFileOptions; enum { NSItemProviderFileOptionOpenInPlace = 1, } __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) // @protocol NSItemProviderWriting <NSObject> @property (class, nonatomic, readonly, copy) NSArray<NSString *> *writableTypeIdentifiersForItemProvider; /* @optional */ // @property (nonatomic, readonly, copy) NSArray<NSString *> *writableTypeIdentifiersForItemProvider; // + (NSItemProviderRepresentationVisibility)itemProviderVisibilityForRepresentationWithTypeIdentifier:(NSString *)typeIdentifier; // - (NSItemProviderRepresentationVisibility)itemProviderVisibilityForRepresentationWithTypeIdentifier:(NSString *)typeIdentifier; /* @required */ #if 0 - (nullable NSProgress *)loadDataWithTypeIdentifier:(NSString *)typeIdentifier forItemProviderCompletionHandler:(void (^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler; #endif /* @end */ __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) // @protocol NSItemProviderReading <NSObject> @property (class, nonatomic, readonly, copy) NSArray<NSString *> *readableTypeIdentifiersForItemProvider; #if 0 + (nullable instancetype)objectWithItemProviderData:(NSData *)data typeIdentifier:(NSString *)typeIdentifier error:(NSError **)outError; #endif /* @end */ typedef void (*NSItemProviderCompletionHandler)(_Nullable __kindof id /*<NSSecureCoding>*/ item, NSError * _Null_unspecified error); typedef void (*NSItemProviderLoadHandler)(_Null_unspecified NSItemProviderCompletionHandler completionHandler, _Null_unspecified Class expectedValueClass, NSDictionary * _Null_unspecified options); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSItemProvider #define _REWRITER_typedef_NSItemProvider typedef struct objc_object NSItemProvider; typedef struct {} _objc_exc_NSItemProvider; #endif struct NSItemProvider_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); #if 0 - (void)registerDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier visibility:(NSItemProviderRepresentationVisibility)visibility loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(NSData * _Nullable data, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (void)registerFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier fileOptions:(NSItemProviderFileOptions)fileOptions visibility:(NSItemProviderRepresentationVisibility)visibility loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(NSURL * _Nullable url, BOOL coordinated, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif // @property (copy, readonly, atomic) NSArray<NSString *> *registeredTypeIdentifiers; // - (NSArray<NSString *> *)registeredTypeIdentifiersWithFileOptions:(NSItemProviderFileOptions)fileOptions __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (BOOL)hasItemConformingToTypeIdentifier:(NSString *)typeIdentifier; #if 0 - (BOOL)hasRepresentationConformingToTypeIdentifier:(NSString *)typeIdentifier fileOptions:(NSItemProviderFileOptions)fileOptions __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (NSProgress *)loadDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier completionHandler:(void(^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (NSProgress *)loadFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier completionHandler:(void(^)(NSURL * _Nullable url, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (NSProgress *)loadInPlaceFileRepresentationForTypeIdentifier:(NSString *)typeIdentifier completionHandler:(void (^)(NSURL * _Nullable url, BOOL isInPlace, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif // @property (atomic, copy, nullable) NSString *suggestedName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithObject:(id<NSItemProviderWriting>)object __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)registerObject:(id<NSItemProviderWriting>)object visibility:(NSItemProviderRepresentationVisibility)visibility __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #if 0 - (void)registerObjectOfClass:(Class<NSItemProviderWriting>)aClass visibility:(NSItemProviderRepresentationVisibility)visibility loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(__kindof id<NSItemProviderWriting> _Nullable object, NSError * _Nullable error)))loadHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif // - (BOOL)canLoadObjectOfClass:(Class<NSItemProviderReading>)aClass __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #if 0 - (NSProgress *)loadObjectOfClass:(Class<NSItemProviderReading>)aClass completionHandler:(void (^)(__kindof id<NSItemProviderReading> _Nullable object, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif // - (instancetype)initWithItem:(nullable id<NSSecureCoding>)item typeIdentifier:(nullable NSString *)typeIdentifier __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithContentsOfURL:(null_unspecified NSURL *)fileURL; // - (void)registerItemForTypeIdentifier:(NSString *)typeIdentifier loadHandler:(NSItemProviderLoadHandler)loadHandler; // - (void)loadItemForTypeIdentifier:(NSString *)typeIdentifier options:(nullable NSDictionary *)options completionHandler:(nullable NSItemProviderCompletionHandler)completionHandler; /* @end */ extern "C" NSString * const NSItemProviderPreferredImageSizeKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @interface NSItemProvider(NSPreviewSupport) // @property (nullable, copy, atomic) NSItemProviderLoadHandler previewImageHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)loadPreviewImageWithOptions:(null_unspecified NSDictionary *)options completionHandler:(null_unspecified NSItemProviderCompletionHandler)completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSString * _Null_unspecified const NSExtensionJavaScriptPreprocessingResultsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * _Null_unspecified const NSExtensionJavaScriptFinalizeArgumentKey __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSString * const NSItemProviderErrorDomain __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSItemProviderErrorCode; enum { NSItemProviderUnknownError = -1, NSItemProviderItemUnavailableError = -1000, NSItemProviderUnexpectedValueClassError = -1100, NSItemProviderUnavailableCoercionError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1200 } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSCharacterSet #define _REWRITER_typedef_NSCharacterSet typedef struct objc_object NSCharacterSet; typedef struct {} _objc_exc_NSCharacterSet; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSStringCompareOptions; enum { NSCaseInsensitiveSearch = 1, NSLiteralSearch = 2, NSBackwardsSearch = 4, NSAnchoredSearch = 8, NSNumericSearch = 64, NSDiacriticInsensitiveSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 128, NSWidthInsensitiveSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 256, NSForcedOrderingSearch __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 512, NSRegularExpressionSearch __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1024 }; typedef NSUInteger NSStringEncoding; enum { NSASCIIStringEncoding = 1, NSNEXTSTEPStringEncoding = 2, NSJapaneseEUCStringEncoding = 3, NSUTF8StringEncoding = 4, NSISOLatin1StringEncoding = 5, NSSymbolStringEncoding = 6, NSNonLossyASCIIStringEncoding = 7, NSShiftJISStringEncoding = 8, NSISOLatin2StringEncoding = 9, NSUnicodeStringEncoding = 10, NSWindowsCP1251StringEncoding = 11, NSWindowsCP1252StringEncoding = 12, NSWindowsCP1253StringEncoding = 13, NSWindowsCP1254StringEncoding = 14, NSWindowsCP1250StringEncoding = 15, NSISO2022JPStringEncoding = 21, NSMacOSRomanStringEncoding = 30, NSUTF16StringEncoding = NSUnicodeStringEncoding, NSUTF16BigEndianStringEncoding = 0x90000100, NSUTF16LittleEndianStringEncoding = 0x94000100, NSUTF32StringEncoding = 0x8c000100, NSUTF32BigEndianStringEncoding = 0x98000100, NSUTF32LittleEndianStringEncoding = 0x9c000100 }; typedef NSUInteger NSStringEncodingConversionOptions; enum { NSStringEncodingConversionAllowLossy = 1, NSStringEncodingConversionExternalRepresentation = 2 }; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif struct NSString_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger length; // - (unichar)characterAtIndex:(NSUInteger)index; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSString (NSStringExtensionMethods) // - (NSString *)substringFromIndex:(NSUInteger)from; // - (NSString *)substringToIndex:(NSUInteger)to; // - (NSString *)substringWithRange:(NSRange)range; // - (void)getCharacters:(unichar *)buffer range:(NSRange)range; // - (NSComparisonResult)compare:(NSString *)string; // - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask; // - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare; // - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToCompare locale:(nullable id)locale; // - (NSComparisonResult)caseInsensitiveCompare:(NSString *)string; // - (NSComparisonResult)localizedCompare:(NSString *)string; // - (NSComparisonResult)localizedCaseInsensitiveCompare:(NSString *)string; // - (NSComparisonResult)localizedStandardCompare:(NSString *)string __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isEqualToString:(NSString *)aString; // - (BOOL)hasPrefix:(NSString *)str; // - (BOOL)hasSuffix:(NSString *)str; // - (NSString *)commonPrefixWithString:(NSString *)str options:(NSStringCompareOptions)mask; // - (BOOL)containsString:(NSString *)str __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)localizedCaseInsensitiveContainsString:(NSString *)str __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)localizedStandardContainsString:(NSString *)str __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)localizedStandardRangeOfString:(NSString *)str __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)rangeOfString:(NSString *)searchString; // - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask; // - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch; // - (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet; // - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask; // - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch; // - (NSRange)rangeOfComposedCharacterSequenceAtIndex:(NSUInteger)index; // - (NSRange)rangeOfComposedCharacterSequencesForRange:(NSRange)range __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)stringByAppendingString:(NSString *)aString; // - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); // @property (readonly) double doubleValue; // @property (readonly) float floatValue; // @property (readonly) int intValue; // @property (readonly) NSInteger integerValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) long long longLongValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL boolValue __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *uppercaseString; // @property (readonly, copy) NSString *lowercaseString; // @property (readonly, copy) NSString *capitalizedString; // @property (readonly, copy) NSString *localizedUppercaseString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *localizedLowercaseString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *localizedCapitalizedString __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)uppercaseStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)lowercaseStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)capitalizedStringWithLocale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getLineStart:(nullable NSUInteger *)startPtr end:(nullable NSUInteger *)lineEndPtr contentsEnd:(nullable NSUInteger *)contentsEndPtr forRange:(NSRange)range; // - (NSRange)lineRangeForRange:(NSRange)range; // - (void)getParagraphStart:(nullable NSUInteger *)startPtr end:(nullable NSUInteger *)parEndPtr contentsEnd:(nullable NSUInteger *)contentsEndPtr forRange:(NSRange)range; // - (NSRange)paragraphRangeForRange:(NSRange)range; typedef NSUInteger NSStringEnumerationOptions; enum { NSStringEnumerationByLines = 0, NSStringEnumerationByParagraphs = 1, NSStringEnumerationByComposedCharacterSequences = 2, NSStringEnumerationByWords = 3, NSStringEnumerationBySentences = 4, NSStringEnumerationByCaretPositions __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) = 5, NSStringEnumerationByDeletionClusters __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) = 6, NSStringEnumerationReverse = 1UL << 8, NSStringEnumerationSubstringNotRequired = 1UL << 9, NSStringEnumerationLocalized = 1UL << 10 }; // - (void)enumerateSubstringsInRange:(NSRange)range options:(NSStringEnumerationOptions)opts usingBlock:(void (^)(NSString * _Nullable substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateLinesUsingBlock:(void (^)(NSString *line, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly) const char *UTF8String __attribute__((objc_returns_inner_pointer)); // @property (readonly) NSStringEncoding fastestEncoding; // @property (readonly) NSStringEncoding smallestEncoding; // - (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding allowLossyConversion:(BOOL)lossy; // - (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding; // - (BOOL)canBeConvertedToEncoding:(NSStringEncoding)encoding; // - (nullable const char *)cStringUsingEncoding:(NSStringEncoding)encoding __attribute__((objc_returns_inner_pointer)); // - (BOOL)getCString:(char *)buffer maxLength:(NSUInteger)maxBufferCount encoding:(NSStringEncoding)encoding; // - (BOOL)getBytes:(nullable void *)buffer maxLength:(NSUInteger)maxBufferCount usedLength:(nullable NSUInteger *)usedBufferCount encoding:(NSStringEncoding)encoding options:(NSStringEncodingConversionOptions)options range:(NSRange)range remainingRange:(nullable NSRangePointer)leftover; // - (NSUInteger)maximumLengthOfBytesUsingEncoding:(NSStringEncoding)enc; // - (NSUInteger)lengthOfBytesUsingEncoding:(NSStringEncoding)enc; @property (class, readonly) const NSStringEncoding *availableStringEncodings; // + (NSString *)localizedNameOfStringEncoding:(NSStringEncoding)encoding; @property (class, readonly) NSStringEncoding defaultCStringEncoding; // @property (readonly, copy) NSString *decomposedStringWithCanonicalMapping; // @property (readonly, copy) NSString *precomposedStringWithCanonicalMapping; // @property (readonly, copy) NSString *decomposedStringWithCompatibilityMapping; // @property (readonly, copy) NSString *precomposedStringWithCompatibilityMapping; // - (NSArray<NSString *> *)componentsSeparatedByString:(NSString *)separator; // - (NSArray<NSString *> *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)separator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)stringByTrimmingCharactersInSet:(NSCharacterSet *)set; // - (NSString *)stringByPaddingToLength:(NSUInteger)newLength withString:(NSString *)padString startingAtIndex:(NSUInteger)padIndex; // - (NSString *)stringByFoldingWithOptions:(NSStringCompareOptions)options locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRange)searchRange __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)stringByReplacingCharactersInRange:(NSRange)range withString:(NSString *)replacement __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString *NSStringTransform __attribute__((swift_wrapper(struct))); // - (nullable NSString *)stringByApplyingTransform:(NSStringTransform)transform reverse:(BOOL)reverse __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToKatakana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToHiragana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToHangul __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToArabic __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToHebrew __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToThai __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToCyrillic __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformLatinToGreek __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformToLatin __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformMandarinToLatin __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformHiraganaToKatakana __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformFullwidthToHalfwidth __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformToXMLHex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformToUnicodeName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformStripCombiningMarks __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringTransform const NSStringTransformStripDiacritics __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)useAuxiliaryFile encoding:(NSStringEncoding)enc error:(NSError **)error; // - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile encoding:(NSStringEncoding)enc error:(NSError **)error; // @property (readonly, copy) NSString *description; // @property (readonly) NSUInteger hash; // - (instancetype)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer; // - (instancetype)initWithCharactersNoCopy:(unichar *)chars length:(NSUInteger)len deallocator:(void(^_Nullable)(unichar *, NSUInteger))deallocator; // - (instancetype)initWithCharacters:(const unichar *)characters length:(NSUInteger)length; // - (nullable instancetype)initWithUTF8String:(const char *)nullTerminatedCString; // - (instancetype)initWithString:(NSString *)aString; // - (instancetype)initWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); // - (instancetype)initWithFormat:(NSString *)format arguments:(va_list)argList __attribute__((format(__NSString__, 1, 0))); // - (instancetype)initWithFormat:(NSString *)format locale:(nullable id)locale, ... __attribute__((format(__NSString__, 1, 3))); // - (instancetype)initWithFormat:(NSString *)format locale:(nullable id)locale arguments:(va_list)argList __attribute__((format(__NSString__, 1, 0))); // - (nullable instancetype)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding; // - (nullable instancetype)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding; // - (nullable instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding freeWhenDone:(BOOL)freeBuffer; // - (nullable instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding deallocator:(void(^_Nullable)(void *, NSUInteger))deallocator; // + (instancetype)string; // + (instancetype)stringWithString:(NSString *)string; // + (instancetype)stringWithCharacters:(const unichar *)characters length:(NSUInteger)length; // + (nullable instancetype)stringWithUTF8String:(const char *)nullTerminatedCString; // + (instancetype)stringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); // + (instancetype)localizedStringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); // - (nullable instancetype)initWithCString:(const char *)nullTerminatedCString encoding:(NSStringEncoding)encoding; // + (nullable instancetype)stringWithCString:(const char *)cString encoding:(NSStringEncoding)enc; // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error; // - (nullable instancetype)initWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error; // + (nullable instancetype)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error; // + (nullable instancetype)stringWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error; // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error; // - (nullable instancetype)initWithContentsOfFile:(NSString *)path usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error; // + (nullable instancetype)stringWithContentsOfURL:(NSURL *)url usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error; // + (nullable instancetype)stringWithContentsOfFile:(NSString *)path usedEncoding:(nullable NSStringEncoding *)enc error:(NSError **)error; /* @end */ typedef NSString * NSStringEncodingDetectionOptionsKey __attribute__((swift_wrapper(enum))); // @interface NSString (NSStringEncodingDetection) #if 0 + (NSStringEncoding)stringEncodingForData:(NSData *)data encodingOptions:(nullable NSDictionary<NSStringEncodingDetectionOptionsKey, id> *)opts convertedString:(NSString * _Nullable * _Nullable)string usedLossyConversion:(nullable BOOL *)usedLossyConversion __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #endif extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionSuggestedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionDisallowedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionUseOnlySuggestedEncodingsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionAllowLossyKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionFromWindowsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionLossySubstitutionKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStringEncodingDetectionOptionsKey const NSStringEncodingDetectionLikelyLanguageKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSString (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting> /* @end */ #ifndef _REWRITER_typedef_NSMutableString #define _REWRITER_typedef_NSMutableString typedef struct objc_object NSMutableString; typedef struct {} _objc_exc_NSMutableString; #endif struct NSMutableString_IMPL { struct NSString_IMPL NSString_IVARS; }; // - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)aString; /* @end */ // @interface NSMutableString (NSMutableStringExtensionMethods) // - (void)insertString:(NSString *)aString atIndex:(NSUInteger)loc; // - (void)deleteCharactersInRange:(NSRange)range; // - (void)appendString:(NSString *)aString; // - (void)appendFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); // - (void)setString:(NSString *)aString; // - (NSUInteger)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)options range:(NSRange)searchRange; // - (BOOL)applyTransform:(NSStringTransform)transform reverse:(BOOL)reverse range:(NSRange)range updatedRange:(nullable NSRangePointer)resultingRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSMutableString *)initWithCapacity:(NSUInteger)capacity; // + (NSMutableString *)stringWithCapacity:(NSUInteger)capacity; /* @end */ extern "C" NSExceptionName const NSCharacterConversionException; extern "C" NSExceptionName const NSParseErrorException; // @interface NSString (NSExtendedStringPropertyListParsing) // - (id)propertyList; // - (nullable NSDictionary *)propertyListFromStringsFileFormat; /* @end */ // @interface NSString (NSStringDeprecated) // - (nullable const char *)cString __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -cStringUsingEncoding: instead"))); // - (nullable const char *)lossyCString __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -cStringUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -cStringUsingEncoding: instead"))); // - (NSUInteger)cStringLength __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -lengthOfBytesUsingEncoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -lengthOfBytesUsingEncoding: instead"))); // - (void)getCString:(char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead"))); // - (void)getCString:(char *)bytes maxLength:(NSUInteger)maxLength __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead"))); // - (void)getCString:(char *)bytes maxLength:(NSUInteger)maxLength range:(NSRange)aRange remainingRange:(nullable NSRangePointer)leftoverRange __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -getCString:maxLength:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -getCString:maxLength:encoding: instead"))); // - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -writeToFile:atomically:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -writeToFile:atomically:error: instead"))); // - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -writeToURL:atomically:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -writeToURL:atomically:error: instead"))); // - (nullable id)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfFile:encoding:error: instead"))); // - (nullable id)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfURL:encoding:error: instead"))); // + (nullable id)stringWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfFile:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithContentsOfFile:encoding:error: instead"))); // + (nullable id)stringWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithContentsOfURL:encoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithContentsOfURL:encoding:error: instead"))); // - (nullable id)initWithCStringNoCopy:(char *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead"))); // - (nullable id)initWithCString:(const char *)bytes length:(NSUInteger)length __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead"))); // - (nullable id)initWithCString:(const char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithCString:encoding: instead"))); // + (nullable id)stringWithCString:(const char *)bytes length:(NSUInteger)length __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithCString:encoding:"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithCString:encoding:"))); // + (nullable id)stringWithCString:(const char *)bytes __attribute__((availability(macos,introduced=10.0,deprecated=10.4,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +stringWithCString:encoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +stringWithCString:encoding: instead"))); // - (void)getCharacters:(unichar *)buffer; /* @end */ enum { NSProprietaryStringEncoding = 65536 }; __attribute__((availability(swift, unavailable, message="Use String or NSString instead."))) #ifndef _REWRITER_typedef_NSSimpleCString #define _REWRITER_typedef_NSSimpleCString typedef struct objc_object NSSimpleCString; typedef struct {} _objc_exc_NSSimpleCString; #endif struct NSSimpleCString_IMPL { struct NSString_IMPL NSString_IVARS; char *bytes; int numBytes; int _unused; }; /* @end */ __attribute__((availability(swift, unavailable, message="Use String or NSString instead."))) #ifndef _REWRITER_typedef_NSConstantString #define _REWRITER_typedef_NSConstantString typedef struct objc_object NSConstantString; typedef struct {} _objc_exc_NSConstantString; #endif struct NSConstantString_IMPL { struct NSSimpleCString_IMPL NSSimpleCString_IVARS; }; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif struct NSDictionary_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger count; // - (nullable ObjectType)objectForKey:(KeyType)aKey; // - (NSEnumerator<KeyType> *)keyEnumerator; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSDictionary<KeyType, ObjectType> (NSExtendedDictionary) // @property (readonly, copy) NSArray<KeyType> *allKeys; // - (NSArray<KeyType> *)allKeysForObject:(ObjectType)anObject; // @property (readonly, copy) NSArray<ObjectType> *allValues; // @property (readonly, copy) NSString *description; // @property (readonly, copy) NSString *descriptionInStringsFileFormat; // - (NSString *)descriptionWithLocale:(nullable id)locale; // - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level; // - (BOOL)isEqualToDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary; // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (NSArray<ObjectType> *)objectsForKeys:(NSArray<KeyType> *)keys notFoundMarker:(ObjectType)marker; // - (BOOL)writeToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSArray<KeyType> *)keysSortedByValueUsingSelector:(SEL)comparator; // - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects andKeys:(KeyType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])keys count:(NSUInteger)count __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'allKeys' and/or 'allValues' instead"))); // - (nullable ObjectType)objectForKeyedSubscript:(KeyType)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateKeysAndObjectsUsingBlock:(void (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSArray<KeyType> *)keysSortedByValueUsingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSArray<KeyType> *)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<KeyType> *)keysOfEntriesPassingTest:(BOOL (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<KeyType> *)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(KeyType key, ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSDictionary<KeyType, ObjectType> (NSDeprecated) // - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects andKeys:(KeyType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])keys __attribute__((availability(swift, unavailable, message="Use 'allKeys' and/or 'allValues' instead"))) __attribute__((availability(macos,introduced=10.0,deprecated=10.13,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=4.0,message="Use -getObjects:andKeys:count: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Use -getObjects:andKeys:count: instead"))); // + (nullable NSDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))); // + (nullable NSDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="dictionaryWithContentsOfURL:error:"))); // - (nullable NSDictionary<KeyType, ObjectType> *)initWithContentsOfFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))); // - (nullable NSDictionary<KeyType, ObjectType> *)initWithContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithContentsOfURL:error:"))); // - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:"))); // - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeToURL:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeToURL:error:"))); /* @end */ // @interface NSDictionary<KeyType, ObjectType> (NSDictionaryCreation) // + (instancetype)dictionary; // + (instancetype)dictionaryWithObject:(ObjectType)object forKey:(KeyType <NSCopying>)key; // + (instancetype)dictionaryWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt; // + (instancetype)dictionaryWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1))) __attribute__((availability(swift, unavailable, message="Use dictionary literals instead"))); // + (instancetype)dictionaryWithDictionary:(NSDictionary<KeyType, ObjectType> *)dict; // + (instancetype)dictionaryWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys; // - (instancetype)initWithObjectsAndKeys:(id)firstObject, ... __attribute__((sentinel(0,1))); // - (instancetype)initWithDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary; // - (instancetype)initWithDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary copyItems:(BOOL)flag; // - (instancetype)initWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys; // - (nullable NSDictionary<NSString *, ObjectType> *)initWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // + (nullable NSDictionary<NSString *, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(swift, unavailable, message="Use initializer instead"))); /* @end */ #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif struct NSMutableDictionary_IMPL { struct NSDictionary_IMPL NSDictionary_IVARS; }; // - (void)removeObjectForKey:(KeyType)aKey; // - (void)setObject:(ObjectType)anObject forKey:(KeyType <NSCopying>)aKey; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSMutableDictionary<KeyType, ObjectType> (NSExtendedMutableDictionary) // - (void)addEntriesFromDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary; // - (void)removeAllObjects; // - (void)removeObjectsForKeys:(NSArray<KeyType> *)keyArray; // - (void)setDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary; // - (void)setObject:(nullable ObjectType)obj forKeyedSubscript:(KeyType <NSCopying>)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableDictionary<KeyType, ObjectType> (NSMutableDictionaryCreation) // + (instancetype)dictionaryWithCapacity:(NSUInteger)numItems; // + (nullable NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfFile:(NSString *)path; // + (nullable NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithContentsOfURL:(NSURL *)url; // - (nullable NSMutableDictionary<KeyType, ObjectType> *)initWithContentsOfFile:(NSString *)path; // - (nullable NSMutableDictionary<KeyType, ObjectType> *)initWithContentsOfURL:(NSURL *)url; /* @end */ // @interface NSDictionary<KeyType, ObjectType> (NSSharedKeySetDictionary) // + (id)sharedKeySetForKeys:(NSArray<KeyType <NSCopying>> *)keys __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableDictionary<KeyType, ObjectType> (NSSharedKeySetDictionary) // + (NSMutableDictionary<KeyType, ObjectType> *)dictionaryWithSharedKeySet:(id)keyset __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSDictionary<K, V> (NSGenericFastEnumeraiton) <NSFastEnumeration> // - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(K __attribute__((objc_ownership(none))) _Nullable [_Nonnull])buffer count:(NSUInteger)len; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif struct NSSet_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger count; // - (nullable ObjectType)member:(ObjectType)object; // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSSet<ObjectType> (NSExtendedSet) // @property (readonly, copy) NSArray<ObjectType> *allObjects; // - (nullable ObjectType)anyObject; // - (BOOL)containsObject:(ObjectType)anObject; // @property (readonly, copy) NSString *description; // - (NSString *)descriptionWithLocale:(nullable id)locale; // - (BOOL)intersectsSet:(NSSet<ObjectType> *)otherSet; // - (BOOL)isEqualToSet:(NSSet<ObjectType> *)otherSet; // - (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)otherSet; // - (void)makeObjectsPerformSelector:(SEL)aSelector __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead"))); // - (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(nullable id)argument __attribute__((availability(swift, unavailable, message="Use enumerateObjectsUsingBlock: or a for loop instead"))); // - (NSSet<ObjectType> *)setByAddingObject:(ObjectType)anObject __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<ObjectType> *)setByAddingObjectsFromSet:(NSSet<ObjectType> *)other __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<ObjectType> *)setByAddingObjectsFromArray:(NSArray<ObjectType> *)other __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<ObjectType> *)objectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSSet<ObjectType> *)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, BOOL *stop))predicate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSSet<ObjectType> (NSSetCreation) // + (instancetype)set; // + (instancetype)setWithObject:(ObjectType)object; // + (instancetype)setWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt; // + (instancetype)setWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // + (instancetype)setWithSet:(NSSet<ObjectType> *)set; // + (instancetype)setWithArray:(NSArray<ObjectType> *)array; // - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // - (instancetype)initWithSet:(NSSet<ObjectType> *)set; // - (instancetype)initWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag; // - (instancetype)initWithArray:(NSArray<ObjectType> *)array; /* @end */ #ifndef _REWRITER_typedef_NSMutableSet #define _REWRITER_typedef_NSMutableSet typedef struct objc_object NSMutableSet; typedef struct {} _objc_exc_NSMutableSet; #endif struct NSMutableSet_IMPL { struct NSSet_IMPL NSSet_IVARS; }; // - (void)addObject:(ObjectType)object; // - (void)removeObject:(ObjectType)object; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer)); /* @end */ // @interface NSMutableSet<ObjectType> (NSExtendedMutableSet) // - (void)addObjectsFromArray:(NSArray<ObjectType> *)array; // - (void)intersectSet:(NSSet<ObjectType> *)otherSet; // - (void)minusSet:(NSSet<ObjectType> *)otherSet; // - (void)removeAllObjects; // - (void)unionSet:(NSSet<ObjectType> *)otherSet; // - (void)setSet:(NSSet<ObjectType> *)otherSet; /* @end */ // @interface NSMutableSet<ObjectType> (NSMutableSetCreation) // + (instancetype)setWithCapacity:(NSUInteger)numItems; /* @end */ #ifndef _REWRITER_typedef_NSCountedSet #define _REWRITER_typedef_NSCountedSet typedef struct objc_object NSCountedSet; typedef struct {} _objc_exc_NSCountedSet; #endif struct NSCountedSet_IMPL { struct NSMutableSet_IMPL NSMutableSet_IVARS; id _table; void *_reserved; }; // - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer)); // - (instancetype)initWithArray:(NSArray<ObjectType> *)array; // - (instancetype)initWithSet:(NSSet<ObjectType> *)set; // - (NSUInteger)countForObject:(ObjectType)object; // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (void)addObject:(ObjectType)object; // - (void)removeObject:(ObjectType)object; /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSMutableSet #define _REWRITER_typedef_NSMutableSet typedef struct objc_object NSMutableSet; typedef struct {} _objc_exc_NSMutableSet; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSUUID #define _REWRITER_typedef_NSUUID typedef struct objc_object NSUUID; typedef struct {} _objc_exc_NSUUID; #endif #ifndef _REWRITER_typedef_NSXPCConnection #define _REWRITER_typedef_NSXPCConnection typedef struct objc_object NSXPCConnection; typedef struct {} _objc_exc_NSXPCConnection; #endif #ifndef _REWRITER_typedef_NSLock #define _REWRITER_typedef_NSLock typedef struct objc_object NSLock; typedef struct {} _objc_exc_NSLock; #endif typedef NSString * NSProgressKind __attribute__((swift_wrapper(struct))); typedef NSString * NSProgressUserInfoKey __attribute__((swift_wrapper(struct))); typedef NSString * NSProgressFileOperationKind __attribute__((swift_wrapper(struct))); #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSProgress #define _REWRITER_typedef_NSProgress typedef struct objc_object NSProgress; typedef struct {} _objc_exc_NSProgress; #endif struct NSProgress_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (nullable NSProgress *)currentProgress; // + (NSProgress *)progressWithTotalUnitCount:(int64_t)unitCount; // + (NSProgress *)discreteProgressWithTotalUnitCount:(int64_t)unitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSProgress *)progressWithTotalUnitCount:(int64_t)unitCount parent:(NSProgress *)parent pendingUnitCount:(int64_t)portionOfParentTotalUnitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithParent:(nullable NSProgress *)parentProgressOrNil userInfo:(nullable NSDictionary<NSProgressUserInfoKey, id> *)userInfoOrNil __attribute__((objc_designated_initializer)); // - (void)becomeCurrentWithPendingUnitCount:(int64_t)unitCount; // - (void)performAsCurrentWithPendingUnitCount:(int64_t)unitCount usingBlock:(void (__attribute__((noescape)) ^)(void))work __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // - (void)resignCurrent; // - (void)addChild:(NSProgress *)child withPendingUnitCount:(int64_t)inUnitCount __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property int64_t totalUnitCount; // @property int64_t completedUnitCount; // @property (null_resettable, copy) NSString *localizedDescription; // @property (null_resettable, copy) NSString *localizedAdditionalDescription; // @property (getter=isCancellable) BOOL cancellable; // @property (getter=isPausable) BOOL pausable; // @property (readonly, getter=isCancelled) BOOL cancelled; // @property (readonly, getter=isPaused) BOOL paused; // @property (nullable, copy) void (^cancellationHandler)(void); // @property (nullable, copy) void (^pausingHandler)(void); // @property (nullable, copy) void (^resumingHandler)(void) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setUserInfoObject:(nullable id)objectOrNil forKey:(NSProgressUserInfoKey)key; // @property (readonly, getter=isIndeterminate) BOOL indeterminate; // @property (readonly) double fractionCompleted; // @property (readonly, getter=isFinished) BOOL finished; // - (void)cancel; // - (void)pause; // - (void)resume __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSDictionary<NSProgressUserInfoKey, id> *userInfo; // @property (nullable, copy) NSProgressKind kind; // @property (nullable, copy) NSNumber *estimatedTimeRemaining __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // @property (nullable, copy) NSNumber *throughput __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // @property (nullable, copy) NSProgressFileOperationKind fileOperationKind __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, copy) NSURL *fileURL __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, copy) NSNumber *fileTotalCount __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // @property (nullable, copy) NSNumber *fileCompletedCount __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // - (void)publish __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)unpublish __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef void (*NSProgressUnpublishingHandler)(void); typedef _Nullable NSProgressUnpublishingHandler (*NSProgressPublishingHandler)(NSProgress *progress); // + (id)addSubscriberForFileURL:(NSURL *)url withPublishingHandler:(NSProgressPublishingHandler)publishingHandler __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (void)removeSubscriber:(id)subscriber __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, getter=isOld) BOOL old __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol NSProgressReporting <NSObject> // @property (readonly) NSProgress *progress; /* @end */ extern "C" NSProgressUserInfoKey const NSProgressEstimatedTimeRemainingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressThroughputKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressKind const NSProgressKindFile __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressFileOperationKindKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindDownloading __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindDecompressingAfterDownloading __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindReceiving __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressFileOperationKind const NSProgressFileOperationKindCopying __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressFileURLKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressFileTotalCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressFileCompletedCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSProgressUserInfoKey const NSProgressFileAnimationImageKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSProgressUserInfoKey const NSProgressFileAnimationImageOriginalRectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSProgressUserInfoKey const NSProgressFileIconKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end typedef NSString *NSNotificationName __attribute__((swift_wrapper(struct))); // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSNotification #define _REWRITER_typedef_NSNotification typedef struct objc_object NSNotification; typedef struct {} _objc_exc_NSNotification; #endif struct NSNotification_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSNotificationName name; // @property (nullable, readonly, retain) id object; // @property (nullable, readonly, copy) NSDictionary *userInfo; // - (instancetype)initWithName:(NSNotificationName)name object:(nullable id)object userInfo:(nullable NSDictionary *)userInfo __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSNotification (NSNotificationCreation) // + (instancetype)notificationWithName:(NSNotificationName)aName object:(nullable id)anObject; // + (instancetype)notificationWithName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo; // - (instancetype)init ; /* @end */ #ifndef _REWRITER_typedef_NSNotificationCenter #define _REWRITER_typedef_NSNotificationCenter typedef struct objc_object NSNotificationCenter; typedef struct {} _objc_exc_NSNotificationCenter; #endif struct NSNotificationCenter_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_impl; void *_callback; void *_pad[11]; }; @property (class, readonly, strong) NSNotificationCenter *defaultCenter; // - (void)addObserver:(id)observer selector:(SEL)aSelector name:(nullable NSNotificationName)aName object:(nullable id)anObject; // - (void)postNotification:(NSNotification *)notification; // - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject; // - (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject userInfo:(nullable NSDictionary *)aUserInfo; // - (void)removeObserver:(id)observer; // - (void)removeObserver:(id)observer name:(nullable NSNotificationName)aName object:(nullable id)anObject; // - (id <NSObject>)addObserverForName:(nullable NSNotificationName)name object:(nullable id)obj queue:(nullable NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSUUID #define _REWRITER_typedef_NSUUID typedef struct objc_object NSUUID; typedef struct {} _objc_exc_NSUUID; #endif #ifndef _REWRITER_typedef_NSLock #define _REWRITER_typedef_NSLock typedef struct objc_object NSLock; typedef struct {} _objc_exc_NSLock; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSBundle #define _REWRITER_typedef_NSBundle typedef struct objc_object NSBundle; typedef struct {} _objc_exc_NSBundle; #endif struct NSBundle_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, strong) NSBundle *mainBundle; // + (nullable instancetype)bundleWithPath:(NSString *)path; // - (nullable instancetype)initWithPath:(NSString *)path __attribute__((objc_designated_initializer)); // + (nullable instancetype)bundleWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSBundle *)bundleForClass:(Class)aClass; // + (nullable NSBundle *)bundleWithIdentifier:(NSString *)identifier; @property (class, readonly, copy) NSArray<NSBundle *> *allBundles; @property (class, readonly, copy) NSArray<NSBundle *> *allFrameworks; // - (BOOL)load; // @property (readonly, getter=isLoaded) BOOL loaded; // - (BOOL)unload; // - (BOOL)preflightAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)loadAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSURL *bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *resourceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *executableURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForAuxiliaryExecutable:(NSString *)executableName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *privateFrameworksURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *sharedFrameworksURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *sharedSupportURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *builtInPlugInsURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *appStoreReceiptURL __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *bundlePath; // @property (nullable, readonly, copy) NSString *resourcePath; // @property (nullable, readonly, copy) NSString *executablePath; // - (nullable NSString *)pathForAuxiliaryExecutable:(NSString *)executableName; // @property (nullable, readonly, copy) NSString *privateFrameworksPath; // @property (nullable, readonly, copy) NSString *sharedFrameworksPath; // @property (nullable, readonly, copy) NSString *sharedSupportPath; // @property (nullable, readonly, copy) NSString *builtInPlugInsPath; // + (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath inBundleWithURL:(NSURL *)bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath inBundleWithURL:(NSURL *)bundleURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath localization:(nullable NSString *)localizationName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSURL *> *)URLsForResourcesWithExtension:(nullable NSString *)ext subdirectory:(nullable NSString *)subpath localization:(nullable NSString *)localizationName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(NSString *)bundlePath; // + (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(NSString *)bundlePath; // - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext; // - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath; // - (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath forLocalization:(nullable NSString *)localizationName; // - (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath; // - (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(nullable NSString *)subpath forLocalization:(nullable NSString *)localizationName; // - (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName __attribute__ ((format_arg(1))); // @property (nullable, readonly, copy) NSString *bundleIdentifier; // @property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary; // @property (nullable, readonly, copy) NSDictionary<NSString *, id> *localizedInfoDictionary; // - (nullable id)objectForInfoDictionaryKey:(NSString *)key; // - (nullable Class)classNamed:(NSString *)className; // @property (nullable, readonly) Class principalClass; // @property (readonly, copy) NSArray<NSString *> *preferredLocalizations; // @property (readonly, copy) NSArray<NSString *> *localizations; // @property (nullable, readonly, copy) NSString *developmentLocalization; // + (NSArray<NSString *> *)preferredLocalizationsFromArray:(NSArray<NSString *> *)localizationsArray; // + (NSArray<NSString *> *)preferredLocalizationsFromArray:(NSArray<NSString *> *)localizationsArray forPreferences:(nullable NSArray<NSString *> *)preferencesArray; enum { NSBundleExecutableArchitectureI386 = 0x00000007, NSBundleExecutableArchitecturePPC = 0x00000012, NSBundleExecutableArchitectureX86_64 = 0x01000007, NSBundleExecutableArchitecturePPC64 = 0x01000012, NSBundleExecutableArchitectureARM64 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) = 0x0100000c }; // @property (nullable, readonly, copy) NSArray<NSNumber *> *executableArchitectures __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSString (NSBundleExtensionMethods) // - (NSString *)variantFittingPresentationWidth:(NSInteger)width __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSBundleDidLoadNotification; extern "C" NSString * const NSLoadedClasses; __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) #ifndef _REWRITER_typedef_NSBundleResourceRequest #define _REWRITER_typedef_NSBundleResourceRequest typedef struct objc_object NSBundleResourceRequest; typedef struct {} _objc_exc_NSBundleResourceRequest; #endif struct NSBundleResourceRequest_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithTags:(NSSet<NSString *> *)tags; // - (instancetype)initWithTags:(NSSet<NSString *> *)tags bundle:(NSBundle *)bundle __attribute__((objc_designated_initializer)); // @property double loadingPriority; // @property (readonly, copy) NSSet<NSString *> *tags; // @property (readonly, strong) NSBundle *bundle; // - (void)beginAccessingResourcesWithCompletionHandler:(void (^)(NSError * _Nullable error))completionHandler; // - (void)conditionallyBeginAccessingResourcesWithCompletionHandler:(void (^)(BOOL resourcesAvailable))completionHandler; // - (void)endAccessingResources; // @property (readonly, strong) NSProgress *progress; /* @end */ // @interface NSBundle (NSBundleResourceRequestAdditions) // - (void)setPreservationPriority:(double)priority forTags:(NSSet<NSString *> *)tags __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); // - (double)preservationPriorityForTag:(NSString *)tag __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); /* @end */ extern "C" NSNotificationName const NSBundleResourceRequestLowDiskSpaceNotification __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" double const NSBundleResourceRequestLoadingPriorityUrgent __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); #pragma clang assume_nonnull end enum { NS_UnknownByteOrder = CFByteOrderUnknown, NS_LittleEndian = CFByteOrderLittleEndian, NS_BigEndian = CFByteOrderBigEndian }; static __inline__ __attribute__((always_inline)) long NSHostByteOrder(void) { return CFByteOrderGetCurrent(); } static __inline__ __attribute__((always_inline)) unsigned short NSSwapShort(unsigned short inv) { return CFSwapInt16(inv); } static __inline__ __attribute__((always_inline)) unsigned int NSSwapInt(unsigned int inv) { return CFSwapInt32(inv); } static __inline__ __attribute__((always_inline)) unsigned long NSSwapLong(unsigned long inv) { return CFSwapInt64(inv); } static __inline__ __attribute__((always_inline)) unsigned long long NSSwapLongLong(unsigned long long inv) { return CFSwapInt64(inv); } static __inline__ __attribute__((always_inline)) unsigned short NSSwapBigShortToHost(unsigned short x) { return CFSwapInt16BigToHost(x); } static __inline__ __attribute__((always_inline)) unsigned int NSSwapBigIntToHost(unsigned int x) { return CFSwapInt32BigToHost(x); } static __inline__ __attribute__((always_inline)) unsigned long NSSwapBigLongToHost(unsigned long x) { return CFSwapInt64BigToHost(x); } static __inline__ __attribute__((always_inline)) unsigned long long NSSwapBigLongLongToHost(unsigned long long x) { return CFSwapInt64BigToHost(x); } static __inline__ __attribute__((always_inline)) unsigned short NSSwapHostShortToBig(unsigned short x) { return CFSwapInt16HostToBig(x); } static __inline__ __attribute__((always_inline)) unsigned int NSSwapHostIntToBig(unsigned int x) { return CFSwapInt32HostToBig(x); } static __inline__ __attribute__((always_inline)) unsigned long NSSwapHostLongToBig(unsigned long x) { return CFSwapInt64HostToBig(x); } static __inline__ __attribute__((always_inline)) unsigned long long NSSwapHostLongLongToBig(unsigned long long x) { return CFSwapInt64HostToBig(x); } static __inline__ __attribute__((always_inline)) unsigned short NSSwapLittleShortToHost(unsigned short x) { return CFSwapInt16LittleToHost(x); } static __inline__ __attribute__((always_inline)) unsigned int NSSwapLittleIntToHost(unsigned int x) { return CFSwapInt32LittleToHost(x); } static __inline__ __attribute__((always_inline)) unsigned long NSSwapLittleLongToHost(unsigned long x) { return CFSwapInt64LittleToHost(x); } static __inline__ __attribute__((always_inline)) unsigned long long NSSwapLittleLongLongToHost(unsigned long long x) { return CFSwapInt64LittleToHost(x); } static __inline__ __attribute__((always_inline)) unsigned short NSSwapHostShortToLittle(unsigned short x) { return CFSwapInt16HostToLittle(x); } static __inline__ __attribute__((always_inline)) unsigned int NSSwapHostIntToLittle(unsigned int x) { return CFSwapInt32HostToLittle(x); } static __inline__ __attribute__((always_inline)) unsigned long NSSwapHostLongToLittle(unsigned long x) { return CFSwapInt64HostToLittle(x); } static __inline__ __attribute__((always_inline)) unsigned long long NSSwapHostLongLongToLittle(unsigned long long x) { return CFSwapInt64HostToLittle(x); } typedef struct {unsigned int v;} NSSwappedFloat; typedef struct {unsigned long long v;} NSSwappedDouble; static __inline__ __attribute__((always_inline)) NSSwappedFloat NSConvertHostFloatToSwapped(float x) { union fconv { float number; NSSwappedFloat sf; }; return ((union fconv *)&x)->sf; } static __inline__ __attribute__((always_inline)) float NSConvertSwappedFloatToHost(NSSwappedFloat x) { union fconv { float number; NSSwappedFloat sf; }; return ((union fconv *)&x)->number; } static __inline__ __attribute__((always_inline)) NSSwappedDouble NSConvertHostDoubleToSwapped(double x) { union dconv { double number; NSSwappedDouble sd; }; return ((union dconv *)&x)->sd; } static __inline__ __attribute__((always_inline)) double NSConvertSwappedDoubleToHost(NSSwappedDouble x) { union dconv { double number; NSSwappedDouble sd; }; return ((union dconv *)&x)->number; } static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapFloat(NSSwappedFloat x) { x.v = NSSwapInt(x.v); return x; } static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapDouble(NSSwappedDouble x) { x.v = NSSwapLongLong(x.v); return x; } static __inline__ __attribute__((always_inline)) double NSSwapBigDoubleToHost(NSSwappedDouble x) { return NSConvertSwappedDoubleToHost(NSSwapDouble(x)); } static __inline__ __attribute__((always_inline)) float NSSwapBigFloatToHost(NSSwappedFloat x) { return NSConvertSwappedFloatToHost(NSSwapFloat(x)); } static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapHostDoubleToBig(double x) { return NSSwapDouble(NSConvertHostDoubleToSwapped(x)); } static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapHostFloatToBig(float x) { return NSSwapFloat(NSConvertHostFloatToSwapped(x)); } static __inline__ __attribute__((always_inline)) double NSSwapLittleDoubleToHost(NSSwappedDouble x) { return NSConvertSwappedDoubleToHost(x); } static __inline__ __attribute__((always_inline)) float NSSwapLittleFloatToHost(NSSwappedFloat x) { return NSConvertSwappedFloatToHost(x); } static __inline__ __attribute__((always_inline)) NSSwappedDouble NSSwapHostDoubleToLittle(double x) { return NSConvertHostDoubleToSwapped(x); } static __inline__ __attribute__((always_inline)) NSSwappedFloat NSSwapHostFloatToLittle(float x) { return NSConvertHostFloatToSwapped(x); } // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin extern "C" NSNotificationName const NSSystemClockDidChangeNotification __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef double NSTimeInterval; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif struct NSDate_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSTimeInterval timeIntervalSinceReferenceDate; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSDate (NSExtendedDate) // - (NSTimeInterval)timeIntervalSinceDate:(NSDate *)anotherDate; // @property (readonly) NSTimeInterval timeIntervalSinceNow; // @property (readonly) NSTimeInterval timeIntervalSince1970; // - (id)addTimeInterval:(NSTimeInterval)seconds __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use dateByAddingTimeInterval instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use dateByAddingTimeInterval instead"))); // - (instancetype)dateByAddingTimeInterval:(NSTimeInterval)ti __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSDate *)earlierDate:(NSDate *)anotherDate; // - (NSDate *)laterDate:(NSDate *)anotherDate; // - (NSComparisonResult)compare:(NSDate *)other; // - (BOOL)isEqualToDate:(NSDate *)otherDate; // @property (readonly, copy) NSString *description; // - (NSString *)descriptionWithLocale:(nullable id)locale; @property (class, readonly) NSTimeInterval timeIntervalSinceReferenceDate; /* @end */ // @interface NSDate (NSDateCreation) // + (instancetype)date; // + (instancetype)dateWithTimeIntervalSinceNow:(NSTimeInterval)secs; // + (instancetype)dateWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti; // + (instancetype)dateWithTimeIntervalSince1970:(NSTimeInterval)secs; // + (instancetype)dateWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)date; @property (class, readonly, copy) NSDate *distantFuture; @property (class, readonly, copy) NSDate *distantPast; @property (class, readonly, copy) NSDate *now __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (instancetype)initWithTimeIntervalSinceNow:(NSTimeInterval)secs; // - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)secs; // - (instancetype)initWithTimeInterval:(NSTimeInterval)secsToBeAdded sinceDate:(NSDate *)date; /* @end */ #pragma clang assume_nonnull end // @class NSDateComponents; #ifndef _REWRITER_typedef_NSDateComponents #define _REWRITER_typedef_NSDateComponents typedef struct objc_object NSDateComponents; typedef struct {} _objc_exc_NSDateComponents; #endif #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef NSString * NSCalendarIdentifier __attribute__((swift_wrapper(struct))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierGregorian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierBuddhist __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierChinese __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierCoptic __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierEthiopicAmeteMihret __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierEthiopicAmeteAlem __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierHebrew __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierISO8601 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierIndian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamic __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicCivil __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierJapanese __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierPersian __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierRepublicOfChina __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicTabular __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSCalendarIdentifier const NSCalendarIdentifierIslamicUmmAlQura __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSCalendarUnit; enum { NSCalendarUnitEra = kCFCalendarUnitEra, NSCalendarUnitYear = kCFCalendarUnitYear, NSCalendarUnitMonth = kCFCalendarUnitMonth, NSCalendarUnitDay = kCFCalendarUnitDay, NSCalendarUnitHour = kCFCalendarUnitHour, NSCalendarUnitMinute = kCFCalendarUnitMinute, NSCalendarUnitSecond = kCFCalendarUnitSecond, NSCalendarUnitWeekday = kCFCalendarUnitWeekday, NSCalendarUnitWeekdayOrdinal = kCFCalendarUnitWeekdayOrdinal, NSCalendarUnitQuarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitQuarter, NSCalendarUnitWeekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitWeekOfMonth, NSCalendarUnitWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitWeekOfYear, NSCalendarUnitYearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFCalendarUnitYearForWeekOfYear, NSCalendarUnitNanosecond __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 15), NSCalendarUnitCalendar __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 20), NSCalendarUnitTimeZone __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1 << 21), NSEraCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitEra"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitEra"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitEra"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitEra"))) = NSCalendarUnitEra, NSYearCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitYear"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitYear"))) = NSCalendarUnitYear, NSMonthCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitMonth"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitMonth"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitMonth"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitMonth"))) = NSCalendarUnitMonth, NSDayCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitDay"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitDay"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitDay"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitDay"))) = NSCalendarUnitDay, NSHourCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitHour"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitHour"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitHour"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitHour"))) = NSCalendarUnitHour, NSMinuteCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitMinute"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitMinute"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitMinute"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitMinute"))) = NSCalendarUnitMinute, NSSecondCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitSecond"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitSecond"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitSecond"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitSecond"))) = NSCalendarUnitSecond, NSWeekCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean"))) = kCFCalendarUnitWeek, NSWeekdayCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekday"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekday"))) = NSCalendarUnitWeekday, NSWeekdayOrdinalCalendarUnit __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekdayOrdinal"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekdayOrdinal"))) = NSCalendarUnitWeekdayOrdinal, NSQuarterCalendarUnit __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitQuarter"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitQuarter"))) = NSCalendarUnitQuarter, NSWeekOfMonthCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekOfMonth"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekOfMonth"))) = NSCalendarUnitWeekOfMonth, NSWeekOfYearCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitWeekOfYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitWeekOfYear"))) = NSCalendarUnitWeekOfYear, NSYearForWeekOfYearCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitYearForWeekOfYear"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitYearForWeekOfYear"))) = NSCalendarUnitYearForWeekOfYear, NSCalendarCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitCalendar"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitCalendar"))) = NSCalendarUnitCalendar, NSTimeZoneCalendarUnit __attribute__((availability(macos,introduced=10.7,deprecated=10.10,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarUnitTimeZone"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarUnitTimeZone"))) = NSCalendarUnitTimeZone, }; typedef NSUInteger NSCalendarOptions; enum { NSCalendarWrapComponents = (1UL << 0), NSCalendarMatchStrictly __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 1), NSCalendarSearchBackwards __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 2), NSCalendarMatchPreviousTimePreservingSmallerUnits __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 8), NSCalendarMatchNextTimePreservingSmallerUnits __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 9), NSCalendarMatchNextTime __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 10), NSCalendarMatchFirst __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 12), NSCalendarMatchLast __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1ULL << 13) }; enum { NSWrapCalendarComponents __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarWrapComponents"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarWrapComponents"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarWrapComponents"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarWrapComponents"))) = NSCalendarWrapComponents, }; #ifndef _REWRITER_typedef_NSCalendar #define _REWRITER_typedef_NSCalendar typedef struct objc_object NSCalendar; typedef struct {} _objc_exc_NSCalendar; #endif struct NSCalendar_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, copy) NSCalendar *currentCalendar; @property (class, readonly, strong) NSCalendar *autoupdatingCurrentCalendar __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSCalendar *)calendarWithIdentifier:(NSCalendarIdentifier)calendarIdentifierConstant __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable id)initWithCalendarIdentifier:(NSCalendarIdentifier)ident __attribute__((objc_designated_initializer)); // @property (readonly, copy) NSCalendarIdentifier calendarIdentifier; // @property (nullable, copy) NSLocale *locale; // @property (copy) NSTimeZone *timeZone; // @property NSUInteger firstWeekday; // @property NSUInteger minimumDaysInFirstWeek; // @property (readonly, copy) NSArray<NSString *> *eraSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *longEraSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *monthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *veryShortMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *standaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *veryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *weekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *veryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *standaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *veryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *quarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *standaloneQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *shortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *AMSymbol __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *PMSymbol __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)minimumRangeOfUnit:(NSCalendarUnit)unit; // - (NSRange)maximumRangeOfUnit:(NSCalendarUnit)unit; // - (NSRange)rangeOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date; // - (NSUInteger)ordinalityOfUnit:(NSCalendarUnit)smaller inUnit:(NSCalendarUnit)larger forDate:(NSDate *)date; // - (BOOL)rangeOfUnit:(NSCalendarUnit)unit startDate:(NSDate * _Nullable * _Nullable)datep interval:(nullable NSTimeInterval *)tip forDate:(NSDate *)date __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateFromComponents:(NSDateComponents *)comps; // - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDate:(NSDate *)date; // - (nullable NSDate *)dateByAddingComponents:(NSDateComponents *)comps toDate:(NSDate *)date options:(NSCalendarOptions)opts; // - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDate:(NSDate *)startingDate toDate:(NSDate *)resultDate options:(NSCalendarOptions)opts; // - (void)getEra:(out nullable NSInteger *)eraValuePointer year:(out nullable NSInteger *)yearValuePointer month:(out nullable NSInteger *)monthValuePointer day:(out nullable NSInteger *)dayValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getEra:(out nullable NSInteger *)eraValuePointer yearForWeekOfYear:(out nullable NSInteger *)yearValuePointer weekOfYear:(out nullable NSInteger *)weekValuePointer weekday:(out nullable NSInteger *)weekdayValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getHour:(out nullable NSInteger *)hourValuePointer minute:(out nullable NSInteger *)minuteValuePointer second:(out nullable NSInteger *)secondValuePointer nanosecond:(out nullable NSInteger *)nanosecondValuePointer fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSInteger)component:(NSCalendarUnit)unit fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateWithEra:(NSInteger)eraValue year:(NSInteger)yearValue month:(NSInteger)monthValue day:(NSInteger)dayValue hour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue nanosecond:(NSInteger)nanosecondValue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateWithEra:(NSInteger)eraValue yearForWeekOfYear:(NSInteger)yearValue weekOfYear:(NSInteger)weekValue weekday:(NSInteger)weekdayValue hour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue nanosecond:(NSInteger)nanosecondValue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSDate *)startOfDayForDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSDateComponents *)componentsInTimeZone:(NSTimeZone *)timezone fromDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSComparisonResult)compareDate:(NSDate *)date1 toDate:(NSDate *)date2 toUnitGranularity:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDate:(NSDate *)date1 equalToDate:(NSDate *)date2 toUnitGranularity:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDate:(NSDate *)date1 inSameDayAsDate:(NSDate *)date2 __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDateInToday:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDateInYesterday:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDateInTomorrow:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isDateInWeekend:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)rangeOfWeekendStartDate:(out NSDate * _Nullable * _Nullable)datep interval:(out nullable NSTimeInterval *)tip containingDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)nextWeekendStartDate:(out NSDate * _Nullable * _Nullable)datep interval:(out nullable NSTimeInterval *)tip options:(NSCalendarOptions)options afterDate:(NSDate *)date __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDateComponents:(NSDateComponents *)startingDateComp toDateComponents:(NSDateComponents *)resultDateComp options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateByAddingUnit:(NSCalendarUnit)unit value:(NSInteger)value toDate:(NSDate *)date options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateDatesStartingAfterDate:(NSDate *)start matchingComponents:(NSDateComponents *)comps options:(NSCalendarOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSDate * _Nullable date, BOOL exactMatch, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingComponents:(NSDateComponents *)comps options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingUnit:(NSCalendarUnit)unit value:(NSInteger)value options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)nextDateAfterDate:(NSDate *)date matchingHour:(NSInteger)hourValue minute:(NSInteger)minuteValue second:(NSInteger)secondValue options:(NSCalendarOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateBySettingUnit:(NSCalendarUnit)unit value:(NSInteger)v ofDate:(NSDate *)date options:(NSCalendarOptions)opts __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)dateBySettingHour:(NSInteger)h minute:(NSInteger)m second:(NSInteger)s ofDate:(NSDate *)date options:(NSCalendarOptions)opts __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)date:(NSDate *)date matchesComponents:(NSDateComponents *)components __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSCalendarDayChangedNotification __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); enum { NSDateComponentUndefined = 9223372036854775807L, NSUndefinedDateComponent __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSDateComponentUndefined"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSDateComponentUndefined"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSDateComponentUndefined"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSDateComponentUndefined"))) = NSDateComponentUndefined }; #ifndef _REWRITER_typedef_NSDateComponents #define _REWRITER_typedef_NSDateComponents typedef struct objc_object NSDateComponents; typedef struct {} _objc_exc_NSDateComponents; #endif struct NSDateComponents_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nullable, copy) NSCalendar *calendar __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSTimeZone *timeZone __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSInteger era; // @property NSInteger year; // @property NSInteger month; // @property NSInteger day; // @property NSInteger hour; // @property NSInteger minute; // @property NSInteger second; // @property NSInteger nanosecond __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSInteger weekday; // @property NSInteger weekdayOrdinal; // @property NSInteger quarter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSInteger weekOfMonth __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSInteger weekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSInteger yearForWeekOfYear __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (getter=isLeapMonth) BOOL leapMonth __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSDate *date __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSInteger)week __attribute__((availability(macos,introduced=10.4,deprecated=10.9,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -weekOfMonth or -weekOfYear, depending on which you mean"))); // - (void)setWeek:(NSInteger)v __attribute__((availability(macos,introduced=10.4,deprecated=10.9,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -setWeekOfMonth: or -setWeekOfYear:, depending on which you mean"))); // - (void)setValue:(NSInteger)value forComponent:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSInteger)valueForComponent:(NSCalendarUnit)unit __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (getter=isValidDate, readonly) BOOL validDate __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isValidDateInCalendar:(NSCalendar *)calendar __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #pragma clang assume_nonnull begin enum { NSOpenStepUnicodeReservedBase = 0xF400 }; #ifndef _REWRITER_typedef_NSCharacterSet #define _REWRITER_typedef_NSCharacterSet typedef struct objc_object NSCharacterSet; typedef struct {} _objc_exc_NSCharacterSet; #endif struct NSCharacterSet_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (readonly, class, copy) NSCharacterSet *controlCharacterSet; @property (readonly, class, copy) NSCharacterSet *whitespaceCharacterSet; @property (readonly, class, copy) NSCharacterSet *whitespaceAndNewlineCharacterSet; @property (readonly, class, copy) NSCharacterSet *decimalDigitCharacterSet; @property (readonly, class, copy) NSCharacterSet *letterCharacterSet; @property (readonly, class, copy) NSCharacterSet *lowercaseLetterCharacterSet; @property (readonly, class, copy) NSCharacterSet *uppercaseLetterCharacterSet; @property (readonly, class, copy) NSCharacterSet *nonBaseCharacterSet; @property (readonly, class, copy) NSCharacterSet *alphanumericCharacterSet; @property (readonly, class, copy) NSCharacterSet *decomposableCharacterSet; @property (readonly, class, copy) NSCharacterSet *illegalCharacterSet; @property (readonly, class, copy) NSCharacterSet *punctuationCharacterSet; @property (readonly, class, copy) NSCharacterSet *capitalizedLetterCharacterSet; @property (readonly, class, copy) NSCharacterSet *symbolCharacterSet; @property (readonly, class, copy) NSCharacterSet *newlineCharacterSet __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSCharacterSet *)characterSetWithRange:(NSRange)aRange; // + (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString; // + (NSCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data; // + (nullable NSCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName; // - (instancetype) initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (BOOL)characterIsMember:(unichar)aCharacter; // @property (readonly, copy) NSData *bitmapRepresentation; // @property (readonly, copy) NSCharacterSet *invertedSet; // - (BOOL)longCharacterIsMember:(UTF32Char)theLongChar; // - (BOOL)isSupersetOfSet:(NSCharacterSet *)theOtherSet; // - (BOOL)hasMemberInPlane:(uint8_t)thePlane; /* @end */ #ifndef _REWRITER_typedef_NSMutableCharacterSet #define _REWRITER_typedef_NSMutableCharacterSet typedef struct objc_object NSMutableCharacterSet; typedef struct {} _objc_exc_NSMutableCharacterSet; #endif struct NSMutableCharacterSet_IMPL { struct NSCharacterSet_IMPL NSCharacterSet_IVARS; }; // - (void)addCharactersInRange:(NSRange)aRange; // - (void)removeCharactersInRange:(NSRange)aRange; // - (void)addCharactersInString:(NSString *)aString; // - (void)removeCharactersInString:(NSString *)aString; // - (void)formUnionWithCharacterSet:(NSCharacterSet *)otherSet; // - (void)formIntersectionWithCharacterSet:(NSCharacterSet *)otherSet; // - (void)invert; // + (NSMutableCharacterSet *)controlCharacterSet; // + (NSMutableCharacterSet *)whitespaceCharacterSet; // + (NSMutableCharacterSet *)whitespaceAndNewlineCharacterSet; // + (NSMutableCharacterSet *)decimalDigitCharacterSet; // + (NSMutableCharacterSet *)letterCharacterSet; // + (NSMutableCharacterSet *)lowercaseLetterCharacterSet; // + (NSMutableCharacterSet *)uppercaseLetterCharacterSet; // + (NSMutableCharacterSet *)nonBaseCharacterSet; // + (NSMutableCharacterSet *)alphanumericCharacterSet; // + (NSMutableCharacterSet *)decomposableCharacterSet; // + (NSMutableCharacterSet *)illegalCharacterSet; // + (NSMutableCharacterSet *)punctuationCharacterSet; // + (NSMutableCharacterSet *)capitalizedLetterCharacterSet; // + (NSMutableCharacterSet *)symbolCharacterSet; // + (NSMutableCharacterSet *)newlineCharacterSet __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSMutableCharacterSet *)characterSetWithRange:(NSRange)aRange; // + (NSMutableCharacterSet *)characterSetWithCharactersInString:(NSString *)aString; // + (NSMutableCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data; // + (nullable NSMutableCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #pragma clang assume_nonnull begin typedef NSInteger NSDecodingFailurePolicy; enum { NSDecodingFailurePolicyRaiseException, NSDecodingFailurePolicySetErrorAndReturn, } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSCoder #define _REWRITER_typedef_NSCoder typedef struct objc_object NSCoder; typedef struct {} _objc_exc_NSCoder; #endif struct NSCoder_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)encodeValueOfObjCType:(const char *)type at:(const void *)addr; // - (void)encodeDataObject:(NSData *)data; // - (nullable NSData *)decodeDataObject; // - (void)decodeValueOfObjCType:(const char *)type at:(void *)data size:(NSUInteger)size __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSInteger)versionForClassName:(NSString *)className; /* @end */ // @interface NSCoder (NSExtendedCoder) // - (void)encodeObject:(nullable id)object; // - (void)encodeRootObject:(id)rootObject; // - (void)encodeBycopyObject:(nullable id)anObject; // - (void)encodeByrefObject:(nullable id)anObject; // - (void)encodeConditionalObject:(nullable id)object; // - (void)encodeValuesOfObjCTypes:(const char *)types, ...; // - (void)encodeArrayOfObjCType:(const char *)type count:(NSUInteger)count at:(const void *)array; // - (void)encodeBytes:(nullable const void *)byteaddr length:(NSUInteger)length; // - (nullable id)decodeObject; // - (nullable id)decodeTopLevelObjectAndReturnError:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeTopLevelObject() throws' instead"))); // - (void)decodeValuesOfObjCTypes:(const char *)types, ...; // - (void)decodeArrayOfObjCType:(const char *)itemType count:(NSUInteger)count at:(void *)array; // - (nullable void *)decodeBytesWithReturnedLength:(NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer)); // - (void)setObjectZone:(nullable NSZone *)zone ; // - (nullable NSZone *)objectZone ; // @property (readonly) unsigned int systemVersion; // @property (readonly) BOOL allowsKeyedCoding; // - (void)encodeObject:(nullable id)object forKey:(NSString *)key; // - (void)encodeConditionalObject:(nullable id)object forKey:(NSString *)key; // - (void)encodeBool:(BOOL)value forKey:(NSString *)key; // - (void)encodeInt:(int)value forKey:(NSString *)key; // - (void)encodeInt32:(int32_t)value forKey:(NSString *)key; // - (void)encodeInt64:(int64_t)value forKey:(NSString *)key; // - (void)encodeFloat:(float)value forKey:(NSString *)key; // - (void)encodeDouble:(double)value forKey:(NSString *)key; // - (void)encodeBytes:(nullable const uint8_t *)bytes length:(NSUInteger)length forKey:(NSString *)key; // - (BOOL)containsValueForKey:(NSString *)key; // - (nullable id)decodeObjectForKey:(NSString *)key; // - (nullable id)decodeTopLevelObjectForKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeObject(of:, forKey:)' instead"))); // - (BOOL)decodeBoolForKey:(NSString *)key; // - (int)decodeIntForKey:(NSString *)key; // - (int32_t)decodeInt32ForKey:(NSString *)key; // - (int64_t)decodeInt64ForKey:(NSString *)key; // - (float)decodeFloatForKey:(NSString *)key; // - (double)decodeDoubleForKey:(NSString *)key; // - (nullable const uint8_t *)decodeBytesForKey:(NSString *)key returnedLength:(nullable NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer)); // - (void)encodeInteger:(NSInteger)value forKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSInteger)decodeIntegerForKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable id)decodeTopLevelObjectOfClass:(Class)aClass forKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeObject(of:, forKey:)' instead"))); // - (nullable NSArray *)decodeArrayOfObjectsOfClass:(Class)cls forKey:(NSString *)key __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // - (nullable NSDictionary *)decodeDictionaryWithKeysOfClass:(Class)keyCls objectsOfClass:(Class)objectCls forKey:(NSString *)key __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // - (nullable id)decodeObjectOfClasses:(nullable NSSet<Class> *)classes forKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((swift_private)); // - (nullable id)decodeTopLevelObjectOfClasses:(nullable NSSet<Class> *)classes forKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="Use 'decodeObject(of:, forKey:)' instead"))); // - (nullable NSArray *)decodeArrayOfObjectsOfClasses:(NSSet<Class> *)classes forKey:(NSString *)key __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // - (nullable NSDictionary *)decodeDictionaryWithKeysOfClasses:(NSSet<Class> *)keyClasses objectsOfClasses:(NSSet<Class> *)objectClasses forKey:(NSString *)key __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // - (nullable id)decodePropertyListForKey:(NSString *)key __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSSet<Class> *allowedClasses __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)failWithError:(NSError *)error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSDecodingFailurePolicy decodingFailurePolicy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSError *error __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSCoder(NSDeprecated) // - (void)decodeValueOfObjCType:(const char *)type at:(void *)data __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="decodeValueOfObjCType:at:size:"))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSDataReadingOptions; enum { NSDataReadingMappedIfSafe = 1UL << 0, NSDataReadingUncached = 1UL << 1, NSDataReadingMappedAlways __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 3, NSDataReadingMapped __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingMappedIfSafe"))) = NSDataReadingMappedIfSafe, NSMappedRead __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingMapped"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingMapped"))) = NSDataReadingMapped, NSUncachedRead __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataReadingUncached"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataReadingUncached"))) = NSDataReadingUncached }; typedef NSUInteger NSDataWritingOptions; enum { NSDataWritingAtomic = 1UL << 0, NSDataWritingWithoutOverwriting __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 1, NSDataWritingFileProtectionNone __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x10000000, NSDataWritingFileProtectionComplete __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x20000000, NSDataWritingFileProtectionCompleteUnlessOpen __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x30000000, NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x40000000, NSDataWritingFileProtectionMask __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0xf0000000, NSAtomicWrite __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSDataWritingAtomic"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSDataWritingAtomic"))) = NSDataWritingAtomic }; typedef NSUInteger NSDataSearchOptions; enum { NSDataSearchBackwards = 1UL << 0, NSDataSearchAnchored = 1UL << 1 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSDataBase64EncodingOptions; enum { NSDataBase64Encoding64CharacterLineLength = 1UL << 0, NSDataBase64Encoding76CharacterLineLength = 1UL << 1, NSDataBase64EncodingEndLineWithCarriageReturn = 1UL << 4, NSDataBase64EncodingEndLineWithLineFeed = 1UL << 5, } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSDataBase64DecodingOptions; enum { NSDataBase64DecodingIgnoreUnknownCharacters = 1UL << 0 } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif struct NSData_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger length; // @property (readonly) const void *bytes __attribute__((objc_returns_inner_pointer)); /* @end */ // @interface NSData (NSExtendedData) // @property (readonly, copy) NSString *description; // - (void)getBytes:(void *)buffer length:(NSUInteger)length; // - (void)getBytes:(void *)buffer range:(NSRange)range; // - (BOOL)isEqualToData:(NSData *)other; // - (NSData *)subdataWithRange:(NSRange)range; // - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile; // - (BOOL)writeToURL:(NSURL *)url atomically:(BOOL)atomically; // - (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr; // - (BOOL)writeToURL:(NSURL *)url options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr; // - (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void) enumerateByteRangesUsingBlock:(void (__attribute__((noescape)) ^)(const void *bytes, NSRange byteRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSData (NSDataCreation) // + (instancetype)data; // + (instancetype)dataWithBytes:(nullable const void *)bytes length:(NSUInteger)length; // + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length; // + (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b; // + (nullable instancetype)dataWithContentsOfFile:(NSString *)path options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; // + (nullable instancetype)dataWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; // + (nullable instancetype)dataWithContentsOfFile:(NSString *)path; // + (nullable instancetype)dataWithContentsOfURL:(NSURL *)url; // - (instancetype)initWithBytes:(nullable const void *)bytes length:(NSUInteger)length; // - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length; // - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b; // - (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length deallocator:(nullable void (^)(void *bytes, NSUInteger length))deallocator __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initWithContentsOfFile:(NSString *)path options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr; // - (nullable instancetype)initWithContentsOfFile:(NSString *)path; // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url; // - (instancetype)initWithData:(NSData *)data; // + (instancetype)dataWithData:(NSData *)data; /* @end */ // @interface NSData (NSDataBase64Encoding) // - (nullable instancetype)initWithBase64EncodedString:(NSString *)base64String options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSString *)base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSData *)base64EncodedDataWithOptions:(NSDataBase64EncodingOptions)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ typedef NSInteger NSDataCompressionAlgorithm; enum { NSDataCompressionAlgorithmLZFSE = 0, NSDataCompressionAlgorithmLZ4, NSDataCompressionAlgorithmLZMA, NSDataCompressionAlgorithmZlib, } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @interface NSData (NSDataCompression) // - (nullable instancetype)decompressedDataUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (nullable instancetype)compressedDataUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @interface NSData (NSDeprecated) // - (void)getBytes:(void *)buffer __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="This method is unsafe because it could potentially cause buffer overruns. Use -getBytes:length: instead."))); // + (nullable id)dataWithContentsOfMappedFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use +dataWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))); // - (nullable id)initWithContentsOfMappedFile:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -initWithContentsOfURL:options:error: and NSDataReadingMappedIfSafe or NSDataReadingMappedAlways instead."))); // - (nullable id)initWithBase64Encoding:(NSString *)base64String __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Use initWithBase64EncodedString:options: instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Use initWithBase64EncodedString:options: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use initWithBase64EncodedString:options: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use initWithBase64EncodedString:options: instead"))); // - (NSString *)base64Encoding __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Use base64EncodedStringWithOptions: instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Use base64EncodedStringWithOptions: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use base64EncodedStringWithOptions: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use base64EncodedStringWithOptions: instead"))); /* @end */ #ifndef _REWRITER_typedef_NSMutableData #define _REWRITER_typedef_NSMutableData typedef struct objc_object NSMutableData; typedef struct {} _objc_exc_NSMutableData; #endif struct NSMutableData_IMPL { struct NSData_IMPL NSData_IVARS; }; // @property (readonly) void *mutableBytes __attribute__((objc_returns_inner_pointer)); // @property NSUInteger length; /* @end */ // @interface NSMutableData (NSExtendedMutableData) // - (void)appendBytes:(const void *)bytes length:(NSUInteger)length; // - (void)appendData:(NSData *)other; // - (void)increaseLengthBy:(NSUInteger)extraLength; // - (void)replaceBytesInRange:(NSRange)range withBytes:(const void *)bytes; // - (void)resetBytesInRange:(NSRange)range; // - (void)setData:(NSData *)data; // - (void)replaceBytesInRange:(NSRange)range withBytes:(nullable const void *)replacementBytes length:(NSUInteger)replacementLength; /* @end */ // @interface NSMutableData (NSMutableDataCreation) // + (nullable instancetype)dataWithCapacity:(NSUInteger)aNumItems; // + (nullable instancetype)dataWithLength:(NSUInteger)length; // - (nullable instancetype)initWithCapacity:(NSUInteger)capacity; // - (nullable instancetype)initWithLength:(NSUInteger)length; /* @end */ // @interface NSMutableData (NSMutableDataCompression) // - (BOOL)decompressUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (BOOL)compressUsingAlgorithm:(NSDataCompressionAlgorithm)algorithm error:(NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPurgeableData #define _REWRITER_typedef_NSPurgeableData typedef struct objc_object NSPurgeableData; typedef struct {} _objc_exc_NSPurgeableData; #endif struct NSPurgeableData_IMPL { struct NSMutableData_IMPL NSMutableData_IVARS; NSUInteger _length; int32_t _accessCount; uint8_t _private[32]; void *_reserved; }; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSDateInterval #define _REWRITER_typedef_NSDateInterval typedef struct objc_object NSDateInterval; typedef struct {} _objc_exc_NSDateInterval; #endif struct NSDateInterval_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSDate *startDate; // @property (readonly, copy) NSDate *endDate; // @property (readonly) NSTimeInterval duration; // - (instancetype)init; // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithStartDate:(NSDate *)startDate duration:(NSTimeInterval)duration __attribute__((objc_designated_initializer)); // - (instancetype)initWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate; // - (NSComparisonResult)compare:(NSDateInterval *)dateInterval; // - (BOOL)isEqualToDateInterval:(NSDateInterval *)dateInterval; // - (BOOL)intersectsDateInterval:(NSDateInterval *)dateInterval; // - (nullable NSDateInterval *)intersectionWithDateInterval:(NSDateInterval *)dateInterval; // - (BOOL)containsDate:(NSDate *)date; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * NSAttributedStringKey __attribute__((swift_wrapper(struct))); __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSAttributedString #define _REWRITER_typedef_NSAttributedString typedef struct objc_object NSAttributedString; typedef struct {} _objc_exc_NSAttributedString; #endif struct NSAttributedString_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSString *string; // - (NSDictionary<NSAttributedStringKey, id> *)attributesAtIndex:(NSUInteger)location effectiveRange:(nullable NSRangePointer)range; /* @end */ // @interface NSAttributedString (NSExtendedAttributedString) // @property (readonly) NSUInteger length; // - (nullable id)attribute:(NSAttributedStringKey)attrName atIndex:(NSUInteger)location effectiveRange:(nullable NSRangePointer)range; // - (NSAttributedString *)attributedSubstringFromRange:(NSRange)range; // - (NSDictionary<NSAttributedStringKey, id> *)attributesAtIndex:(NSUInteger)location longestEffectiveRange:(nullable NSRangePointer)range inRange:(NSRange)rangeLimit; // - (nullable id)attribute:(NSAttributedStringKey)attrName atIndex:(NSUInteger)location longestEffectiveRange:(nullable NSRangePointer)range inRange:(NSRange)rangeLimit; // - (BOOL)isEqualToAttributedString:(NSAttributedString *)other; // - (instancetype)initWithString:(NSString *)str; // - (instancetype)initWithString:(NSString *)str attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs; // - (instancetype)initWithAttributedString:(NSAttributedString *)attrStr; typedef NSUInteger NSAttributedStringEnumerationOptions; enum { NSAttributedStringEnumerationReverse = (1UL << 1), NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = (1UL << 20) }; // - (void)enumerateAttributesInRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSDictionary<NSAttributedStringKey, id> *attrs, NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateAttribute:(NSAttributedStringKey)attrName inRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(id _Nullable value, NSRange range, BOOL *stop))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMutableAttributedString #define _REWRITER_typedef_NSMutableAttributedString typedef struct objc_object NSMutableAttributedString; typedef struct {} _objc_exc_NSMutableAttributedString; #endif struct NSMutableAttributedString_IMPL { struct NSAttributedString_IMPL NSAttributedString_IVARS; }; // - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)str; // - (void)setAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs range:(NSRange)range; /* @end */ // @interface NSMutableAttributedString (NSExtendedMutableAttributedString) // @property (readonly, retain) NSMutableString *mutableString; // - (void)addAttribute:(NSAttributedStringKey)name value:(id)value range:(NSRange)range; // - (void)addAttributes:(NSDictionary<NSAttributedStringKey, id> *)attrs range:(NSRange)range; // - (void)removeAttribute:(NSAttributedStringKey)name range:(NSRange)range; // - (void)replaceCharactersInRange:(NSRange)range withAttributedString:(NSAttributedString *)attrString; // - (void)insertAttributedString:(NSAttributedString *)attrString atIndex:(NSUInteger)loc; // - (void)appendAttributedString:(NSAttributedString *)attrString; // - (void)deleteCharactersInRange:(NSRange)range; // - (void)setAttributedString:(NSAttributedString *)attrString; // - (void)beginEditing; // - (void)endEditing; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSAttributedString; #ifndef _REWRITER_typedef_NSAttributedString #define _REWRITER_typedef_NSAttributedString typedef struct objc_object NSAttributedString; typedef struct {} _objc_exc_NSAttributedString; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #pragma clang assume_nonnull begin typedef NSInteger NSFormattingContext; enum { NSFormattingContextUnknown = 0, NSFormattingContextDynamic = 1, NSFormattingContextStandalone = 2, NSFormattingContextListItem = 3, NSFormattingContextBeginningOfSentence = 4, NSFormattingContextMiddleOfSentence = 5, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSFormattingUnitStyle; enum { NSFormattingUnitStyleShort = 1, NSFormattingUnitStyleMedium, NSFormattingUnitStyleLong, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSFormatter #define _REWRITER_typedef_NSFormatter typedef struct objc_object NSFormatter; typedef struct {} _objc_exc_NSFormatter; #endif struct NSFormatter_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable NSString *)stringForObjectValue:(nullable id)obj; // - (nullable NSAttributedString *)attributedStringForObjectValue:(id)obj withDefaultAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs; // - (nullable NSString *)editingStringForObjectValue:(id)obj; // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; // - (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString * _Nullable * _Nullable)newString errorDescription:(NSString * _Nullable * _Nullable)error; // - (BOOL)isPartialStringValid:(NSString * _Nonnull * _Nonnull)partialStringPtr proposedSelectedRange:(nullable NSRangePointer)proposedSelRangePtr originalString:(NSString *)origString originalSelectedRange:(NSRange)origSelRange errorDescription:(NSString * _Nullable * _Nullable)error; /* @end */ #pragma clang assume_nonnull end // @class NSLocale; #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSCalendar #define _REWRITER_typedef_NSCalendar typedef struct objc_object NSCalendar; typedef struct {} _objc_exc_NSCalendar; #endif #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSDateFormatter #define _REWRITER_typedef_NSDateFormatter typedef struct objc_object NSDateFormatter; typedef struct {} _objc_exc_NSDateFormatter; #endif struct NSDateFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; NSMutableDictionary *_attributes; CFDateFormatterRef _formatter; NSUInteger _counter; }; // @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string range:(inout nullable NSRange *)rangep error:(out NSError **)error; // - (NSString *)stringFromDate:(NSDate *)date; // - (nullable NSDate *)dateFromString:(NSString *)string; typedef NSUInteger NSDateFormatterStyle; enum { NSDateFormatterNoStyle = kCFDateFormatterNoStyle, NSDateFormatterShortStyle = kCFDateFormatterShortStyle, NSDateFormatterMediumStyle = kCFDateFormatterMediumStyle, NSDateFormatterLongStyle = kCFDateFormatterLongStyle, NSDateFormatterFullStyle = kCFDateFormatterFullStyle }; typedef NSUInteger NSDateFormatterBehavior; enum { NSDateFormatterBehaviorDefault = 0, NSDateFormatterBehavior10_4 = 1040, }; // + (NSString *)localizedStringFromDate:(NSDate *)date dateStyle:(NSDateFormatterStyle)dstyle timeStyle:(NSDateFormatterStyle)tstyle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSString *)dateFormatFromTemplate:(NSString *)tmplate options:(NSUInteger)opts locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class) NSDateFormatterBehavior defaultFormatterBehavior; // - (void) setLocalizedDateFormatFromTemplate:(NSString *)dateFormatTemplate __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSString *dateFormat; // @property NSDateFormatterStyle dateStyle; // @property NSDateFormatterStyle timeStyle; // @property (null_resettable, copy) NSLocale *locale; // @property BOOL generatesCalendarDates; // @property NSDateFormatterBehavior formatterBehavior; // @property (null_resettable, copy) NSTimeZone *timeZone; // @property (null_resettable, copy) NSCalendar *calendar; // @property (getter=isLenient) BOOL lenient; // @property (nullable, copy) NSDate *twoDigitStartDate; // @property (nullable, copy) NSDate *defaultDate; // @property (null_resettable, copy) NSArray<NSString *> *eraSymbols; // @property (null_resettable, copy) NSArray<NSString *> *monthSymbols; // @property (null_resettable, copy) NSArray<NSString *> *shortMonthSymbols; // @property (null_resettable, copy) NSArray<NSString *> *weekdaySymbols; // @property (null_resettable, copy) NSArray<NSString *> *shortWeekdaySymbols; // @property (null_resettable, copy) NSString *AMSymbol; // @property (null_resettable, copy) NSString *PMSymbol; // @property (null_resettable, copy) NSArray<NSString *> *longEraSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *veryShortMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *standaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *veryShortStandaloneMonthSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *veryShortWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *standaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *veryShortStandaloneWeekdaySymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *quarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *shortQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *standaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (null_resettable, copy) NSArray<NSString *> *shortStandaloneQuarterSymbols __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSDate *gregorianStartDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property BOOL doesRelativeDateFormatting __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSLocale; #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #ifndef _REWRITER_typedef_NSCalendar #define _REWRITER_typedef_NSCalendar typedef struct objc_object NSCalendar; typedef struct {} _objc_exc_NSCalendar; #endif #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSDateIntervalFormatterStyle; enum { NSDateIntervalFormatterNoStyle = 0, NSDateIntervalFormatterShortStyle = 1, NSDateIntervalFormatterMediumStyle = 2, NSDateIntervalFormatterLongStyle = 3, NSDateIntervalFormatterFullStyle = 4 } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSDateIntervalFormatter #define _REWRITER_typedef_NSDateIntervalFormatter typedef struct objc_object NSDateIntervalFormatter; typedef struct {} _objc_exc_NSDateIntervalFormatter; #endif struct NSDateIntervalFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; NSLocale *_locale; NSCalendar *_calendar; NSTimeZone *_timeZone; NSString *_dateTemplate; NSString *_dateTemplateFromStyles; void *_formatter; NSDateIntervalFormatterStyle _dateStyle; NSDateIntervalFormatterStyle _timeStyle; BOOL _modified; BOOL _useTemplate; dispatch_semaphore_t _lock; void *_reserved[4]; }; // @property (null_resettable, copy) NSLocale *locale; // @property (null_resettable, copy) NSCalendar *calendar; // @property (null_resettable, copy) NSTimeZone *timeZone; // @property (null_resettable, copy) NSString *dateTemplate; // @property NSDateIntervalFormatterStyle dateStyle; // @property NSDateIntervalFormatterStyle timeStyle; // - (NSString *)stringFromDate:(NSDate *)fromDate toDate:(NSDate *)toDate; // - (nullable NSString *)stringFromDateInterval:(NSDateInterval *)dateInterval __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif typedef NSUInteger NSISO8601DateFormatOptions; enum { NSISO8601DateFormatWithYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithYear, NSISO8601DateFormatWithMonth __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithMonth, NSISO8601DateFormatWithWeekOfYear __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithWeekOfYear, NSISO8601DateFormatWithDay __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithDay, NSISO8601DateFormatWithTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTime, NSISO8601DateFormatWithTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithTimeZone, NSISO8601DateFormatWithSpaceBetweenDateAndTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithSpaceBetweenDateAndTime, NSISO8601DateFormatWithDashSeparatorInDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithDashSeparatorInDate, NSISO8601DateFormatWithColonSeparatorInTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithColonSeparatorInTime, NSISO8601DateFormatWithColonSeparatorInTimeZone __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithColonSeparatorInTimeZone, NSISO8601DateFormatWithFractionalSeconds __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = kCFISO8601DateFormatWithFractionalSeconds, NSISO8601DateFormatWithFullDate __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullDate, NSISO8601DateFormatWithFullTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithFullTime, NSISO8601DateFormatWithInternetDateTime __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = kCFISO8601DateFormatWithInternetDateTime, }; __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSISO8601DateFormatter #define _REWRITER_typedef_NSISO8601DateFormatter typedef struct objc_object NSISO8601DateFormatter; typedef struct {} _objc_exc_NSISO8601DateFormatter; #endif struct NSISO8601DateFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; CFDateFormatterRef _formatter; NSTimeZone *_timeZone; NSISO8601DateFormatOptions _formatOptions; }; // @property (null_resettable, copy) NSTimeZone *timeZone; // @property NSISO8601DateFormatOptions formatOptions; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (NSString *)stringFromDate:(NSDate *)date; // - (nullable NSDate *)dateFromString:(NSString *)string; // + (NSString *)stringFromDate:(NSDate *)date timeZone:(NSTimeZone *)timeZone formatOptions:(NSISO8601DateFormatOptions)formatOptions; /* @end */ #pragma clang assume_nonnull end // @class NSNumberFormatter; #ifndef _REWRITER_typedef_NSNumberFormatter #define _REWRITER_typedef_NSNumberFormatter typedef struct objc_object NSNumberFormatter; typedef struct {} _objc_exc_NSNumberFormatter; #endif #pragma clang assume_nonnull begin typedef NSInteger NSMassFormatterUnit; enum { NSMassFormatterUnitGram = 11, NSMassFormatterUnitKilogram = 14, NSMassFormatterUnitOunce = (6 << 8) + 1, NSMassFormatterUnitPound = (6 << 8) + 2, NSMassFormatterUnitStone = (6 << 8) + 3, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMassFormatter #define _REWRITER_typedef_NSMassFormatter typedef struct objc_object NSMassFormatter; typedef struct {} _objc_exc_NSMassFormatter; #endif struct NSMassFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; void *_formatter; BOOL _isForPersonMassUse; void *_reserved[2]; }; // @property (null_resettable, copy) NSNumberFormatter *numberFormatter; // @property NSFormattingUnitStyle unitStyle; // @property (getter = isForPersonMassUse) BOOL forPersonMassUse; // - (NSString *)stringFromValue:(double)value unit:(NSMassFormatterUnit)unit; // - (NSString *)stringFromKilograms:(double)numberInKilograms; // - (NSString *)unitStringFromValue:(double)value unit:(NSMassFormatterUnit)unit; // - (NSString *)unitStringFromKilograms:(double)numberInKilograms usedUnit:(nullable NSMassFormatterUnit *)unitp; // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger NSLengthFormatterUnit; enum { NSLengthFormatterUnitMillimeter = 8, NSLengthFormatterUnitCentimeter = 9, NSLengthFormatterUnitMeter = 11, NSLengthFormatterUnitKilometer = 14, NSLengthFormatterUnitInch = (5 << 8) + 1, NSLengthFormatterUnitFoot = (5 << 8) + 2, NSLengthFormatterUnitYard = (5 << 8) + 3, NSLengthFormatterUnitMile = (5 << 8) + 4, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSLengthFormatter #define _REWRITER_typedef_NSLengthFormatter typedef struct objc_object NSLengthFormatter; typedef struct {} _objc_exc_NSLengthFormatter; #endif struct NSLengthFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; void *_formatter; BOOL _isForPersonHeight; void *_reserved[2]; }; // @property (null_resettable, copy) NSNumberFormatter *numberFormatter; // @property NSFormattingUnitStyle unitStyle; // @property (getter = isForPersonHeightUse) BOOL forPersonHeightUse; // - (NSString *)stringFromValue:(double)value unit:(NSLengthFormatterUnit)unit; // - (NSString *)stringFromMeters:(double)numberInMeters; // - (NSString *)unitStringFromValue:(double)value unit:(NSLengthFormatterUnit)unit; // - (NSString *)unitStringFromMeters:(double)numberInMeters usedUnit:(nullable NSLengthFormatterUnit *)unitp; // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger NSEnergyFormatterUnit; enum { NSEnergyFormatterUnitJoule = 11, NSEnergyFormatterUnitKilojoule = 14, NSEnergyFormatterUnitCalorie = (7 << 8) + 1, NSEnergyFormatterUnitKilocalorie = (7 << 8) + 2, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSEnergyFormatter #define _REWRITER_typedef_NSEnergyFormatter typedef struct objc_object NSEnergyFormatter; typedef struct {} _objc_exc_NSEnergyFormatter; #endif struct NSEnergyFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; void *_formatter; BOOL _isForFoodEnergyUse; void *_reserved[2]; }; // @property (null_resettable, copy) NSNumberFormatter *numberFormatter; // @property NSFormattingUnitStyle unitStyle; // @property (getter = isForFoodEnergyUse) BOOL forFoodEnergyUse; // - (NSString *)stringFromValue:(double)value unit:(NSEnergyFormatterUnit)unit; // - (NSString *)stringFromJoules:(double)numberInJoules; // - (NSString *)unitStringFromValue:(double)value unit:(NSEnergyFormatterUnit)unit; // - (NSString *)unitStringFromJoules:(double)numberInJoules usedUnit:(nullable NSEnergyFormatterUnit *)unitp; // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitConverter #define _REWRITER_typedef_NSUnitConverter typedef struct objc_object NSUnitConverter; typedef struct {} _objc_exc_NSUnitConverter; #endif struct NSUnitConverter_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (double)baseUnitValueFromValue:(double)value; // - (double)valueFromBaseUnitValue:(double)baseUnitValue; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitConverterLinear #define _REWRITER_typedef_NSUnitConverterLinear typedef struct objc_object NSUnitConverterLinear; typedef struct {} _objc_exc_NSUnitConverterLinear; #endif struct NSUnitConverterLinear_IMPL { struct NSUnitConverter_IMPL NSUnitConverter_IVARS; double _coefficient; double _constant; }; // @property (readonly) double coefficient; // @property (readonly) double constant; // - (instancetype)initWithCoefficient:(double)coefficient; // - (instancetype)initWithCoefficient:(double)coefficient constant:(double)constant __attribute__((objc_designated_initializer)); /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnit #define _REWRITER_typedef_NSUnit typedef struct objc_object NSUnit; typedef struct {} _objc_exc_NSUnit; #endif struct NSUnit_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_symbol; }; // @property (readonly, copy) NSString *symbol; // - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (instancetype)new __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithSymbol:(NSString *)symbol __attribute__((objc_designated_initializer)); /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSDimension #define _REWRITER_typedef_NSDimension typedef struct objc_object NSDimension; typedef struct {} _objc_exc_NSDimension; #endif struct NSDimension_IMPL { struct NSUnit_IMPL NSUnit_IVARS; NSUInteger _reserved; NSUnitConverter *_converter; }; // @property (readonly, copy) NSUnitConverter *converter; // - (instancetype)initWithSymbol:(NSString *)symbol converter:(NSUnitConverter *)converter __attribute__((objc_designated_initializer)); // + (instancetype)baseUnit; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitAcceleration #define _REWRITER_typedef_NSUnitAcceleration typedef struct objc_object NSUnitAcceleration; typedef struct {} _objc_exc_NSUnitAcceleration; #endif struct NSUnitAcceleration_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitAcceleration *metersPerSecondSquared; @property (class, readonly, copy) NSUnitAcceleration *gravity; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitAngle #define _REWRITER_typedef_NSUnitAngle typedef struct objc_object NSUnitAngle; typedef struct {} _objc_exc_NSUnitAngle; #endif struct NSUnitAngle_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitAngle *degrees; @property (class, readonly, copy) NSUnitAngle *arcMinutes; @property (class, readonly, copy) NSUnitAngle *arcSeconds; @property (class, readonly, copy) NSUnitAngle *radians; @property (class, readonly, copy) NSUnitAngle *gradians; @property (class, readonly, copy) NSUnitAngle *revolutions; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitArea #define _REWRITER_typedef_NSUnitArea typedef struct objc_object NSUnitArea; typedef struct {} _objc_exc_NSUnitArea; #endif struct NSUnitArea_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitArea *squareMegameters; @property (class, readonly, copy) NSUnitArea *squareKilometers; @property (class, readonly, copy) NSUnitArea *squareMeters; @property (class, readonly, copy) NSUnitArea *squareCentimeters; @property (class, readonly, copy) NSUnitArea *squareMillimeters; @property (class, readonly, copy) NSUnitArea *squareMicrometers; @property (class, readonly, copy) NSUnitArea *squareNanometers; @property (class, readonly, copy) NSUnitArea *squareInches; @property (class, readonly, copy) NSUnitArea *squareFeet; @property (class, readonly, copy) NSUnitArea *squareYards; @property (class, readonly, copy) NSUnitArea *squareMiles; @property (class, readonly, copy) NSUnitArea *acres; @property (class, readonly, copy) NSUnitArea *ares; @property (class, readonly, copy) NSUnitArea *hectares; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitConcentrationMass #define _REWRITER_typedef_NSUnitConcentrationMass typedef struct objc_object NSUnitConcentrationMass; typedef struct {} _objc_exc_NSUnitConcentrationMass; #endif struct NSUnitConcentrationMass_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitConcentrationMass *gramsPerLiter; @property (class, readonly, copy) NSUnitConcentrationMass *milligramsPerDeciliter; // + (NSUnitConcentrationMass *)millimolesPerLiterWithGramsPerMole:(double)gramsPerMole; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitDispersion #define _REWRITER_typedef_NSUnitDispersion typedef struct objc_object NSUnitDispersion; typedef struct {} _objc_exc_NSUnitDispersion; #endif struct NSUnitDispersion_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitDispersion *partsPerMillion; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitDuration #define _REWRITER_typedef_NSUnitDuration typedef struct objc_object NSUnitDuration; typedef struct {} _objc_exc_NSUnitDuration; #endif struct NSUnitDuration_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitDuration *hours; @property (class, readonly, copy) NSUnitDuration *minutes; @property (class, readonly, copy) NSUnitDuration *seconds; @property (class, readonly, copy) NSUnitDuration *milliseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, copy) NSUnitDuration *microseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, copy) NSUnitDuration *nanoseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, copy) NSUnitDuration *picoseconds __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitElectricCharge #define _REWRITER_typedef_NSUnitElectricCharge typedef struct objc_object NSUnitElectricCharge; typedef struct {} _objc_exc_NSUnitElectricCharge; #endif struct NSUnitElectricCharge_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitElectricCharge *coulombs; @property (class, readonly, copy) NSUnitElectricCharge *megaampereHours; @property (class, readonly, copy) NSUnitElectricCharge *kiloampereHours; @property (class, readonly, copy) NSUnitElectricCharge *ampereHours; @property (class, readonly, copy) NSUnitElectricCharge *milliampereHours; @property (class, readonly, copy) NSUnitElectricCharge *microampereHours; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitElectricCurrent #define _REWRITER_typedef_NSUnitElectricCurrent typedef struct objc_object NSUnitElectricCurrent; typedef struct {} _objc_exc_NSUnitElectricCurrent; #endif struct NSUnitElectricCurrent_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitElectricCurrent *megaamperes; @property (class, readonly, copy) NSUnitElectricCurrent *kiloamperes; @property (class, readonly, copy) NSUnitElectricCurrent *amperes; @property (class, readonly, copy) NSUnitElectricCurrent *milliamperes; @property (class, readonly, copy) NSUnitElectricCurrent *microamperes; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitElectricPotentialDifference #define _REWRITER_typedef_NSUnitElectricPotentialDifference typedef struct objc_object NSUnitElectricPotentialDifference; typedef struct {} _objc_exc_NSUnitElectricPotentialDifference; #endif struct NSUnitElectricPotentialDifference_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitElectricPotentialDifference *megavolts; @property (class, readonly, copy) NSUnitElectricPotentialDifference *kilovolts; @property (class, readonly, copy) NSUnitElectricPotentialDifference *volts; @property (class, readonly, copy) NSUnitElectricPotentialDifference *millivolts; @property (class, readonly, copy) NSUnitElectricPotentialDifference *microvolts; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitElectricResistance #define _REWRITER_typedef_NSUnitElectricResistance typedef struct objc_object NSUnitElectricResistance; typedef struct {} _objc_exc_NSUnitElectricResistance; #endif struct NSUnitElectricResistance_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitElectricResistance *megaohms; @property (class, readonly, copy) NSUnitElectricResistance *kiloohms; @property (class, readonly, copy) NSUnitElectricResistance *ohms; @property (class, readonly, copy) NSUnitElectricResistance *milliohms; @property (class, readonly, copy) NSUnitElectricResistance *microohms; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitEnergy #define _REWRITER_typedef_NSUnitEnergy typedef struct objc_object NSUnitEnergy; typedef struct {} _objc_exc_NSUnitEnergy; #endif struct NSUnitEnergy_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitEnergy *kilojoules; @property (class, readonly, copy) NSUnitEnergy *joules; @property (class, readonly, copy) NSUnitEnergy *kilocalories; @property (class, readonly, copy) NSUnitEnergy *calories; @property (class, readonly, copy) NSUnitEnergy *kilowattHours; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitFrequency #define _REWRITER_typedef_NSUnitFrequency typedef struct objc_object NSUnitFrequency; typedef struct {} _objc_exc_NSUnitFrequency; #endif struct NSUnitFrequency_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitFrequency *terahertz; @property (class, readonly, copy) NSUnitFrequency *gigahertz; @property (class, readonly, copy) NSUnitFrequency *megahertz; @property (class, readonly, copy) NSUnitFrequency *kilohertz; @property (class, readonly, copy) NSUnitFrequency *hertz; @property (class, readonly, copy) NSUnitFrequency *millihertz; @property (class, readonly, copy) NSUnitFrequency *microhertz; @property (class, readonly, copy) NSUnitFrequency *nanohertz; @property (class, readonly, copy) NSUnitFrequency *framesPerSecond __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitFuelEfficiency #define _REWRITER_typedef_NSUnitFuelEfficiency typedef struct objc_object NSUnitFuelEfficiency; typedef struct {} _objc_exc_NSUnitFuelEfficiency; #endif struct NSUnitFuelEfficiency_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitFuelEfficiency *litersPer100Kilometers; @property (class, readonly, copy) NSUnitFuelEfficiency *milesPerImperialGallon; @property (class, readonly, copy) NSUnitFuelEfficiency *milesPerGallon; /* @end */ __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((swift_name("UnitInformationStorage"))) #ifndef _REWRITER_typedef_NSUnitInformationStorage #define _REWRITER_typedef_NSUnitInformationStorage typedef struct objc_object NSUnitInformationStorage; typedef struct {} _objc_exc_NSUnitInformationStorage; #endif struct NSUnitInformationStorage_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (readonly, class, copy) NSUnitInformationStorage *bytes; @property (readonly, class, copy) NSUnitInformationStorage *bits; @property (readonly, class, copy) NSUnitInformationStorage *nibbles; @property (readonly, class, copy) NSUnitInformationStorage *yottabytes; @property (readonly, class, copy) NSUnitInformationStorage *zettabytes; @property (readonly, class, copy) NSUnitInformationStorage *exabytes; @property (readonly, class, copy) NSUnitInformationStorage *petabytes; @property (readonly, class, copy) NSUnitInformationStorage *terabytes; @property (readonly, class, copy) NSUnitInformationStorage *gigabytes; @property (readonly, class, copy) NSUnitInformationStorage *megabytes; @property (readonly, class, copy) NSUnitInformationStorage *kilobytes; @property (readonly, class, copy) NSUnitInformationStorage *yottabits; @property (readonly, class, copy) NSUnitInformationStorage *zettabits; @property (readonly, class, copy) NSUnitInformationStorage *exabits; @property (readonly, class, copy) NSUnitInformationStorage *petabits; @property (readonly, class, copy) NSUnitInformationStorage *terabits; @property (readonly, class, copy) NSUnitInformationStorage *gigabits; @property (readonly, class, copy) NSUnitInformationStorage *megabits; @property (readonly, class, copy) NSUnitInformationStorage *kilobits; @property (readonly, class, copy) NSUnitInformationStorage *yobibytes; @property (readonly, class, copy) NSUnitInformationStorage *zebibytes; @property (readonly, class, copy) NSUnitInformationStorage *exbibytes; @property (readonly, class, copy) NSUnitInformationStorage *pebibytes; @property (readonly, class, copy) NSUnitInformationStorage *tebibytes; @property (readonly, class, copy) NSUnitInformationStorage *gibibytes; @property (readonly, class, copy) NSUnitInformationStorage *mebibytes; @property (readonly, class, copy) NSUnitInformationStorage *kibibytes; @property (readonly, class, copy) NSUnitInformationStorage *yobibits; @property (readonly, class, copy) NSUnitInformationStorage *zebibits; @property (readonly, class, copy) NSUnitInformationStorage *exbibits; @property (readonly, class, copy) NSUnitInformationStorage *pebibits; @property (readonly, class, copy) NSUnitInformationStorage *tebibits; @property (readonly, class, copy) NSUnitInformationStorage *gibibits; @property (readonly, class, copy) NSUnitInformationStorage *mebibits; @property (readonly, class, copy) NSUnitInformationStorage *kibibits; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitLength #define _REWRITER_typedef_NSUnitLength typedef struct objc_object NSUnitLength; typedef struct {} _objc_exc_NSUnitLength; #endif struct NSUnitLength_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitLength *megameters; @property (class, readonly, copy) NSUnitLength *kilometers; @property (class, readonly, copy) NSUnitLength *hectometers; @property (class, readonly, copy) NSUnitLength *decameters; @property (class, readonly, copy) NSUnitLength *meters; @property (class, readonly, copy) NSUnitLength *decimeters; @property (class, readonly, copy) NSUnitLength *centimeters; @property (class, readonly, copy) NSUnitLength *millimeters; @property (class, readonly, copy) NSUnitLength *micrometers; @property (class, readonly, copy) NSUnitLength *nanometers; @property (class, readonly, copy) NSUnitLength *picometers; @property (class, readonly, copy) NSUnitLength *inches; @property (class, readonly, copy) NSUnitLength *feet; @property (class, readonly, copy) NSUnitLength *yards; @property (class, readonly, copy) NSUnitLength *miles; @property (class, readonly, copy) NSUnitLength *scandinavianMiles; @property (class, readonly, copy) NSUnitLength *lightyears; @property (class, readonly, copy) NSUnitLength *nauticalMiles; @property (class, readonly, copy) NSUnitLength *fathoms; @property (class, readonly, copy) NSUnitLength *furlongs; @property (class, readonly, copy) NSUnitLength *astronomicalUnits; @property (class, readonly, copy) NSUnitLength *parsecs; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitIlluminance #define _REWRITER_typedef_NSUnitIlluminance typedef struct objc_object NSUnitIlluminance; typedef struct {} _objc_exc_NSUnitIlluminance; #endif struct NSUnitIlluminance_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitIlluminance *lux; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitMass #define _REWRITER_typedef_NSUnitMass typedef struct objc_object NSUnitMass; typedef struct {} _objc_exc_NSUnitMass; #endif struct NSUnitMass_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitMass *kilograms; @property (class, readonly, copy) NSUnitMass *grams; @property (class, readonly, copy) NSUnitMass *decigrams; @property (class, readonly, copy) NSUnitMass *centigrams; @property (class, readonly, copy) NSUnitMass *milligrams; @property (class, readonly, copy) NSUnitMass *micrograms; @property (class, readonly, copy) NSUnitMass *nanograms; @property (class, readonly, copy) NSUnitMass *picograms; @property (class, readonly, copy) NSUnitMass *ounces; @property (class, readonly, copy) NSUnitMass *poundsMass; @property (class, readonly, copy) NSUnitMass *stones; @property (class, readonly, copy) NSUnitMass *metricTons; @property (class, readonly, copy) NSUnitMass *shortTons; @property (class, readonly, copy) NSUnitMass *carats; @property (class, readonly, copy) NSUnitMass *ouncesTroy; @property (class, readonly, copy) NSUnitMass *slugs; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitPower #define _REWRITER_typedef_NSUnitPower typedef struct objc_object NSUnitPower; typedef struct {} _objc_exc_NSUnitPower; #endif struct NSUnitPower_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitPower *terawatts; @property (class, readonly, copy) NSUnitPower *gigawatts; @property (class, readonly, copy) NSUnitPower *megawatts; @property (class, readonly, copy) NSUnitPower *kilowatts; @property (class, readonly, copy) NSUnitPower *watts; @property (class, readonly, copy) NSUnitPower *milliwatts; @property (class, readonly, copy) NSUnitPower *microwatts; @property (class, readonly, copy) NSUnitPower *nanowatts; @property (class, readonly, copy) NSUnitPower *picowatts; @property (class, readonly, copy) NSUnitPower *femtowatts; @property (class, readonly, copy) NSUnitPower *horsepower; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitPressure #define _REWRITER_typedef_NSUnitPressure typedef struct objc_object NSUnitPressure; typedef struct {} _objc_exc_NSUnitPressure; #endif struct NSUnitPressure_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitPressure *newtonsPerMetersSquared; @property (class, readonly, copy) NSUnitPressure *gigapascals; @property (class, readonly, copy) NSUnitPressure *megapascals; @property (class, readonly, copy) NSUnitPressure *kilopascals; @property (class, readonly, copy) NSUnitPressure *hectopascals; @property (class, readonly, copy) NSUnitPressure *inchesOfMercury; @property (class, readonly, copy) NSUnitPressure *bars; @property (class, readonly, copy) NSUnitPressure *millibars; @property (class, readonly, copy) NSUnitPressure *millimetersOfMercury; @property (class, readonly, copy) NSUnitPressure *poundsForcePerSquareInch; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitSpeed #define _REWRITER_typedef_NSUnitSpeed typedef struct objc_object NSUnitSpeed; typedef struct {} _objc_exc_NSUnitSpeed; #endif struct NSUnitSpeed_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitSpeed *metersPerSecond; @property (class, readonly, copy) NSUnitSpeed *kilometersPerHour; @property (class, readonly, copy) NSUnitSpeed *milesPerHour; @property (class, readonly, copy) NSUnitSpeed *knots; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitTemperature #define _REWRITER_typedef_NSUnitTemperature typedef struct objc_object NSUnitTemperature; typedef struct {} _objc_exc_NSUnitTemperature; #endif struct NSUnitTemperature_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitTemperature *kelvin; @property (class, readonly, copy) NSUnitTemperature *celsius; @property (class, readonly, copy) NSUnitTemperature *fahrenheit; /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSUnitVolume #define _REWRITER_typedef_NSUnitVolume typedef struct objc_object NSUnitVolume; typedef struct {} _objc_exc_NSUnitVolume; #endif struct NSUnitVolume_IMPL { struct NSDimension_IMPL NSDimension_IVARS; }; @property (class, readonly, copy) NSUnitVolume *megaliters; @property (class, readonly, copy) NSUnitVolume *kiloliters; @property (class, readonly, copy) NSUnitVolume *liters; @property (class, readonly, copy) NSUnitVolume *deciliters; @property (class, readonly, copy) NSUnitVolume *centiliters; @property (class, readonly, copy) NSUnitVolume *milliliters; @property (class, readonly, copy) NSUnitVolume *cubicKilometers; @property (class, readonly, copy) NSUnitVolume *cubicMeters; @property (class, readonly, copy) NSUnitVolume *cubicDecimeters; @property (class, readonly, copy) NSUnitVolume *cubicCentimeters; @property (class, readonly, copy) NSUnitVolume *cubicMillimeters; @property (class, readonly, copy) NSUnitVolume *cubicInches; @property (class, readonly, copy) NSUnitVolume *cubicFeet; @property (class, readonly, copy) NSUnitVolume *cubicYards; @property (class, readonly, copy) NSUnitVolume *cubicMiles; @property (class, readonly, copy) NSUnitVolume *acreFeet; @property (class, readonly, copy) NSUnitVolume *bushels; @property (class, readonly, copy) NSUnitVolume *teaspoons; @property (class, readonly, copy) NSUnitVolume *tablespoons; @property (class, readonly, copy) NSUnitVolume *fluidOunces; @property (class, readonly, copy) NSUnitVolume *cups; @property (class, readonly, copy) NSUnitVolume *pints; @property (class, readonly, copy) NSUnitVolume *quarts; @property (class, readonly, copy) NSUnitVolume *gallons; @property (class, readonly, copy) NSUnitVolume *imperialTeaspoons; @property (class, readonly, copy) NSUnitVolume *imperialTablespoons; @property (class, readonly, copy) NSUnitVolume *imperialFluidOunces; @property (class, readonly, copy) NSUnitVolume *imperialPints; @property (class, readonly, copy) NSUnitVolume *imperialQuarts; @property (class, readonly, copy) NSUnitVolume *imperialGallons; @property (class, readonly, copy) NSUnitVolume *metricCups; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSMeasurement #define _REWRITER_typedef_NSMeasurement typedef struct objc_object NSMeasurement; typedef struct {} _objc_exc_NSMeasurement; #endif struct NSMeasurement_IMPL { struct NSObject_IMPL NSObject_IVARS; UnitType _unit; double _doubleValue; }; // @property (readonly, copy) UnitType unit; // @property (readonly) double doubleValue; // - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithDoubleValue:(double)doubleValue unit:(UnitType)unit __attribute__((objc_designated_initializer)); // - (BOOL)canBeConvertedToUnit:(NSUnit *)unit; // - (NSMeasurement *)measurementByConvertingToUnit:(NSUnit *)unit; // - (NSMeasurement<UnitType> *)measurementByAddingMeasurement:(NSMeasurement<UnitType> *)measurement; // - (NSMeasurement<UnitType> *)measurementBySubtractingMeasurement:(NSMeasurement<UnitType> *)measurement; /* @end */ #pragma clang assume_nonnull end // @class NSLocale; #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSRecursiveLock #define _REWRITER_typedef_NSRecursiveLock typedef struct objc_object NSRecursiveLock; typedef struct {} _objc_exc_NSRecursiveLock; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSCache #define _REWRITER_typedef_NSCache typedef struct objc_object NSCache; typedef struct {} _objc_exc_NSCache; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSNumberFormatterBehavior; enum { NSNumberFormatterBehaviorDefault = 0, NSNumberFormatterBehavior10_4 = 1040, }; #ifndef _REWRITER_typedef_NSNumberFormatter #define _REWRITER_typedef_NSNumberFormatter typedef struct objc_object NSNumberFormatter; typedef struct {} _objc_exc_NSNumberFormatter; #endif struct NSNumberFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; NSMutableDictionary *_attributes; CFNumberFormatterRef _formatter; NSUInteger _counter; NSNumberFormatterBehavior _behavior; NSRecursiveLock *_lock; unsigned long _stateBitMask; NSInteger _cacheGeneration; void *_reserved[8]; }; // @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string range:(inout nullable NSRange *)rangep error:(out NSError **)error; // - (nullable NSString *)stringFromNumber:(NSNumber *)number; // - (nullable NSNumber *)numberFromString:(NSString *)string; typedef NSUInteger NSNumberFormatterStyle; enum { NSNumberFormatterNoStyle = kCFNumberFormatterNoStyle, NSNumberFormatterDecimalStyle = kCFNumberFormatterDecimalStyle, NSNumberFormatterCurrencyStyle = kCFNumberFormatterCurrencyStyle, NSNumberFormatterPercentStyle = kCFNumberFormatterPercentStyle, NSNumberFormatterScientificStyle = kCFNumberFormatterScientificStyle, NSNumberFormatterSpellOutStyle = kCFNumberFormatterSpellOutStyle, NSNumberFormatterOrdinalStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterOrdinalStyle, NSNumberFormatterCurrencyISOCodeStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyISOCodeStyle, NSNumberFormatterCurrencyPluralStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyPluralStyle, NSNumberFormatterCurrencyAccountingStyle __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = kCFNumberFormatterCurrencyAccountingStyle, }; // + (NSString *)localizedStringFromNumber:(NSNumber *)num numberStyle:(NSNumberFormatterStyle)nstyle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSNumberFormatterBehavior)defaultFormatterBehavior; // + (void)setDefaultFormatterBehavior:(NSNumberFormatterBehavior)behavior; // @property NSNumberFormatterStyle numberStyle; // @property (null_resettable, copy) NSLocale *locale; // @property BOOL generatesDecimalNumbers; // @property NSNumberFormatterBehavior formatterBehavior; // @property (null_resettable, copy) NSString *negativeFormat; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNegativeValues; // @property (null_resettable, copy) NSString *positiveFormat; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForPositiveValues; // @property BOOL allowsFloats; // @property (null_resettable, copy) NSString *decimalSeparator; // @property BOOL alwaysShowsDecimalSeparator; // @property (null_resettable, copy) NSString *currencyDecimalSeparator; // @property BOOL usesGroupingSeparator; // @property (null_resettable, copy) NSString *groupingSeparator; // @property (nullable, copy) NSString *zeroSymbol; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForZero; // @property (copy) NSString *nilSymbol; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNil; // @property (null_resettable, copy) NSString *notANumberSymbol; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNotANumber; // @property (copy) NSString *positiveInfinitySymbol; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForPositiveInfinity; // @property (copy) NSString *negativeInfinitySymbol; // @property (nullable, copy) NSDictionary<NSString *, id> *textAttributesForNegativeInfinity; // @property (null_resettable, copy) NSString *positivePrefix; // @property (null_resettable, copy) NSString *positiveSuffix; // @property (null_resettable, copy) NSString *negativePrefix; // @property (null_resettable, copy) NSString *negativeSuffix; // @property (null_resettable, copy) NSString *currencyCode; // @property (null_resettable, copy) NSString *currencySymbol; // @property (null_resettable, copy) NSString *internationalCurrencySymbol; // @property (null_resettable, copy) NSString *percentSymbol; // @property (null_resettable, copy) NSString *perMillSymbol; // @property (null_resettable, copy) NSString *minusSign; // @property (null_resettable, copy) NSString *plusSign; // @property (null_resettable, copy) NSString *exponentSymbol; // @property NSUInteger groupingSize; // @property NSUInteger secondaryGroupingSize; // @property (nullable, copy) NSNumber *multiplier; // @property NSUInteger formatWidth; // @property (null_resettable, copy) NSString *paddingCharacter; typedef NSUInteger NSNumberFormatterPadPosition; enum { NSNumberFormatterPadBeforePrefix = kCFNumberFormatterPadBeforePrefix, NSNumberFormatterPadAfterPrefix = kCFNumberFormatterPadAfterPrefix, NSNumberFormatterPadBeforeSuffix = kCFNumberFormatterPadBeforeSuffix, NSNumberFormatterPadAfterSuffix = kCFNumberFormatterPadAfterSuffix }; typedef NSUInteger NSNumberFormatterRoundingMode; enum { NSNumberFormatterRoundCeiling = kCFNumberFormatterRoundCeiling, NSNumberFormatterRoundFloor = kCFNumberFormatterRoundFloor, NSNumberFormatterRoundDown = kCFNumberFormatterRoundDown, NSNumberFormatterRoundUp = kCFNumberFormatterRoundUp, NSNumberFormatterRoundHalfEven = kCFNumberFormatterRoundHalfEven, NSNumberFormatterRoundHalfDown = kCFNumberFormatterRoundHalfDown, NSNumberFormatterRoundHalfUp = kCFNumberFormatterRoundHalfUp }; // @property NSNumberFormatterPadPosition paddingPosition; // @property NSNumberFormatterRoundingMode roundingMode; // @property (null_resettable, copy) NSNumber *roundingIncrement; // @property NSUInteger minimumIntegerDigits; // @property NSUInteger maximumIntegerDigits; // @property NSUInteger minimumFractionDigits; // @property NSUInteger maximumFractionDigits; // @property (nullable, copy) NSNumber *minimum; // @property (nullable, copy) NSNumber *maximum; // @property (null_resettable, copy) NSString *currencyGroupingSeparator __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (getter=isLenient) BOOL lenient __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property BOOL usesSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSUInteger minimumSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSUInteger maximumSignificantDigits __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (getter=isPartialStringValidationEnabled) BOOL partialStringValidationEnabled __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @class NSDecimalNumberHandler; #ifndef _REWRITER_typedef_NSDecimalNumberHandler #define _REWRITER_typedef_NSDecimalNumberHandler typedef struct objc_object NSDecimalNumberHandler; typedef struct {} _objc_exc_NSDecimalNumberHandler; #endif #pragma clang assume_nonnull end // @class NSCalendar; #ifndef _REWRITER_typedef_NSCalendar #define _REWRITER_typedef_NSCalendar typedef struct objc_object NSCalendar; typedef struct {} _objc_exc_NSCalendar; #endif typedef NSString * NSLocaleKey __attribute__((swift_wrapper(enum))); // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif struct NSLocale_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable id)objectForKey:(NSLocaleKey)key; // - (nullable NSString *)displayNameForKey:(NSLocaleKey)key value:(id)value; // - (instancetype)initWithLocaleIdentifier:(NSString *)string __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSLocale (NSExtendedLocale) // @property (readonly, copy) NSString *localeIdentifier; // - (NSString *)localizedStringForLocaleIdentifier:(NSString *)localeIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *languageCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForLanguageCode:(NSString *)languageCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (nullable, readonly, copy) NSString *countryCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForCountryCode:(NSString *)countryCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (nullable, readonly, copy) NSString *scriptCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForScriptCode:(NSString *)scriptCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (nullable, readonly, copy) NSString *variantCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForVariantCode:(NSString *)variantCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSCharacterSet *exemplarCharacterSet __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *calendarIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForCalendarIdentifier:(NSString *)calendarIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (nullable, readonly, copy) NSString *collationIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForCollationIdentifier:(NSString *)collationIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly) BOOL usesMetricSystem __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *decimalSeparator __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *groupingSeparator __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *currencySymbol __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (nullable, readonly, copy) NSString *currencyCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForCurrencyCode:(NSString *)currencyCode __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *collatorIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSString *)localizedStringForCollatorIdentifier:(NSString *)collatorIdentifier __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *quotationBeginDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *quotationEndDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *alternateQuotationBeginDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, copy) NSString *alternateQuotationEndDelimiter __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ // @interface NSLocale (NSLocaleCreation) @property (class, readonly, strong) NSLocale *autoupdatingCurrentLocale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSLocale *currentLocale; @property (class, readonly, copy) NSLocale *systemLocale; // + (instancetype)localeWithLocaleIdentifier:(NSString *)ident __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)init __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface NSLocale (NSLocaleGeneralInfo) @property (class, readonly, copy) NSArray<NSString *> *availableLocaleIdentifiers; @property (class, readonly, copy) NSArray<NSString *> *ISOLanguageCodes; @property (class, readonly, copy) NSArray<NSString *> *ISOCountryCodes; @property (class, readonly, copy) NSArray<NSString *> *ISOCurrencyCodes; @property (class, readonly, copy) NSArray<NSString *> *commonISOCurrencyCodes __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSArray<NSString *> *preferredLanguages __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSDictionary<NSString *, NSString *> *)componentsFromLocaleIdentifier:(NSString *)string; // + (NSString *)localeIdentifierFromComponents:(NSDictionary<NSString *, NSString *> *)dict; // + (NSString *)canonicalLocaleIdentifierFromString:(NSString *)string; // + (NSString *)canonicalLanguageIdentifierFromString:(NSString *)string; // + (nullable NSString *)localeIdentifierFromWindowsLocaleCode:(uint32_t)lcid __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (uint32_t)windowsLocaleCodeFromLocaleIdentifier:(NSString *)localeIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSLocaleLanguageDirection; enum { NSLocaleLanguageDirectionUnknown = kCFLocaleLanguageDirectionUnknown, NSLocaleLanguageDirectionLeftToRight = kCFLocaleLanguageDirectionLeftToRight, NSLocaleLanguageDirectionRightToLeft = kCFLocaleLanguageDirectionRightToLeft, NSLocaleLanguageDirectionTopToBottom = kCFLocaleLanguageDirectionTopToBottom, NSLocaleLanguageDirectionBottomToTop = kCFLocaleLanguageDirectionBottomToTop }; // + (NSLocaleLanguageDirection)characterDirectionForLanguage:(NSString *)isoLangCode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSLocaleLanguageDirection)lineDirectionForLanguage:(NSString *)isoLangCode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSCurrentLocaleDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSLocaleKey const NSLocaleIdentifier; extern "C" NSLocaleKey const NSLocaleLanguageCode; extern "C" NSLocaleKey const NSLocaleCountryCode; extern "C" NSLocaleKey const NSLocaleScriptCode; extern "C" NSLocaleKey const NSLocaleVariantCode; extern "C" NSLocaleKey const NSLocaleExemplarCharacterSet; extern "C" NSLocaleKey const NSLocaleCalendar; extern "C" NSLocaleKey const NSLocaleCollationIdentifier; extern "C" NSLocaleKey const NSLocaleUsesMetricSystem; extern "C" NSLocaleKey const NSLocaleMeasurementSystem; extern "C" NSLocaleKey const NSLocaleDecimalSeparator; extern "C" NSLocaleKey const NSLocaleGroupingSeparator; extern "C" NSLocaleKey const NSLocaleCurrencySymbol; extern "C" NSLocaleKey const NSLocaleCurrencyCode; extern "C" NSLocaleKey const NSLocaleCollatorIdentifier __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSLocaleKey const NSLocaleQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSLocaleKey const NSLocaleQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSLocaleKey const NSLocaleAlternateQuotationBeginDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSLocaleKey const NSLocaleAlternateQuotationEndDelimiterKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSGregorianCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierGregorian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierGregorian"))); extern "C" NSString * const NSBuddhistCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierBuddhist"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierBuddhist"))); extern "C" NSString * const NSChineseCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierChinese"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierChinese"))); extern "C" NSString * const NSHebrewCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierHebrew"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierHebrew"))); extern "C" NSString * const NSIslamicCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIslamic"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIslamic"))); extern "C" NSString * const NSIslamicCivilCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIslamicCivil"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIslamicCivil"))); extern "C" NSString * const NSJapaneseCalendar __attribute__((availability(macos,introduced=10.4,deprecated=10.10,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierJapanese"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierJapanese"))); extern "C" NSString * const NSRepublicOfChinaCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierRepublicOfChina"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierRepublicOfChina"))); extern "C" NSString * const NSPersianCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierPersian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierPersian"))); extern "C" NSString * const NSIndianCalendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierIndian"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierIndian"))); extern "C" NSString * const NSISO8601Calendar __attribute__((availability(macos,introduced=10.6,deprecated=10.10,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="NSCalendarIdentifierISO8601"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="NSCalendarIdentifierISO8601"))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger NSMeasurementFormatterUnitOptions; enum { NSMeasurementFormatterUnitOptionsProvidedUnit = (1UL << 0), NSMeasurementFormatterUnitOptionsNaturalScale = (1UL << 1), NSMeasurementFormatterUnitOptionsTemperatureWithoutUnit = (1UL << 2), } __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSMeasurementFormatter #define _REWRITER_typedef_NSMeasurementFormatter typedef struct objc_object NSMeasurementFormatter; typedef struct {} _objc_exc_NSMeasurementFormatter; #endif struct NSMeasurementFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; void *_formatter; }; // @property NSMeasurementFormatterUnitOptions unitOptions; // @property NSFormattingUnitStyle unitStyle; // @property (null_resettable, copy) NSLocale *locale; // @property (null_resettable, copy) NSNumberFormatter *numberFormatter; // - (NSString *)stringFromMeasurement:(NSMeasurement *)measurement; // - (NSString *)stringFromUnit:(NSUnit *)unit; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPersonNameComponents #define _REWRITER_typedef_NSPersonNameComponents typedef struct objc_object NSPersonNameComponents; typedef struct {} _objc_exc_NSPersonNameComponents; #endif struct NSPersonNameComponents_IMPL { struct NSObject_IMPL NSObject_IVARS; id _private; }; // @property (copy, nullable) NSString *namePrefix; // @property (copy, nullable) NSString *givenName; // @property (copy, nullable) NSString *middleName; // @property (copy, nullable) NSString *familyName; // @property (copy, nullable) NSString *nameSuffix; // @property (copy, nullable) NSString *nickname; // @property (copy, nullable) NSPersonNameComponents *phoneticRepresentation; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger NSPersonNameComponentsFormatterStyle; enum { NSPersonNameComponentsFormatterStyleDefault = 0, NSPersonNameComponentsFormatterStyleShort, NSPersonNameComponentsFormatterStyleMedium, NSPersonNameComponentsFormatterStyleLong, NSPersonNameComponentsFormatterStyleAbbreviated } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSPersonNameComponentsFormatterOptions; enum { NSPersonNameComponentsFormatterPhonetic = (1UL << 1) } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPersonNameComponentsFormatter #define _REWRITER_typedef_NSPersonNameComponentsFormatter typedef struct objc_object NSPersonNameComponentsFormatter; typedef struct {} _objc_exc_NSPersonNameComponentsFormatter; #endif struct NSPersonNameComponentsFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; id _private; }; // @property NSPersonNameComponentsFormatterStyle style; // @property (getter=isPhonetic) BOOL phonetic; #if 0 + (NSString *)localizedStringFromPersonNameComponents:(NSPersonNameComponents *)components style:(NSPersonNameComponentsFormatterStyle)nameFormatStyle options:(NSPersonNameComponentsFormatterOptions)nameOptions; #endif // - (NSString *)stringFromPersonNameComponents:(NSPersonNameComponents *)components; // - (NSAttributedString *)annotatedStringFromPersonNameComponents:(NSPersonNameComponents *)components; // - (nullable NSPersonNameComponents *)personNameComponentsFromString:(nonnull NSString *)string __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; /* @end */ extern "C" NSString * const NSPersonNameComponentKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentGivenName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentFamilyName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentMiddleName __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentPrefix __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentSuffix __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentNickname __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSPersonNameComponentDelimiter __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class NSCalendar; #ifndef _REWRITER_typedef_NSCalendar #define _REWRITER_typedef_NSCalendar typedef struct objc_object NSCalendar; typedef struct {} _objc_exc_NSCalendar; #endif #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #ifndef _REWRITER_typedef_NSDateComponents #define _REWRITER_typedef_NSDateComponents typedef struct objc_object NSDateComponents; typedef struct {} _objc_exc_NSDateComponents; #endif #pragma clang assume_nonnull begin typedef NSInteger NSRelativeDateTimeFormatterStyle; enum { NSRelativeDateTimeFormatterStyleNumeric = 0, NSRelativeDateTimeFormatterStyleNamed, } __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); typedef NSInteger NSRelativeDateTimeFormatterUnitsStyle; enum { NSRelativeDateTimeFormatterUnitsStyleFull = 0, NSRelativeDateTimeFormatterUnitsStyleSpellOut, NSRelativeDateTimeFormatterUnitsStyleShort, NSRelativeDateTimeFormatterUnitsStyleAbbreviated, } __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSRelativeDateTimeFormatter #define _REWRITER_typedef_NSRelativeDateTimeFormatter typedef struct objc_object NSRelativeDateTimeFormatter; typedef struct {} _objc_exc_NSRelativeDateTimeFormatter; #endif struct NSRelativeDateTimeFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; }; // @property NSRelativeDateTimeFormatterStyle dateTimeStyle; // @property NSRelativeDateTimeFormatterUnitsStyle unitsStyle; // @property NSFormattingContext formattingContext; // @property (null_resettable, copy) NSCalendar *calendar; // @property (null_resettable, copy) NSLocale *locale; // - (NSString *)localizedStringFromDateComponents:(NSDateComponents *)dateComponents; // - (NSString *)localizedStringFromTimeInterval:(NSTimeInterval)timeInterval; // - (NSString *)localizedStringForDate:(NSDate *)date relativeToDate:(NSDate *)referenceDate; // - (nullable NSString *)stringForObjectValue:(nullable id)obj; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSListFormatter #define _REWRITER_typedef_NSListFormatter typedef struct objc_object NSListFormatter; typedef struct {} _objc_exc_NSListFormatter; #endif struct NSListFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; }; // @property (null_resettable, copy) NSLocale *locale; // @property (nullable, copy) NSFormatter *itemFormatter; // + (NSString *)localizedStringByJoiningStrings:(NSArray<NSString *> *)strings; // - (nullable NSString *)stringFromItems:(NSArray *)items; // - (nullable NSString *)stringForObjectValue:(nullable id)obj; /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSRoundingMode; enum { NSRoundPlain, NSRoundDown, NSRoundUp, NSRoundBankers }; typedef NSUInteger NSCalculationError; enum { NSCalculationNoError = 0, NSCalculationLossOfPrecision, NSCalculationUnderflow, NSCalculationOverflow, NSCalculationDivideByZero }; typedef struct { signed int _exponent:8; unsigned int _length:4; unsigned int _isNegative:1; unsigned int _isCompact:1; unsigned int _reserved:18; unsigned short _mantissa[(8)]; } NSDecimal; static __inline__ __attribute__((always_inline)) BOOL NSDecimalIsNotANumber(const NSDecimal *dcm) { return ((dcm->_length == 0) && dcm->_isNegative); } extern "C" void NSDecimalCopy(NSDecimal *destination, const NSDecimal *source); extern "C" void NSDecimalCompact(NSDecimal *number); extern "C" NSComparisonResult NSDecimalCompare(const NSDecimal *leftOperand, const NSDecimal *rightOperand); extern "C" void NSDecimalRound(NSDecimal *result, const NSDecimal *number, NSInteger scale, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalNormalize(NSDecimal *number1, NSDecimal *number2, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalAdd(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalSubtract(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalMultiply(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalDivide(NSDecimal *result, const NSDecimal *leftOperand, const NSDecimal *rightOperand, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalPower(NSDecimal *result, const NSDecimal *number, NSUInteger power, NSRoundingMode roundingMode); extern "C" NSCalculationError NSDecimalMultiplyByPowerOf10(NSDecimal *result, const NSDecimal *number, short power, NSRoundingMode roundingMode); extern "C" NSString *NSDecimalString(const NSDecimal *dcm, id _Nullable locale); #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSCharacterSet #define _REWRITER_typedef_NSCharacterSet typedef struct objc_object NSCharacterSet; typedef struct {} _objc_exc_NSCharacterSet; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSScanner #define _REWRITER_typedef_NSScanner typedef struct objc_object NSScanner; typedef struct {} _objc_exc_NSScanner; #endif struct NSScanner_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSString *string; // @property NSUInteger scanLocation ; // @property (nullable, copy) NSCharacterSet *charactersToBeSkipped; // @property BOOL caseSensitive; // @property (nullable, retain) id locale; // - (instancetype)initWithString:(NSString *)string __attribute__((objc_designated_initializer)); /* @end */ // @interface NSScanner (NSExtendedScanner) // - (BOOL)scanInt:(nullable int *)result ; // - (BOOL)scanInteger:(nullable NSInteger *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ; // - (BOOL)scanLongLong:(nullable long long *)result; // - (BOOL)scanUnsignedLongLong:(nullable unsigned long long *)result __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ; // - (BOOL)scanFloat:(nullable float *)result ; // - (BOOL)scanDouble:(nullable double *)result ; #if 0 - (BOOL)scanHexInt:(nullable unsigned *)result ; #endif #if 0 - (BOOL)scanHexLongLong:(nullable unsigned long long *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ; #endif #if 0 - (BOOL)scanHexFloat:(nullable float *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ; #endif #if 0 - (BOOL)scanHexDouble:(nullable double *)result __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) ; #endif // - (BOOL)scanString:(NSString *)string intoString:(NSString * _Nullable * _Nullable)result ; // - (BOOL)scanCharactersFromSet:(NSCharacterSet *)set intoString:(NSString * _Nullable * _Nullable)result ; // - (BOOL)scanUpToString:(NSString *)string intoString:(NSString * _Nullable * _Nullable)result ; // - (BOOL)scanUpToCharactersFromSet:(NSCharacterSet *)set intoString:(NSString * _Nullable * _Nullable)result ; // @property (getter=isAtEnd, readonly) BOOL atEnd; // + (instancetype)scannerWithString:(NSString *)string; // + (id)localizedScannerWithString:(NSString *)string; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #pragma clang assume_nonnull begin extern "C" NSExceptionName const NSGenericException; extern "C" NSExceptionName const NSRangeException; extern "C" NSExceptionName const NSInvalidArgumentException; extern "C" NSExceptionName const NSInternalInconsistencyException; extern "C" NSExceptionName const NSMallocException; extern "C" NSExceptionName const NSObjectInaccessibleException; extern "C" NSExceptionName const NSObjectNotAvailableException; extern "C" NSExceptionName const NSDestinationInvalidException; extern "C" NSExceptionName const NSPortTimeoutException; extern "C" NSExceptionName const NSInvalidSendPortException; extern "C" NSExceptionName const NSInvalidReceivePortException; extern "C" NSExceptionName const NSPortSendException; extern "C" NSExceptionName const NSPortReceiveException; extern "C" NSExceptionName const NSOldStyleException; extern "C" NSExceptionName const NSInconsistentArchiveException; __attribute__((__objc_exception__)) #ifndef _REWRITER_typedef_NSException #define _REWRITER_typedef_NSException typedef struct objc_object NSException; typedef struct {} _objc_exc_NSException; #endif struct NSException_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *name; NSString *reason; NSDictionary *userInfo; id reserved; }; // + (NSException *)exceptionWithName:(NSExceptionName)name reason:(nullable NSString *)reason userInfo:(nullable NSDictionary *)userInfo; // - (instancetype)initWithName:(NSExceptionName)aName reason:(nullable NSString *)aReason userInfo:(nullable NSDictionary *)aUserInfo __attribute__((objc_designated_initializer)); // @property (readonly, copy) NSExceptionName name; // @property (nullable, readonly, copy) NSString *reason; // @property (nullable, readonly, copy) NSDictionary *userInfo; // @property (readonly, copy) NSArray<NSNumber *> *callStackReturnAddresses __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *callStackSymbols __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)raise; /* @end */ // @interface NSException (NSExceptionRaisingConveniences) // + (void)raise:(NSExceptionName)name format:(NSString *)format, ... __attribute__((format(__NSString__, 2, 3))); // + (void)raise:(NSExceptionName)name format:(NSString *)format arguments:(va_list)argList __attribute__((format(__NSString__, 2, 0))); /* @end */ typedef void NSUncaughtExceptionHandler(NSException *exception); extern "C" NSUncaughtExceptionHandler * _Nullable NSGetUncaughtExceptionHandler(void); extern "C" void NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler * _Nullable); // @class NSAssertionHandler; #ifndef _REWRITER_typedef_NSAssertionHandler #define _REWRITER_typedef_NSAssertionHandler typedef struct objc_object NSAssertionHandler; typedef struct {} _objc_exc_NSAssertionHandler; #endif extern "C" NSString * const NSAssertionHandlerKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSAssertionHandler #define _REWRITER_typedef_NSAssertionHandler typedef struct objc_object NSAssertionHandler; typedef struct {} _objc_exc_NSAssertionHandler; #endif struct NSAssertionHandler_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_reserved; }; @property (class, readonly, strong) NSAssertionHandler *currentHandler; // - (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format,... __attribute__((format(__NSString__, 5, 6))); // - (void)handleFailureInFunction:(NSString *)functionName file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format,... __attribute__((format(__NSString__, 4, 5))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" NSExceptionName const NSDecimalNumberExactnessException; extern "C" NSExceptionName const NSDecimalNumberOverflowException; extern "C" NSExceptionName const NSDecimalNumberUnderflowException; extern "C" NSExceptionName const NSDecimalNumberDivideByZeroException; // @class NSDecimalNumber; #ifndef _REWRITER_typedef_NSDecimalNumber #define _REWRITER_typedef_NSDecimalNumber typedef struct objc_object NSDecimalNumber; typedef struct {} _objc_exc_NSDecimalNumber; #endif // @protocol NSDecimalNumberBehaviors // - (NSRoundingMode)roundingMode; // - (short)scale; // - (nullable NSDecimalNumber *)exceptionDuringOperation:(SEL)operation error:(NSCalculationError)error leftOperand:(NSDecimalNumber *)leftOperand rightOperand:(nullable NSDecimalNumber *)rightOperand; /* @end */ #ifndef _REWRITER_typedef_NSDecimalNumber #define _REWRITER_typedef_NSDecimalNumber typedef struct objc_object NSDecimalNumber; typedef struct {} _objc_exc_NSDecimalNumber; #endif struct NSDecimalNumber__T_1 { int _exponent : 8; unsigned int _length : 4; unsigned int _isNegative : 1; unsigned int _isCompact : 1; unsigned int _reserved : 1; unsigned int _hasExternalRefCount : 1; unsigned int _refs : 16; } ; struct NSDecimalNumber_IMPL { struct NSNumber_IMPL NSNumber_IVARS; struct NSDecimalNumber__T_1 NSDecimalNumber__GRBF_1; unsigned short _mantissa[0]; }; // - (instancetype)initWithMantissa:(unsigned long long)mantissa exponent:(short)exponent isNegative:(BOOL)flag; // - (instancetype)initWithDecimal:(NSDecimal)dcm __attribute__((objc_designated_initializer)); // - (instancetype)initWithString:(nullable NSString *)numberValue; // - (instancetype)initWithString:(nullable NSString *)numberValue locale:(nullable id)locale; // - (NSString *)descriptionWithLocale:(nullable id)locale; // @property (readonly) NSDecimal decimalValue; // + (NSDecimalNumber *)decimalNumberWithMantissa:(unsigned long long)mantissa exponent:(short)exponent isNegative:(BOOL)flag; // + (NSDecimalNumber *)decimalNumberWithDecimal:(NSDecimal)dcm; // + (NSDecimalNumber *)decimalNumberWithString:(nullable NSString *)numberValue; // + (NSDecimalNumber *)decimalNumberWithString:(nullable NSString *)numberValue locale:(nullable id)locale; @property (class, readonly, copy) NSDecimalNumber *zero; @property (class, readonly, copy) NSDecimalNumber *one; @property (class, readonly, copy) NSDecimalNumber *minimumDecimalNumber; @property (class, readonly, copy) NSDecimalNumber *maximumDecimalNumber; @property (class, readonly, copy) NSDecimalNumber *notANumber; // - (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber; // - (NSDecimalNumber *)decimalNumberByAdding:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber; // - (NSDecimalNumber *)decimalNumberBySubtracting:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber; // - (NSDecimalNumber *)decimalNumberByMultiplyingBy:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber; // - (NSDecimalNumber *)decimalNumberByDividingBy:(NSDecimalNumber *)decimalNumber withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberByRaisingToPower:(NSUInteger)power; // - (NSDecimalNumber *)decimalNumberByRaisingToPower:(NSUInteger)power withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power; // - (NSDecimalNumber *)decimalNumberByMultiplyingByPowerOf10:(short)power withBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSDecimalNumber *)decimalNumberByRoundingAccordingToBehavior:(nullable id <NSDecimalNumberBehaviors>)behavior; // - (NSComparisonResult)compare:(NSNumber *)decimalNumber; @property (class, strong) id <NSDecimalNumberBehaviors> defaultBehavior; // @property (readonly) const char *objCType __attribute__((objc_returns_inner_pointer)); // @property (readonly) double doubleValue; /* @end */ #ifndef _REWRITER_typedef_NSDecimalNumberHandler #define _REWRITER_typedef_NSDecimalNumberHandler typedef struct objc_object NSDecimalNumberHandler; typedef struct {} _objc_exc_NSDecimalNumberHandler; #endif struct NSDecimalNumberHandler__T_1 { int _scale : 16; unsigned int _roundingMode : 3; unsigned int _raiseOnExactness : 1; unsigned int _raiseOnOverflow : 1; unsigned int _raiseOnUnderflow : 1; unsigned int _raiseOnDivideByZero : 1; unsigned int _unused : 9; } ; struct NSDecimalNumberHandler_IMPL { struct NSObject_IMPL NSObject_IVARS; struct NSDecimalNumberHandler__T_1 NSDecimalNumberHandler__GRBF_1; void *_reserved2; void *_reserved; }; @property (class, readonly, strong) NSDecimalNumberHandler *defaultDecimalNumberHandler; // - (instancetype)initWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)exact raiseOnOverflow:(BOOL)overflow raiseOnUnderflow:(BOOL)underflow raiseOnDivideByZero:(BOOL)divideByZero __attribute__((objc_designated_initializer)); // + (instancetype)decimalNumberHandlerWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)exact raiseOnOverflow:(BOOL)overflow raiseOnUnderflow:(BOOL)underflow raiseOnDivideByZero:(BOOL)divideByZero; /* @end */ // @interface NSNumber (NSDecimalNumberExtensions) // @property (readonly) NSDecimal decimalValue; /* @end */ // @interface NSScanner (NSDecimalNumberScanning) #if 0 - (BOOL)scanDecimal:(nullable NSDecimal *)dcm ; #endif /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif typedef NSString *NSErrorDomain; #pragma clang assume_nonnull begin extern "C" NSErrorDomain const NSCocoaErrorDomain; extern "C" NSErrorDomain const NSPOSIXErrorDomain; extern "C" NSErrorDomain const NSOSStatusErrorDomain; extern "C" NSErrorDomain const NSMachErrorDomain; typedef NSString *NSErrorUserInfoKey; extern "C" NSErrorUserInfoKey const NSUnderlyingErrorKey; extern "C" NSErrorUserInfoKey const NSLocalizedDescriptionKey; extern "C" NSErrorUserInfoKey const NSLocalizedFailureReasonErrorKey; extern "C" NSErrorUserInfoKey const NSLocalizedRecoverySuggestionErrorKey; extern "C" NSErrorUserInfoKey const NSLocalizedRecoveryOptionsErrorKey; extern "C" NSErrorUserInfoKey const NSRecoveryAttempterErrorKey; extern "C" NSErrorUserInfoKey const NSHelpAnchorErrorKey; extern "C" NSErrorUserInfoKey const NSDebugDescriptionErrorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSErrorUserInfoKey const NSLocalizedFailureErrorKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" NSErrorUserInfoKey const NSStringEncodingErrorKey ; extern "C" NSErrorUserInfoKey const NSURLErrorKey; extern "C" NSErrorUserInfoKey const NSFilePathErrorKey; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif struct NSError_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_reserved; NSInteger _code; NSString *_domain; NSDictionary *_userInfo; }; // - (instancetype)initWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict __attribute__((objc_designated_initializer)); // + (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict; // @property (readonly, copy) NSErrorDomain domain; // @property (readonly) NSInteger code; // @property (readonly, copy) NSDictionary<NSErrorUserInfoKey, id> *userInfo; // @property (readonly, copy) NSString *localizedDescription; // @property (nullable, readonly, copy) NSString *localizedFailureReason; // @property (nullable, readonly, copy) NSString *localizedRecoverySuggestion; // @property (nullable, readonly, copy) NSArray<NSString *> *localizedRecoveryOptions; // @property (nullable, readonly, strong) id recoveryAttempter; // @property (nullable, readonly, copy) NSString *helpAnchor; // + (void)setUserInfoValueProviderForDomain:(NSErrorDomain)errorDomain provider:(id _Nullable (^ _Nullable)(NSError *err, NSErrorUserInfoKey userInfoKey))provider __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (id _Nullable (^ _Nullable)(NSError *err, NSErrorUserInfoKey userInfoKey))userInfoValueProviderForDomain:(NSErrorDomain)errorDomain __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSObject(NSErrorRecoveryAttempting) // - (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(nullable id)delegate didRecoverSelector:(nullable SEL)didRecoverSelector contextInfo:(nullable void *)contextInfo; // - (BOOL)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex; /* @end */ #pragma clang assume_nonnull end // @class NSTimer; #ifndef _REWRITER_typedef_NSTimer #define _REWRITER_typedef_NSTimer typedef struct objc_object NSTimer; typedef struct {} _objc_exc_NSTimer; #endif #ifndef _REWRITER_typedef_NSPort #define _REWRITER_typedef_NSPort typedef struct objc_object NSPort; typedef struct {} _objc_exc_NSPort; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin extern "C" NSRunLoopMode const NSDefaultRunLoopMode; extern "C" NSRunLoopMode const NSRunLoopCommonModes __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif struct NSRunLoop_IMPL { struct NSObject_IMPL NSObject_IVARS; id _rl; id _dperf; id _perft; id _info; id _ports; void *_reserved[6]; }; @property (class, readonly, strong) NSRunLoop *currentRunLoop; @property (class, readonly, strong) NSRunLoop *mainRunLoop __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSRunLoopMode currentMode; // - (CFRunLoopRef)getCFRunLoop __attribute__((cf_returns_not_retained)); // - (void)addTimer:(NSTimer *)timer forMode:(NSRunLoopMode)mode; // - (void)addPort:(NSPort *)aPort forMode:(NSRunLoopMode)mode; // - (void)removePort:(NSPort *)aPort forMode:(NSRunLoopMode)mode; // - (nullable NSDate *)limitDateForMode:(NSRunLoopMode)mode; // - (void)acceptInputForMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate; /* @end */ // @interface NSRunLoop (NSRunLoopConveniences) // - (void)run; // - (void)runUntilDate:(NSDate *)limitDate; // - (BOOL)runMode:(NSRunLoopMode)mode beforeDate:(NSDate *)limitDate; // - (void)performInModes:(NSArray<NSRunLoopMode> *)modes block:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (void)performBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ // @interface NSObject (NSDelayedPerforming) // - (void)performSelector:(SEL)aSelector withObject:(nullable id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray<NSRunLoopMode> *)modes; // - (void)performSelector:(SEL)aSelector withObject:(nullable id)anArgument afterDelay:(NSTimeInterval)delay; // + (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget selector:(SEL)aSelector object:(nullable id)anArgument; // + (void)cancelPreviousPerformRequestsWithTarget:(id)aTarget; /* @end */ // @interface NSRunLoop (NSOrderedPerform) // - (void)performSelector:(SEL)aSelector target:(id)target argument:(nullable id)arg order:(NSUInteger)order modes:(NSArray<NSRunLoopMode> *)modes; // - (void)cancelPerformSelector:(SEL)aSelector target:(id)target argument:(nullable id)arg; // - (void)cancelPerformSelectorsWithTarget:(id)target; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSFileHandle #define _REWRITER_typedef_NSFileHandle typedef struct objc_object NSFileHandle; typedef struct {} _objc_exc_NSFileHandle; #endif struct NSFileHandle_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSData *availableData; // - (instancetype)initWithFileDescriptor:(int)fd closeOnDealloc:(BOOL)closeopt __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); #if 0 - (nullable NSData *)readDataToEndOfFileAndReturnError:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private)); #endif #if 0 - (nullable NSData *)readDataUpToLength:(NSUInteger)length error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private)); #endif #if 0 - (BOOL)writeData:(NSData *)data error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private)); #endif #if 0 - (BOOL)getOffset:(out unsigned long long *)offsetInFile error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private)); #endif #if 0 - (BOOL)seekToEndReturningOffset:(out unsigned long long *_Nullable)offsetInFile error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((swift_private)); #endif #if 0 - (BOOL)seekToOffset:(unsigned long long)offset error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #endif #if 0 - (BOOL)truncateAtOffset:(unsigned long long)offset error:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #endif #if 0 - (BOOL)synchronizeAndReturnError:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #endif #if 0 - (BOOL)closeAndReturnError:(out NSError **)error __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #endif /* @end */ // @interface NSFileHandle (NSFileHandleCreation) @property (class, readonly, strong) NSFileHandle *fileHandleWithStandardInput; @property (class, readonly, strong) NSFileHandle *fileHandleWithStandardOutput; @property (class, readonly, strong) NSFileHandle *fileHandleWithStandardError; @property (class, readonly, strong) NSFileHandle *fileHandleWithNullDevice; // + (nullable instancetype)fileHandleForReadingAtPath:(NSString *)path; // + (nullable instancetype)fileHandleForWritingAtPath:(NSString *)path; // + (nullable instancetype)fileHandleForUpdatingAtPath:(NSString *)path; // + (nullable instancetype)fileHandleForReadingFromURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable instancetype)fileHandleForWritingToURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable instancetype)fileHandleForUpdatingURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSExceptionName const NSFileHandleOperationException; extern "C" NSNotificationName const NSFileHandleReadCompletionNotification; extern "C" NSNotificationName const NSFileHandleReadToEndOfFileCompletionNotification; extern "C" NSNotificationName const NSFileHandleConnectionAcceptedNotification; extern "C" NSNotificationName const NSFileHandleDataAvailableNotification; extern "C" NSString * const NSFileHandleNotificationDataItem; extern "C" NSString * const NSFileHandleNotificationFileHandleItem; extern "C" NSString * const NSFileHandleNotificationMonitorModes __attribute__((availability(macos,introduced=10.0,deprecated=10.7,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); // @interface NSFileHandle (NSFileHandleAsynchronousAccess) // - (void)readInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes; // - (void)readInBackgroundAndNotify; // - (void)readToEndOfFileInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes; // - (void)readToEndOfFileInBackgroundAndNotify; // - (void)acceptConnectionInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes; // - (void)acceptConnectionInBackgroundAndNotify; // - (void)waitForDataInBackgroundAndNotifyForModes:(nullable NSArray<NSRunLoopMode> *)modes; // - (void)waitForDataInBackgroundAndNotify; // @property (nullable, copy) void (^readabilityHandler)(NSFileHandle *) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) void (^writeabilityHandler)(NSFileHandle *) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSFileHandle (NSFileHandlePlatformSpecific) // - (instancetype)initWithFileDescriptor:(int)fd; // @property (readonly) int fileDescriptor; /* @end */ // @interface NSFileHandle ( ) #if 0 - (NSData *)readDataToEndOfFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="readDataToEndOfFileAndReturnError:"))); #endif #if 0 - (NSData *)readDataOfLength:(NSUInteger)length __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="readDataUpToLength:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="readDataUpToLength:error:"))); #endif #if 0 - (void)writeData:(NSData *)data __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="writeData:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="writeData:error:"))); #endif // @property (readonly) unsigned long long offsetInFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getOffset:error:"))); #if 0 - (unsigned long long)seekToEndOfFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="seekToEndReturningOffset:error:"))); #endif #if 0 - (void)seekToFileOffset:(unsigned long long)offset __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="seekToOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="seekToOffset:error:"))); #endif #if 0 - (void)truncateFileAtOffset:(unsigned long long)offset __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="truncateAtOffset:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="truncateAtOffset:error:"))); #endif #if 0 - (void)synchronizeFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="synchronizeAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="synchronizeAndReturnError:"))); #endif #if 0 - (void)closeFile __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="closeAndReturnError:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="closeAndReturnError:"))); #endif /* @end */ #ifndef _REWRITER_typedef_NSPipe #define _REWRITER_typedef_NSPipe typedef struct objc_object NSPipe; typedef struct {} _objc_exc_NSPipe; #endif struct NSPipe_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, retain) NSFileHandle *fileHandleForReading; // @property (readonly, retain) NSFileHandle *fileHandleForWriting; // + (NSPipe *)pipe; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface NSString (NSStringPathExtensions) // + (NSString *)pathWithComponents:(NSArray<NSString *> *)components; // @property (readonly, copy) NSArray<NSString *> *pathComponents; // @property (getter=isAbsolutePath, readonly) BOOL absolutePath; // @property (readonly, copy) NSString *lastPathComponent; // @property (readonly, copy) NSString *stringByDeletingLastPathComponent; // - (NSString *)stringByAppendingPathComponent:(NSString *)str; // @property (readonly, copy) NSString *pathExtension; // @property (readonly, copy) NSString *stringByDeletingPathExtension; // - (nullable NSString *)stringByAppendingPathExtension:(NSString *)str; // @property (readonly, copy) NSString *stringByAbbreviatingWithTildeInPath; // @property (readonly, copy) NSString *stringByExpandingTildeInPath; // @property (readonly, copy) NSString *stringByStandardizingPath; // @property (readonly, copy) NSString *stringByResolvingSymlinksInPath; // - (NSArray<NSString *> *)stringsByAppendingPaths:(NSArray<NSString *> *)paths; // - (NSUInteger)completePathIntoString:(NSString * _Nullable * _Nullable)outputName caseSensitive:(BOOL)flag matchesIntoArray:(NSArray<NSString *> * _Nullable * _Nullable)outputArray filterTypes:(nullable NSArray<NSString *> *)filterTypes; // @property (readonly) const char *fileSystemRepresentation __attribute__((objc_returns_inner_pointer)); // - (BOOL)getFileSystemRepresentation:(char *)cname maxLength:(NSUInteger)max; /* @end */ // @interface NSArray<ObjectType> (NSArrayPathExtensions) // - (NSArray<NSString *> *)pathsMatchingExtensions:(NSArray<NSString *> *)filterTypes; /* @end */ extern "C" NSString *NSUserName(void); extern "C" NSString *NSFullUserName(void); extern "C" NSString *NSHomeDirectory(void); extern "C" NSString * _Nullable NSHomeDirectoryForUser(NSString * _Nullable userName); extern "C" NSString *NSTemporaryDirectory(void); extern "C" NSString *NSOpenStepRootDirectory(void); typedef NSUInteger NSSearchPathDirectory; enum { NSApplicationDirectory = 1, NSDemoApplicationDirectory, NSDeveloperApplicationDirectory, NSAdminApplicationDirectory, NSLibraryDirectory, NSDeveloperDirectory, NSUserDirectory, NSDocumentationDirectory, NSDocumentDirectory, NSCoreServiceDirectory, NSAutosavedInformationDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 11, NSDesktopDirectory = 12, NSCachesDirectory = 13, NSApplicationSupportDirectory = 14, NSDownloadsDirectory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15, NSInputMethodsDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 16, NSMoviesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 17, NSMusicDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 18, NSPicturesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 19, NSPrinterDescriptionDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 20, NSSharedPublicDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 21, NSPreferencePanesDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 22, NSApplicationScriptsDirectory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 23, NSItemReplacementDirectory __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 99, NSAllApplicationsDirectory = 100, NSAllLibrariesDirectory = 101, NSTrashDirectory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 102 }; typedef NSUInteger NSSearchPathDomainMask; enum { NSUserDomainMask = 1, NSLocalDomainMask = 2, NSNetworkDomainMask = 4, NSSystemDomainMask = 8, NSAllDomainsMask = 0x0ffff }; extern "C" NSArray<NSString *> *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde); #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif typedef NSString * NSURLResourceKey __attribute__((swift_wrapper(struct))); #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif struct NSURL_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_urlString; NSURL *_baseURL; void *_clients; void *_reserved; }; // - (nullable instancetype)initWithScheme:(NSString *)scheme host:(nullable NSString *)host path:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings."))); // - (instancetype)initFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (instancetype)initFileURLWithPath:(NSString *)path relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (instancetype)initFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (instancetype)initFileURLWithPath:(NSString *)path __attribute__((objc_designated_initializer)); // + (NSURL *)fileURLWithPath:(NSString *)path isDirectory:(BOOL) isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSURL *)fileURLWithPath:(NSString *)path relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSURL *)fileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSURL *)fileURLWithPath:(NSString *)path; // - (instancetype)initFileURLWithFileSystemRepresentation:(const char *)path isDirectory:(BOOL)isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // + (NSURL *)fileURLWithFileSystemRepresentation:(const char *)path isDirectory:(BOOL) isDir relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initWithString:(NSString *)URLString; // - (nullable instancetype)initWithString:(NSString *)URLString relativeToURL:(nullable NSURL *)baseURL __attribute__((objc_designated_initializer)); // + (nullable instancetype)URLWithString:(NSString *)URLString; // + (nullable instancetype)URLWithString:(NSString *)URLString relativeToURL:(nullable NSURL *)baseURL; // - (instancetype)initWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // + (NSURL *)URLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initAbsoluteURLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // + (NSURL *)absoluteURLWithDataRepresentation:(NSData *)data relativeToURL:(nullable NSURL *)baseURL __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSData *dataRepresentation __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *absoluteString; // @property (readonly, copy) NSString *relativeString; // @property (nullable, readonly, copy) NSURL *baseURL; // @property (nullable, readonly, copy) NSURL *absoluteURL; // @property (nullable, readonly, copy) NSString *scheme; // @property (nullable, readonly, copy) NSString *resourceSpecifier; // @property (nullable, readonly, copy) NSString *host; // @property (nullable, readonly, copy) NSNumber *port; // @property (nullable, readonly, copy) NSString *user; // @property (nullable, readonly, copy) NSString *password; // @property (nullable, readonly, copy) NSString *path; // @property (nullable, readonly, copy) NSString *fragment; // @property (nullable, readonly, copy) NSString *parameterString __attribute__((availability(macosx,introduced=10.2,deprecated=10.15,message="The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them."))); // @property (nullable, readonly, copy) NSString *query; // @property (nullable, readonly, copy) NSString *relativePath; // @property (readonly) BOOL hasDirectoryPath __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getFileSystemRepresentation:(char *)buffer maxLength:(NSUInteger)maxBufferLength __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) const char *fileSystemRepresentation __attribute__((objc_returns_inner_pointer)) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, getter=isFileURL) BOOL fileURL; extern "C" NSString *NSURLFileScheme; // @property (nullable, readonly, copy) NSURL *standardizedURL; // - (BOOL)checkResourceIsReachableAndReturnError:(NSError **)error __attribute__((swift_error(none))) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isFileReferenceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)fileReferenceURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *filePathURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getResourceValue:(out id _Nullable * _Nonnull)value forKey:(NSURLResourceKey)key error:(out NSError ** _Nullable)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDictionary<NSURLResourceKey, id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)setResourceValue:(nullable id)value forKey:(NSURLResourceKey)key error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)setResourceValues:(NSDictionary<NSURLResourceKey, id> *)keyedValues error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLKeysOfUnsetValuesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeCachedResourceValueForKey:(NSURLResourceKey)key __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeAllCachedResourceValues __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setTemporaryResourceValue:(nullable id)value forKey:(NSURLResourceKey)key __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLLocalizedNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsRegularFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsDirectoryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsSymbolicLinkKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsVolumeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsPackageKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsApplicationKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLApplicationIsScriptableKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLIsSystemImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsUserImmutableKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsHiddenKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLHasHiddenExtensionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLCreationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLContentAccessDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLContentModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLAttributeModificationDateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLLinkCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLParentDirectoryURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeURLKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLTypeIdentifierKey __attribute__((availability(macos,introduced=10.6,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(ios,introduced=4.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use NSURLContentTypeKey instead"))); extern "C" NSURLResourceKey const NSURLContentTypeKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLLocalizedTypeDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLLabelNumberKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLLabelColorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLLocalizedLabelKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLEffectiveIconKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLCustomIconKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLFileResourceIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIdentifierKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLPreferredIOBlockSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsReadableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsWritableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsExecutableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLFileSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsExcludedFromBackupKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.1))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLTagNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLPathKey __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLCanonicalPathKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLIsMountTriggerKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLGenerationIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLDocumentIdentifierKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLAddedToDirectoryDateKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLQuarantinePropertiesKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLFileResourceTypeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLFileContentIdentifierKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLMayShareFileContentKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLMayHaveExtendedAttributesKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLIsPurgeableKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLIsSparseKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); typedef NSString * NSURLFileResourceType __attribute__((swift_wrapper(enum))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeNamedPipe __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeCharacterSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeBlockSpecial __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeRegular __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeSymbolicLink __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeSocket __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileResourceType const NSURLFileResourceTypeUnknown __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLThumbnailDictionaryKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,introduced=8.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))); extern "C" NSURLResourceKey const NSURLThumbnailKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSString *NSURLThumbnailDictionaryItem __attribute__((swift_wrapper(struct))); extern "C" NSURLThumbnailDictionaryItem const NSThumbnail1024x1024SizeKey __attribute__((availability(macos,introduced=10.10,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(ios,introduced=8.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="Use the QuickLookThumbnailing framework and extension point instead"))); extern "C" NSURLResourceKey const NSURLFileSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLTotalFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLTotalFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLIsAliasFileKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLFileProtectionKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSURLFileProtectionType __attribute__((swift_wrapper(enum))); extern "C" NSURLFileProtectionType const NSURLFileProtectionNone __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileProtectionType const NSURLFileProtectionComplete __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileProtectionType const NSURLFileProtectionCompleteUnlessOpen __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLFileProtectionType const NSURLFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeLocalizedFormatDescriptionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeTotalCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeResourceCountKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsPersistentIDsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsSymbolicLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsHardLinksKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsJournalingKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsSparseFilesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsZeroRunsKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsCaseSensitiveNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsCasePreservedNamesKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsRootDirectoryDatesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsVolumeSizesKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsRenamingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsAdvisoryFileLockingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsExtendedSecurityKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsBrowsableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeMaximumFileSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsEjectableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsRemovableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsInternalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsAutomountedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsLocalKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsReadOnlyKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeURLForRemountingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeUUIDStringKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeLocalizedNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLVolumeIsEncryptedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeIsRootFileSystemKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsCompressionKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsFileCloningKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsSwapRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsExclusiveRenamingKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsImmutableFilesKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsAccessPermissionsKey __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" NSURLResourceKey const NSURLVolumeSupportsFileProtectionKey __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityForImportantUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLVolumeAvailableCapacityForOpportunisticUsageKey __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLIsUbiquitousItemKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLUbiquitousItemDownloadingStatusKey instead"))); extern "C" NSURLResourceKey const NSURLUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemPercentDownloadedKey instead"))); extern "C" NSURLResourceKey const NSURLUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.8,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemPercentUploadedKey instead"))); extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemDownloadRequestedKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemContainerDisplayNameKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLResourceKey const NSURLUbiquitousItemIsSharedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemCurrentUserRoleKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemCurrentUserPermissionsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemOwnerNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLResourceKey const NSURLUbiquitousSharedItemMostRecentEditorNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSString * NSURLUbiquitousItemDownloadingStatus __attribute__((swift_wrapper(enum))); extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSURLUbiquitousItemDownloadingStatus const NSURLUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSURLUbiquitousSharedItemRole __attribute__((swift_wrapper(enum))); extern "C" NSURLUbiquitousSharedItemRole const NSURLUbiquitousSharedItemRoleOwner __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLUbiquitousSharedItemRole const NSURLUbiquitousSharedItemRoleParticipant __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSString * NSURLUbiquitousSharedItemPermissions __attribute__((swift_wrapper(enum))); extern "C" NSURLUbiquitousSharedItemPermissions const NSURLUbiquitousSharedItemPermissionsReadOnly __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSURLUbiquitousSharedItemPermissions const NSURLUbiquitousSharedItemPermissionsReadWrite __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger NSURLBookmarkCreationOptions; enum { NSURLBookmarkCreationPreferFileIDResolution __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Not supported"))) __attribute__((availability(ios,introduced=4.0,deprecated=7.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))) = ( 1UL << 8 ), NSURLBookmarkCreationMinimalBookmark = ( 1UL << 9 ), NSURLBookmarkCreationSuitableForBookmarkFile = ( 1UL << 10 ), NSURLBookmarkCreationWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 11 ), NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 12 ), } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSURLBookmarkResolutionOptions; enum { NSURLBookmarkResolutionWithoutUI = ( 1UL << 8 ), NSURLBookmarkResolutionWithoutMounting = ( 1UL << 9 ), NSURLBookmarkResolutionWithSecurityScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = ( 1 << 10 ) } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSURLBookmarkFileCreationOptions; // - (nullable NSData *)bookmarkDataWithOptions:(NSURLBookmarkCreationOptions)options includingResourceValuesForKeys:(nullable NSArray<NSURLResourceKey> *)keys relativeToURL:(nullable NSURL *)relativeURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initByResolvingBookmarkData:(NSData *)bookmarkData options:(NSURLBookmarkResolutionOptions)options relativeToURL:(nullable NSURL *)relativeURL bookmarkDataIsStale:(BOOL * _Nullable)isStale error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable instancetype)URLByResolvingBookmarkData:(NSData *)bookmarkData options:(NSURLBookmarkResolutionOptions)options relativeToURL:(nullable NSURL *)relativeURL bookmarkDataIsStale:(BOOL * _Nullable)isStale error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSDictionary<NSURLResourceKey, id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys fromBookmarkData:(NSData *)bookmarkData __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (BOOL)writeBookmarkData:(NSData *)bookmarkData toURL:(NSURL *)bookmarkFileURL options:(NSURLBookmarkFileCreationOptions)options error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSData *)bookmarkDataWithContentsOfURL:(NSURL *)bookmarkFileURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable instancetype)URLByResolvingAliasFileAtURL:(NSURL *)url options:(NSURLBookmarkResolutionOptions)options error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)startAccessingSecurityScopedResource __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)stopAccessingSecurityScopedResource __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSURL (NSPromisedItems) // - (BOOL)getPromisedItemResourceValue:(id _Nullable * _Nonnull)value forKey:(NSURLResourceKey)key error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDictionary<NSURLResourceKey, id> *)promisedItemResourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)checkPromisedItemIsReachableAndReturnError:(NSError **)error __attribute__((swift_error(none))) __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSURL (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting> /* @end */ __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLQueryItem #define _REWRITER_typedef_NSURLQueryItem typedef struct objc_object NSURLQueryItem; typedef struct {} _objc_exc_NSURLQueryItem; #endif struct NSURLQueryItem_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_name; NSString *_value; }; // - (instancetype)initWithName:(NSString *)name value:(nullable NSString *)value __attribute__((objc_designated_initializer)); // + (instancetype)queryItemWithName:(NSString *)name value:(nullable NSString *)value; // @property (readonly) NSString *name; // @property (nullable, readonly) NSString *value; /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLComponents #define _REWRITER_typedef_NSURLComponents typedef struct objc_object NSURLComponents; typedef struct {} _objc_exc_NSURLComponents; #endif struct NSURLComponents_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (nullable instancetype)initWithURL:(NSURL *)url resolvingAgainstBaseURL:(BOOL)resolve; // + (nullable instancetype)componentsWithURL:(NSURL *)url resolvingAgainstBaseURL:(BOOL)resolve; // - (nullable instancetype)initWithString:(NSString *)URLString; // + (nullable instancetype)componentsWithString:(NSString *)URLString; // @property (nullable, readonly, copy) NSURL *URL; // - (nullable NSURL *)URLRelativeToURL:(nullable NSURL *)baseURL; // @property (nullable, readonly, copy) NSString *string __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSString *scheme; // @property (nullable, copy) NSString *user; // @property (nullable, copy) NSString *password; // @property (nullable, copy) NSString *host; // @property (nullable, copy) NSNumber *port; // @property (nullable, copy) NSString *path; // @property (nullable, copy) NSString *query; // @property (nullable, copy) NSString *fragment; // @property (nullable, copy) NSString *percentEncodedUser; // @property (nullable, copy) NSString *percentEncodedPassword; // @property (nullable, copy) NSString *percentEncodedHost; // @property (nullable, copy) NSString *percentEncodedPath; // @property (nullable, copy) NSString *percentEncodedQuery; // @property (nullable, copy) NSString *percentEncodedFragment; // @property (readonly) NSRange rangeOfScheme __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfUser __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfPassword __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfHost __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfPort __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfPath __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfQuery __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSRange rangeOfFragment __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSArray<NSURLQueryItem *> *queryItems __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSArray<NSURLQueryItem *> *percentEncodedQueryItems __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface NSCharacterSet (NSURLUtilities) @property (class, readonly, copy) NSCharacterSet *URLUserAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSCharacterSet *URLPasswordAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSCharacterSet *URLHostAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSCharacterSet *URLPathAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSCharacterSet *URLQueryAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSCharacterSet *URLFragmentAllowedCharacterSet __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSString (NSURLUtilities) // - (nullable NSString *)stringByAddingPercentEncodingWithAllowedCharacters:(NSCharacterSet *)allowedCharacters __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *stringByRemovingPercentEncoding __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSString *)stringByAddingPercentEscapesUsingEncoding:(NSStringEncoding)enc __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid."))); // - (nullable NSString *)stringByReplacingPercentEscapesUsingEncoding:(NSStringEncoding)enc __attribute__((availability(macos,introduced=10.0,deprecated=10.11,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding."))); /* @end */ // @interface NSURL (NSURLPathUtilities) // + (nullable NSURL *)fileURLWithPathComponents:(NSArray<NSString *> *)components __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSArray<NSString *> *pathComponents __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *lastPathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *pathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLByAppendingPathComponent:(NSString *)pathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLByAppendingPathComponent:(NSString *)pathComponent isDirectory:(BOOL)isDirectory __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *URLByDeletingLastPathComponent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLByAppendingPathExtension:(NSString *)pathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *URLByDeletingPathExtension __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *URLByStandardizingPath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *URLByResolvingSymlinksInPath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSFileSecurity #define _REWRITER_typedef_NSFileSecurity typedef struct objc_object NSFileSecurity; typedef struct {} _objc_exc_NSFileSecurity; #endif struct NSFileSecurity_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable instancetype) initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSDirectoryEnumerator #define _REWRITER_typedef_NSDirectoryEnumerator typedef struct objc_object NSDirectoryEnumerator; typedef struct {} _objc_exc_NSDirectoryEnumerator; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #ifndef _REWRITER_typedef_NSFileProviderService #define _REWRITER_typedef_NSFileProviderService typedef struct objc_object NSFileProviderService; typedef struct {} _objc_exc_NSFileProviderService; #endif #ifndef _REWRITER_typedef_NSXPCConnection #define _REWRITER_typedef_NSXPCConnection typedef struct objc_object NSXPCConnection; typedef struct {} _objc_exc_NSXPCConnection; #endif #ifndef _REWRITER_typedef_NSLock #define _REWRITER_typedef_NSLock typedef struct objc_object NSLock; typedef struct {} _objc_exc_NSLock; #endif // @protocol NSFileManagerDelegate; typedef NSString * NSFileAttributeKey __attribute__((swift_wrapper(struct))); typedef NSString * NSFileAttributeType __attribute__((swift_wrapper(enum))); typedef NSString * NSFileProtectionType __attribute__((swift_wrapper(enum))); typedef NSString * NSFileProviderServiceName __attribute__((swift_wrapper(struct))); #pragma clang assume_nonnull begin typedef NSUInteger NSVolumeEnumerationOptions; enum { NSVolumeEnumerationSkipHiddenVolumes = 1UL << 1, NSVolumeEnumerationProduceFileReferenceURLs = 1UL << 2 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSDirectoryEnumerationOptions; enum { NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1UL << 0, NSDirectoryEnumerationSkipsPackageDescendants = 1UL << 1, NSDirectoryEnumerationSkipsHiddenFiles = 1UL << 2, NSDirectoryEnumerationIncludesDirectoriesPostOrder __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 3, NSDirectoryEnumerationProducesRelativePathURLs __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 1UL << 4, } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSFileManagerItemReplacementOptions; enum { NSFileManagerItemReplacementUsingNewMetadataOnly = 1UL << 0, NSFileManagerItemReplacementWithoutDeletingBackupItem = 1UL << 1 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSURLRelationship; enum { NSURLRelationshipContains, NSURLRelationshipSame, NSURLRelationshipOther } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSFileManagerUnmountOptions; enum { NSFileManagerUnmountAllPartitionsAndEjectDisk = 1UL << 0, NSFileManagerUnmountWithoutUI = 1UL << 1, } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString *const NSFileManagerUnmountDissentingProcessIdentifierErrorKey __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern NSNotificationName const NSUbiquityIdentityDidChangeNotification __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSFileManager #define _REWRITER_typedef_NSFileManager typedef struct objc_object NSFileManager; typedef struct {} _objc_exc_NSFileManager; #endif struct NSFileManager_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, strong) NSFileManager *defaultManager; // - (nullable NSArray<NSURL *> *)mountedVolumeURLsIncludingResourceValuesForKeys:(nullable NSArray<NSURLResourceKey> *)propertyKeys options:(NSVolumeEnumerationOptions)options __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)unmountVolumeAtURL:(NSURL *)url options:(NSFileManagerUnmountOptions)mask completionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable NSArray<NSURL *> *)contentsOfDirectoryAtURL:(NSURL *)url includingPropertiesForKeys:(nullable NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSArray<NSURL *> *)URLsForDirectory:(NSSearchPathDirectory)directory inDomains:(NSSearchPathDomainMask)domainMask __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domain appropriateForURL:(nullable NSURL *)url create:(BOOL)shouldCreate error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getRelationship:(NSURLRelationship *)outRelationship ofDirectoryAtURL:(NSURL *)directoryURL toItemAtURL:(NSURL *)otherURL error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)getRelationship:(NSURLRelationship *)outRelationship ofDirectory:(NSSearchPathDirectory)directory inDomain:(NSSearchPathDomainMask)domainMask toItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)createDirectoryAtURL:(NSURL *)url withIntermediateDirectories:(BOOL)createIntermediates attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attributes error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)createSymbolicLinkAtURL:(NSURL *)url withDestinationURL:(NSURL *)destURL error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, assign) id <NSFileManagerDelegate> delegate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)setAttributes:(NSDictionary<NSFileAttributeKey, id> *)attributes ofItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attributes error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSString *> *)contentsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSString *> *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)createSymbolicLinkAtPath:(NSString *)path withDestinationPath:(NSString *)destPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSString *)destinationOfSymbolicLinkAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)moveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)linkItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)copyItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)moveItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)linkItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)removeItemAtURL:(NSURL *)URL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)trashItemAtURL:(NSURL *)url resultingItemURL:(NSURL * _Nullable * _Nullable)outResultingURL error:(NSError **)error __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable NSDictionary *)fileAttributesAtPath:(NSString *)path traverseLink:(BOOL)yorn __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -attributesOfItemAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -attributesOfItemAtPath:error: instead"))); // - (BOOL)changeFileAttributes:(NSDictionary *)attributes atPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -setAttributes:ofItemAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -setAttributes:ofItemAtPath:error: instead"))); // - (nullable NSArray *)directoryContentsAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -contentsOfDirectoryAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -contentsOfDirectoryAtPath:error: instead"))); // - (nullable NSDictionary *)fileSystemAttributesAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -attributesOfFileSystemForPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -attributesOfFileSystemForPath:error: instead"))); // - (nullable NSString *)pathContentOfSymbolicLinkAtPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -destinationOfSymbolicLinkAtPath:error:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -destinationOfSymbolicLinkAtPath:error:"))); // - (BOOL)createSymbolicLinkAtPath:(NSString *)path pathContent:(NSString *)otherpath __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -createSymbolicLinkAtPath:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -createSymbolicLinkAtPath:error: instead"))); // - (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -createDirectoryAtPath:withIntermediateDirectories:attributes:error: instead"))); // @property (readonly, copy) NSString *currentDirectoryPath; // - (BOOL)changeCurrentDirectoryPath:(NSString *)path; // - (BOOL)fileExistsAtPath:(NSString *)path; // - (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(nullable BOOL *)isDirectory; // - (BOOL)isReadableFileAtPath:(NSString *)path; // - (BOOL)isWritableFileAtPath:(NSString *)path; // - (BOOL)isExecutableFileAtPath:(NSString *)path; // - (BOOL)isDeletableFileAtPath:(NSString *)path; // - (BOOL)contentsEqualAtPath:(NSString *)path1 andPath:(NSString *)path2; // - (NSString *)displayNameAtPath:(NSString *)path; // - (nullable NSArray<NSString *> *)componentsToDisplayForPath:(NSString *)path; // - (nullable NSDirectoryEnumerator<NSString *> *)enumeratorAtPath:(NSString *)path; // - (nullable NSDirectoryEnumerator<NSURL *> *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(nullable NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(nullable BOOL (^)(NSURL *url, NSError *error))handler __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSString *> *)subpathsAtPath:(NSString *)path; // - (nullable NSData *)contentsAtPath:(NSString *)path; // - (BOOL)createFileAtPath:(NSString *)path contents:(nullable NSData *)data attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attr; // - (const char *)fileSystemRepresentationWithPath:(NSString *)path __attribute__((objc_returns_inner_pointer)); // - (NSString *)stringWithFileSystemRepresentation:(const char *)str length:(NSUInteger)len; // - (BOOL)replaceItemAtURL:(NSURL *)originalItemURL withItemAtURL:(NSURL *)newItemURL backupItemName:(nullable NSString *)backupItemName options:(NSFileManagerItemReplacementOptions)options resultingItemURL:(NSURL * _Nullable * _Nullable)resultingURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)setUbiquitous:(BOOL)flag itemAtURL:(NSURL *)url destinationURL:(NSURL *)destinationURL error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)isUbiquitousItemAtURL:(NSURL *)url __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)startDownloadingUbiquitousItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)evictUbiquitousItemAtURL:(NSURL *)url error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForUbiquityContainerIdentifier:(nullable NSString *)containerIdentifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)URLForPublishingUbiquitousItemAtURL:(NSURL *)url expirationDate:(NSDate * _Nullable * _Nullable)outDate error:(NSError **)error __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) id<NSObject,NSCopying,NSCoding> ubiquityIdentityToken __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getFileProviderServicesForItemAtURL:(NSURL *)url completionHandler:(void (^)(NSDictionary <NSFileProviderServiceName, NSFileProviderService *> * _Nullable services, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSFileManager (NSUserInformation) // @property (readonly, copy) NSURL *homeDirectoryForCurrentUser __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, copy) NSURL *temporaryDirectory __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (nullable NSURL *)homeDirectoryForUser:(NSString *)userName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface NSObject (NSCopyLinkMoveHandler) // - (BOOL)fileManager:(NSFileManager *)fm shouldProceedAfterError:(NSDictionary *)errorInfo __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message=" Handler API no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message=" Handler API no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message=" Handler API no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message=" Handler API no longer supported"))); // - (void)fileManager:(NSFileManager *)fm willProcessPath:(NSString *)path __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Handler API no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Handler API no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Handler API no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Handler API no longer supported"))); /* @end */ // @protocol NSFileManagerDelegate <NSObject> /* @optional */ // - (BOOL)fileManager:(NSFileManager *)fileManager shouldCopyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldCopyItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error copyingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error copyingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldMoveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldMoveItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error movingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error movingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldLinkItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldLinkItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error linkingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error linkingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldRemoveItemAtPath:(NSString *)path; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldRemoveItemAtURL:(NSURL *)URL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error removingItemAtPath:(NSString *)path; // - (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error removingItemAtURL:(NSURL *)URL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #ifndef _REWRITER_typedef_NSDirectoryEnumerator #define _REWRITER_typedef_NSDirectoryEnumerator typedef struct objc_object NSDirectoryEnumerator; typedef struct {} _objc_exc_NSDirectoryEnumerator; #endif struct NSDirectoryEnumerator_IMPL { struct NSEnumerator_IMPL NSEnumerator_IVARS; }; // @property (nullable, readonly, copy) NSDictionary<NSFileAttributeKey, id> *fileAttributes; // @property (nullable, readonly, copy) NSDictionary<NSFileAttributeKey, id> *directoryAttributes; // @property (readonly) BOOL isEnumeratingDirectoryPostOrder __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (void)skipDescendents; // @property (readonly) NSUInteger level __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)skipDescendants __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_NSFileProviderService #define _REWRITER_typedef_NSFileProviderService typedef struct objc_object NSFileProviderService; typedef struct {} _objc_exc_NSFileProviderService; #endif struct NSFileProviderService_IMPL { struct NSObject_IMPL NSObject_IVARS; NSFileProviderServiceName _name; id _endpointCreatingProxy; dispatch_group_t _requestFinishedGroup; }; // - (void)getFileProviderConnectionWithCompletionHandler:(void (^)(NSXPCConnection * _Nullable connection, NSError * _Nullable error))completionHandler; // @property (readonly, copy) NSFileProviderServiceName name; /* @end */ extern "C" NSFileAttributeKey const NSFileType; extern "C" NSFileAttributeType const NSFileTypeDirectory; extern "C" NSFileAttributeType const NSFileTypeRegular; extern "C" NSFileAttributeType const NSFileTypeSymbolicLink; extern "C" NSFileAttributeType const NSFileTypeSocket; extern "C" NSFileAttributeType const NSFileTypeCharacterSpecial; extern "C" NSFileAttributeType const NSFileTypeBlockSpecial; extern "C" NSFileAttributeType const NSFileTypeUnknown; extern "C" NSFileAttributeKey const NSFileSize; extern "C" NSFileAttributeKey const NSFileModificationDate; extern "C" NSFileAttributeKey const NSFileReferenceCount; extern "C" NSFileAttributeKey const NSFileDeviceIdentifier; extern "C" NSFileAttributeKey const NSFileOwnerAccountName; extern "C" NSFileAttributeKey const NSFileGroupOwnerAccountName; extern "C" NSFileAttributeKey const NSFilePosixPermissions; extern "C" NSFileAttributeKey const NSFileSystemNumber; extern "C" NSFileAttributeKey const NSFileSystemFileNumber; extern "C" NSFileAttributeKey const NSFileExtensionHidden; extern "C" NSFileAttributeKey const NSFileHFSCreatorCode; extern "C" NSFileAttributeKey const NSFileHFSTypeCode; extern "C" NSFileAttributeKey const NSFileImmutable; extern "C" NSFileAttributeKey const NSFileAppendOnly; extern "C" NSFileAttributeKey const NSFileCreationDate; extern "C" NSFileAttributeKey const NSFileOwnerAccountID; extern "C" NSFileAttributeKey const NSFileGroupOwnerAccountID; extern "C" NSFileAttributeKey const NSFileBusy; extern "C" NSFileAttributeKey const NSFileProtectionKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSFileProtectionType const NSFileProtectionNone __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSFileProtectionType const NSFileProtectionComplete __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSFileProtectionType const NSFileProtectionCompleteUnlessOpen __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSFileProtectionType const NSFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSFileAttributeKey const NSFileSystemSize; extern "C" NSFileAttributeKey const NSFileSystemFreeSize; extern "C" NSFileAttributeKey const NSFileSystemNodes; extern "C" NSFileAttributeKey const NSFileSystemFreeNodes; // @interface NSDictionary<KeyType, ObjectType> (NSFileAttributes) // - (unsigned long long)fileSize; // - (nullable NSDate *)fileModificationDate; // - (nullable NSString *)fileType; // - (NSUInteger)filePosixPermissions; // - (nullable NSString *)fileOwnerAccountName; // - (nullable NSString *)fileGroupOwnerAccountName; // - (NSInteger)fileSystemNumber; // - (NSUInteger)fileSystemFileNumber; // - (BOOL)fileExtensionHidden; // - (OSType)fileHFSCreatorCode; // - (OSType)fileHFSTypeCode; // - (BOOL)fileIsImmutable; // - (BOOL)fileIsAppendOnly; // - (nullable NSDate *)fileCreationDate; // - (nullable NSNumber *)fileOwnerAccountID; // - (nullable NSNumber *)fileGroupOwnerAccountID; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger NSPointerFunctionsOptions; enum { NSPointerFunctionsStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (0UL << 0), NSPointerFunctionsZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = (1UL << 0), NSPointerFunctionsOpaqueMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (2UL << 0), NSPointerFunctionsMallocMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (3UL << 0), NSPointerFunctionsMachVirtualMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (4UL << 0), NSPointerFunctionsWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (5UL << 0), NSPointerFunctionsObjectPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (0UL << 8), NSPointerFunctionsOpaquePersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 8), NSPointerFunctionsObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (2UL << 8), NSPointerFunctionsCStringPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (3UL << 8), NSPointerFunctionsStructPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (4UL << 8), NSPointerFunctionsIntegerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (5UL << 8), NSPointerFunctionsCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = (1UL << 16), }; __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPointerFunctions #define _REWRITER_typedef_NSPointerFunctions typedef struct objc_object NSPointerFunctions; typedef struct {} _objc_exc_NSPointerFunctions; #endif struct NSPointerFunctions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options __attribute__((objc_designated_initializer)); // + (NSPointerFunctions *)pointerFunctionsWithOptions:(NSPointerFunctionsOptions)options; // @property (nullable) NSUInteger (*hashFunction)(const void *item, NSUInteger (* _Nullable size)(const void *item)); // @property (nullable) BOOL (*isEqualFunction)(const void *item1, const void*item2, NSUInteger (* _Nullable size)(const void *item)); // @property (nullable) NSUInteger (*sizeFunction)(const void *item); // @property (nullable) NSString * _Nullable (*descriptionFunction)(const void *item); // @property (nullable) void (*relinquishFunction)(const void *item, NSUInteger (* _Nullable size)(const void *item)); // @property (nullable) void * _Nonnull (*acquireFunction)(const void *src, NSUInteger (* _Nullable size)(const void *item), BOOL shouldCopy); // @property BOOL usesStrongWriteBarrier __attribute__((availability(macosx,introduced=10.5,deprecated=10.12,message="Garbage collection no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=10.0,message="Garbage collection no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Garbage collection no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Garbage collection no longer supported"))); // @property BOOL usesWeakReadAndWriteBarriers __attribute__((availability(macosx,introduced=10.5,deprecated=10.12,message="Garbage collection no longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=10.0,message="Garbage collection no longer supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Garbage collection no longer supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Garbage collection no longer supported"))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_NSHashTable #define _REWRITER_typedef_NSHashTable typedef struct objc_object NSHashTable; typedef struct {} _objc_exc_NSHashTable; #endif #pragma clang assume_nonnull begin static const NSPointerFunctionsOptions NSHashTableStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsStrongMemory; static const NSPointerFunctionsOptions NSHashTableZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = NSPointerFunctionsZeroingWeakMemory; static const NSPointerFunctionsOptions NSHashTableCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsCopyIn; static const NSPointerFunctionsOptions NSHashTableObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsObjectPointerPersonality; static const NSPointerFunctionsOptions NSHashTableWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsWeakMemory; typedef NSUInteger NSHashTableOptions; __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSHashTable #define _REWRITER_typedef_NSHashTable typedef struct objc_object NSHashTable; typedef struct {} _objc_exc_NSHashTable; #endif struct NSHashTable_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer)); // - (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer)); // + (NSHashTable<ObjectType> *)hashTableWithOptions:(NSPointerFunctionsOptions)options; // + (id)hashTableWithWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (NSHashTable<ObjectType> *)weakObjectsHashTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSPointerFunctions *pointerFunctions; // @property (readonly) NSUInteger count; // - (nullable ObjectType)member:(nullable ObjectType)object; // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (void)addObject:(nullable ObjectType)object; // - (void)removeObject:(nullable ObjectType)object; // - (void)removeAllObjects; // @property (readonly, copy) NSArray<ObjectType> *allObjects; // @property (nullable, nonatomic, readonly) ObjectType anyObject; // - (BOOL)containsObject:(nullable ObjectType)anObject; // - (BOOL)intersectsHashTable:(NSHashTable<ObjectType> *)other; // - (BOOL)isEqualToHashTable:(NSHashTable<ObjectType> *)other; // - (BOOL)isSubsetOfHashTable:(NSHashTable<ObjectType> *)other; // - (void)intersectHashTable:(NSHashTable<ObjectType> *)other; // - (void)unionHashTable:(NSHashTable<ObjectType> *)other; // - (void)minusHashTable:(NSHashTable<ObjectType> *)other; // @property (readonly, copy) NSSet<ObjectType> *setRepresentation; /* @end */ typedef struct {NSUInteger _pi; NSUInteger _si; void * _Nullable _bs;} NSHashEnumerator; extern "C" void NSFreeHashTable(NSHashTable *table); extern "C" void NSResetHashTable(NSHashTable *table); extern "C" BOOL NSCompareHashTables(NSHashTable *table1, NSHashTable *table2); extern "C" NSHashTable *NSCopyHashTableWithZone(NSHashTable *table, NSZone * _Nullable zone); extern "C" void *NSHashGet(NSHashTable *table, const void * _Nullable pointer); extern "C" void NSHashInsert(NSHashTable *table, const void * _Nullable pointer); extern "C" void NSHashInsertKnownAbsent(NSHashTable *table, const void * _Nullable pointer); extern "C" void * _Nullable NSHashInsertIfAbsent(NSHashTable *table, const void * _Nullable pointer); extern "C" void NSHashRemove(NSHashTable *table, const void * _Nullable pointer); extern "C" NSHashEnumerator NSEnumerateHashTable(NSHashTable *table); extern "C" void * _Nullable NSNextHashEnumeratorItem(NSHashEnumerator *enumerator); extern "C" void NSEndHashTableEnumeration(NSHashEnumerator *enumerator); extern "C" NSUInteger NSCountHashTable(NSHashTable *table); extern "C" NSString *NSStringFromHashTable(NSHashTable *table); extern "C" NSArray *NSAllHashTableObjects(NSHashTable *table); typedef struct { NSUInteger (* _Nullable hash)(NSHashTable *table, const void *); BOOL (* _Nullable isEqual)(NSHashTable *table, const void *, const void *); void (* _Nullable retain)(NSHashTable *table, const void *); void (* _Nullable release)(NSHashTable *table, void *); NSString * _Nullable (* _Nullable describe)(NSHashTable *table, const void *); } NSHashTableCallBacks; extern "C" NSHashTable *NSCreateHashTableWithZone(NSHashTableCallBacks callBacks, NSUInteger capacity, NSZone * _Nullable zone); extern "C" NSHashTable *NSCreateHashTable(NSHashTableCallBacks callBacks, NSUInteger capacity); extern "C" const NSHashTableCallBacks NSIntegerHashCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" const NSHashTableCallBacks NSNonOwnedPointerHashCallBacks; extern "C" const NSHashTableCallBacks NSNonRetainedObjectHashCallBacks; extern "C" const NSHashTableCallBacks NSObjectHashCallBacks; extern "C" const NSHashTableCallBacks NSOwnedObjectIdentityHashCallBacks; extern "C" const NSHashTableCallBacks NSOwnedPointerHashCallBacks; extern "C" const NSHashTableCallBacks NSPointerToStructHashCallBacks; extern "C" const NSHashTableCallBacks NSIntHashCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSDate; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSNumber; #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif typedef NSString * NSHTTPCookiePropertyKey __attribute__((swift_wrapper(struct))); typedef NSString * NSHTTPCookieStringPolicy __attribute__((swift_wrapper(enum))); #pragma clang assume_nonnull begin extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieName __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieValue __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieOriginURL __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieVersion __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieDomain __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookiePath __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieSecure __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieExpires __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieComment __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieCommentURL __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieDiscard __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieMaximumAge __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookiePort __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSHTTPCookiePropertyKey const NSHTTPCookieSameSitePolicy __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" NSHTTPCookieStringPolicy const NSHTTPCookieSameSiteLax __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" NSHTTPCookieStringPolicy const NSHTTPCookieSameSiteStrict __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @class NSHTTPCookieInternal; #ifndef _REWRITER_typedef_NSHTTPCookieInternal #define _REWRITER_typedef_NSHTTPCookieInternal typedef struct objc_object NSHTTPCookieInternal; typedef struct {} _objc_exc_NSHTTPCookieInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSHTTPCookie #define _REWRITER_typedef_NSHTTPCookie typedef struct objc_object NSHTTPCookie; typedef struct {} _objc_exc_NSHTTPCookie; #endif struct NSHTTPCookie_IMPL { struct NSObject_IMPL NSObject_IVARS; NSHTTPCookieInternal *_cookiePrivate; }; // - (nullable instancetype)initWithProperties:(NSDictionary<NSHTTPCookiePropertyKey, id> *)properties; // + (nullable NSHTTPCookie *)cookieWithProperties:(NSDictionary<NSHTTPCookiePropertyKey, id> *)properties; // + (NSDictionary<NSString *, NSString *> *)requestHeaderFieldsWithCookies:(NSArray<NSHTTPCookie *> *)cookies; // + (NSArray<NSHTTPCookie *> *)cookiesWithResponseHeaderFields:(NSDictionary<NSString *, NSString *> *)headerFields forURL:(NSURL *)URL; // @property (nullable, readonly, copy) NSDictionary<NSHTTPCookiePropertyKey, id> *properties; // @property (readonly) NSUInteger version; // @property (readonly, copy) NSString *name; // @property (readonly, copy) NSString *value; // @property (nullable, readonly, copy) NSDate *expiresDate; // @property (readonly, getter=isSessionOnly) BOOL sessionOnly; // @property (readonly, copy) NSString *domain; // @property (readonly, copy) NSString *path; // @property (readonly, getter=isSecure) BOOL secure; // @property (readonly, getter=isHTTPOnly) BOOL HTTPOnly; // @property (nullable, readonly, copy) NSString *comment; // @property (nullable, readonly, copy) NSURL *commentURL; // @property (nullable, readonly, copy) NSArray<NSNumber *> *portList; // @property (nullable, readonly, copy) NSHTTPCookieStringPolicy sameSitePolicy __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSHTTPCookie; #ifndef _REWRITER_typedef_NSHTTPCookie #define _REWRITER_typedef_NSHTTPCookie typedef struct objc_object NSHTTPCookie; typedef struct {} _objc_exc_NSHTTPCookie; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSDate; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif // @class NSURLSessionTask; #ifndef _REWRITER_typedef_NSURLSessionTask #define _REWRITER_typedef_NSURLSessionTask typedef struct objc_object NSURLSessionTask; typedef struct {} _objc_exc_NSURLSessionTask; #endif // @class NSSortDescriptor; #ifndef _REWRITER_typedef_NSSortDescriptor #define _REWRITER_typedef_NSSortDescriptor typedef struct objc_object NSSortDescriptor; typedef struct {} _objc_exc_NSSortDescriptor; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSHTTPCookieAcceptPolicy; enum { NSHTTPCookieAcceptPolicyAlways, NSHTTPCookieAcceptPolicyNever, NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain }; // @class NSHTTPCookieStorageInternal; #ifndef _REWRITER_typedef_NSHTTPCookieStorageInternal #define _REWRITER_typedef_NSHTTPCookieStorageInternal typedef struct objc_object NSHTTPCookieStorageInternal; typedef struct {} _objc_exc_NSHTTPCookieStorageInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSHTTPCookieStorage #define _REWRITER_typedef_NSHTTPCookieStorage typedef struct objc_object NSHTTPCookieStorage; typedef struct {} _objc_exc_NSHTTPCookieStorage; #endif struct NSHTTPCookieStorage_IMPL { struct NSObject_IMPL NSObject_IVARS; NSHTTPCookieStorageInternal *_internal; }; @property(class, readonly, strong) NSHTTPCookieStorage *sharedHTTPCookieStorage; // + (NSHTTPCookieStorage *)sharedCookieStorageForGroupContainerIdentifier:(NSString *)identifier __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable , readonly, copy) NSArray<NSHTTPCookie *> *cookies; // - (void)setCookie:(NSHTTPCookie *)cookie; // - (void)deleteCookie:(NSHTTPCookie *)cookie; // - (void)removeCookiesSinceDate:(NSDate *)date __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSArray<NSHTTPCookie *> *)cookiesForURL:(NSURL *)URL; // - (void)setCookies:(NSArray<NSHTTPCookie *> *)cookies forURL:(nullable NSURL *)URL mainDocumentURL:(nullable NSURL *)mainDocumentURL; // @property NSHTTPCookieAcceptPolicy cookieAcceptPolicy; // - (NSArray<NSHTTPCookie *> *)sortedCookiesUsingDescriptors:(NSArray<NSSortDescriptor *> *) sortOrder __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSHTTPCookieStorage (NSURLSessionTaskAdditions) // - (void)storeCookies:(NSArray<NSHTTPCookie *> *)cookies forTask:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getCookiesForTask:(NSURLSessionTask *)task completionHandler:(void (^) (NSArray<NSHTTPCookie *> * _Nullable cookies))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSHTTPCookieManagerAcceptPolicyChangedNotification __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSHTTPCookieManagerCookiesChangedNotification __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSIndexPath #define _REWRITER_typedef_NSIndexPath typedef struct objc_object NSIndexPath; typedef struct {} _objc_exc_NSIndexPath; #endif struct NSIndexPath_IMPL { struct NSObject_IMPL NSObject_IVARS; NSUInteger *_indexes; NSUInteger _length; void *_reserved; }; // + (instancetype)indexPathWithIndex:(NSUInteger)index; // + (instancetype)indexPathWithIndexes:(const NSUInteger [_Nullable])indexes length:(NSUInteger)length; // - (instancetype)initWithIndexes:(const NSUInteger [_Nullable])indexes length:(NSUInteger)length __attribute__((objc_designated_initializer)); // - (instancetype)initWithIndex:(NSUInteger)index; // - (NSIndexPath *)indexPathByAddingIndex:(NSUInteger)index; // - (NSIndexPath *)indexPathByRemovingLastIndex; // - (NSUInteger)indexAtPosition:(NSUInteger)position; // @property (readonly) NSUInteger length; // - (void)getIndexes:(NSUInteger *)indexes range:(NSRange)positionRange __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSComparisonResult)compare:(NSIndexPath *)otherObject; /* @end */ // @interface NSIndexPath (NSDeprecated) // - (void)getIndexes:(NSUInteger *)indexes __attribute__((availability(macos,introduced=10.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="getIndexes:range:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="getIndexes:range:"))); /* @end */ #pragma clang assume_nonnull end // @class NSMethodSignature; #ifndef _REWRITER_typedef_NSMethodSignature #define _REWRITER_typedef_NSMethodSignature typedef struct objc_object NSMethodSignature; typedef struct {} _objc_exc_NSMethodSignature; #endif #pragma clang assume_nonnull begin __attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available"))) #ifndef _REWRITER_typedef_NSInvocation #define _REWRITER_typedef_NSInvocation typedef struct objc_object NSInvocation; typedef struct {} _objc_exc_NSInvocation; #endif struct NSInvocation_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig; // @property (readonly, retain) NSMethodSignature *methodSignature; // - (void)retainArguments; // @property (readonly) BOOL argumentsRetained; // @property (nullable, assign) id target; // @property SEL selector; // - (void)getReturnValue:(void *)retLoc; // - (void)setReturnValue:(void *)retLoc; // - (void)getArgument:(void *)argumentLocation atIndex:(NSInteger)idx; // - (void)setArgument:(void *)argumentLocation atIndex:(NSInteger)idx; // - (void)invoke; // - (void)invokeWithTarget:(id)target; /* @end */ #pragma clang assume_nonnull end // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSJSONReadingOptions; enum { NSJSONReadingMutableContainers = (1UL << 0), NSJSONReadingMutableLeaves = (1UL << 1), NSJSONReadingFragmentsAllowed = (1UL << 2), NSJSONReadingAllowFragments __attribute__((availability(macos,introduced=10.7,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) = NSJSONReadingFragmentsAllowed, } __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSJSONWritingOptions; enum { NSJSONWritingPrettyPrinted = (1UL << 0), NSJSONWritingSortedKeys __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = (1UL << 1), NSJSONWritingFragmentsAllowed = (1UL << 2), NSJSONWritingWithoutEscapingSlashes __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = (1UL << 3), } __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSJSONSerialization #define _REWRITER_typedef_NSJSONSerialization typedef struct objc_object NSJSONSerialization; typedef struct {} _objc_exc_NSJSONSerialization; #endif struct NSJSONSerialization_IMPL { struct NSObject_IMPL NSObject_IVARS; void *reserved[6]; }; // + (BOOL)isValidJSONObject:(id)obj; // + (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error; // + (nullable id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError **)error; // + (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(NSJSONWritingOptions)opt error:(NSError **)error; // + (nullable id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadingOptions)opt error:(NSError **)error; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSIndexSet #define _REWRITER_typedef_NSIndexSet typedef struct objc_object NSIndexSet; typedef struct {} _objc_exc_NSIndexSet; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSOrderedSet #define _REWRITER_typedef_NSOrderedSet typedef struct objc_object NSOrderedSet; typedef struct {} _objc_exc_NSOrderedSet; #endif struct NSOrderedSet_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger count; // - (ObjectType)objectAtIndex:(NSUInteger)idx; // - (NSUInteger)indexOfObject:(ObjectType)object; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSOrderedSet<ObjectType> (NSExtendedOrderedSet) // - (void)getObjects:(ObjectType _Nonnull __attribute__((objc_ownership(none))) [_Nullable])objects range:(NSRange)range __attribute__((availability(swift, unavailable, message="Use 'array' instead"))); // - (NSArray<ObjectType> *)objectsAtIndexes:(NSIndexSet *)indexes; // @property (nullable, nonatomic, readonly) ObjectType firstObject; // @property (nullable, nonatomic, readonly) ObjectType lastObject; // - (BOOL)isEqualToOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (BOOL)containsObject:(ObjectType)object; // - (BOOL)intersectsOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (BOOL)intersectsSet:(NSSet<ObjectType> *)set; // - (BOOL)isSubsetOfOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)set; // - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSEnumerator<ObjectType> *)objectEnumerator; // - (NSEnumerator<ObjectType> *)reverseObjectEnumerator; // @property (readonly, copy) NSOrderedSet<ObjectType> *reversedOrderedSet; // @property (readonly, strong) NSArray<ObjectType> *array; // @property (readonly, strong) NSSet<ObjectType> *set; // - (void)enumerateObjectsUsingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block; // - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block; // - (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block; // - (NSUInteger)indexOfObjectPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj, NSUInteger idx, BOOL *stop))predicate; // - (NSUInteger)indexOfObject:(ObjectType)object inSortedRange:(NSRange)range options:(NSBinarySearchingOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmp; // - (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator __attribute__((noescape)))cmptr; // - (NSArray<ObjectType> *)sortedArrayWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr; // @property (readonly, copy) NSString *description; // - (NSString *)descriptionWithLocale:(nullable id)locale; // - (NSString *)descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level; /* @end */ // @interface NSOrderedSet<ObjectType> (NSOrderedSetCreation) // + (instancetype)orderedSet; // + (instancetype)orderedSetWithObject:(ObjectType)object; // + (instancetype)orderedSetWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt; // + (instancetype)orderedSetWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // + (instancetype)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> *)set; // + (instancetype)orderedSetWithOrderedSet:(NSOrderedSet<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag; // + (instancetype)orderedSetWithArray:(NSArray<ObjectType> *)array; // + (instancetype)orderedSetWithArray:(NSArray<ObjectType> *)array range:(NSRange)range copyItems:(BOOL)flag; // + (instancetype)orderedSetWithSet:(NSSet<ObjectType> *)set; // + (instancetype)orderedSetWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag; // - (instancetype)initWithObject:(ObjectType)object; // - (instancetype)initWithObjects:(ObjectType)firstObj, ... __attribute__((sentinel(0,1))); // - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set; // - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set copyItems:(BOOL)flag; // - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag; // - (instancetype)initWithArray:(NSArray<ObjectType> *)array; // - (instancetype)initWithArray:(NSArray<ObjectType> *)set copyItems:(BOOL)flag; // - (instancetype)initWithArray:(NSArray<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag; // - (instancetype)initWithSet:(NSSet<ObjectType> *)set; // - (instancetype)initWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag; /* @end */ __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(swift, unavailable, message="NSOrderedSet diffing methods are not available in Swift, use Collection.difference(from:) instead"))) // @interface NSOrderedSet<ObjectType> (NSOrderedSetDiffing) // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options usingEquivalenceTest:(BOOL (__attribute__((noescape)) ^)(ObjectType obj1, ObjectType obj2))block; // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other withOptions:(NSOrderedCollectionDifferenceCalculationOptions)options; // - (NSOrderedCollectionDifference<ObjectType> *)differenceFromOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (nullable NSOrderedSet<ObjectType> *)orderedSetByApplyingDifference:(NSOrderedCollectionDifference<ObjectType> *)difference; /* @end */ __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMutableOrderedSet #define _REWRITER_typedef_NSMutableOrderedSet typedef struct objc_object NSMutableOrderedSet; typedef struct {} _objc_exc_NSMutableOrderedSet; #endif struct NSMutableOrderedSet_IMPL { struct NSOrderedSet_IMPL NSOrderedSet_IVARS; }; // - (void)insertObject:(ObjectType)object atIndex:(NSUInteger)idx; // - (void)removeObjectAtIndex:(NSUInteger)idx; // - (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(ObjectType)object; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithCapacity:(NSUInteger)numItems __attribute__((objc_designated_initializer)); /* @end */ // @interface NSMutableOrderedSet<ObjectType> (NSExtendedMutableOrderedSet) // - (void)addObject:(ObjectType)object; // - (void)addObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)count; // - (void)addObjectsFromArray:(NSArray<ObjectType> *)array; // - (void)exchangeObjectAtIndex:(NSUInteger)idx1 withObjectAtIndex:(NSUInteger)idx2; // - (void)moveObjectsAtIndexes:(NSIndexSet *)indexes toIndex:(NSUInteger)idx; // - (void)insertObjects:(NSArray<ObjectType> *)objects atIndexes:(NSIndexSet *)indexes; // - (void)setObject:(ObjectType)obj atIndex:(NSUInteger)idx; // - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)replaceObjectsInRange:(NSRange)range withObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)count; // - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray<ObjectType> *)objects; // - (void)removeObjectsInRange:(NSRange)range; // - (void)removeObjectsAtIndexes:(NSIndexSet *)indexes; // - (void)removeAllObjects; // - (void)removeObject:(ObjectType)object; // - (void)removeObjectsInArray:(NSArray<ObjectType> *)array; // - (void)intersectOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (void)minusOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (void)unionOrderedSet:(NSOrderedSet<ObjectType> *)other; // - (void)intersectSet:(NSSet<ObjectType> *)other; // - (void)minusSet:(NSSet<ObjectType> *)other; // - (void)unionSet:(NSSet<ObjectType> *)other; // - (void)sortUsingComparator:(NSComparator __attribute__((noescape)))cmptr; // - (void)sortWithOptions:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr; // - (void)sortRange:(NSRange)range options:(NSSortOptions)opts usingComparator:(NSComparator __attribute__((noescape)))cmptr; /* @end */ // @interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetCreation) // + (instancetype)orderedSetWithCapacity:(NSUInteger)numItems; /* @end */ __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(swift, unavailable, message="NSMutableOrderedSet diffing methods are not available in Swift"))) // @interface NSMutableOrderedSet<ObjectType> (NSMutableOrderedSetDiffing) // - (void)applyDifference:(NSOrderedCollectionDifference<ObjectType> *)difference; /* @end */ #pragma clang assume_nonnull end // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin extern "C" NSExceptionName const NSUndefinedKeyException; typedef NSString * NSKeyValueOperator __attribute__((swift_wrapper(enum))); extern "C" NSKeyValueOperator const NSAverageKeyValueOperator; extern "C" NSKeyValueOperator const NSCountKeyValueOperator; extern "C" NSKeyValueOperator const NSDistinctUnionOfArraysKeyValueOperator; extern "C" NSKeyValueOperator const NSDistinctUnionOfObjectsKeyValueOperator; extern "C" NSKeyValueOperator const NSDistinctUnionOfSetsKeyValueOperator; extern "C" NSKeyValueOperator const NSMaximumKeyValueOperator; extern "C" NSKeyValueOperator const NSMinimumKeyValueOperator; extern "C" NSKeyValueOperator const NSSumKeyValueOperator; extern "C" NSKeyValueOperator const NSUnionOfArraysKeyValueOperator; extern "C" NSKeyValueOperator const NSUnionOfObjectsKeyValueOperator; extern "C" NSKeyValueOperator const NSUnionOfSetsKeyValueOperator; // @interface NSObject(NSKeyValueCoding) @property (class, readonly) BOOL accessInstanceVariablesDirectly; // - (nullable id)valueForKey:(NSString *)key; // - (void)setValue:(nullable id)value forKey:(NSString *)key; // - (BOOL)validateValue:(inout id _Nullable * _Nonnull)ioValue forKey:(NSString *)inKey error:(out NSError **)outError; // - (NSMutableArray *)mutableArrayValueForKey:(NSString *)key; // - (NSMutableOrderedSet *)mutableOrderedSetValueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSMutableSet *)mutableSetValueForKey:(NSString *)key; // - (nullable id)valueForKeyPath:(NSString *)keyPath; // - (void)setValue:(nullable id)value forKeyPath:(NSString *)keyPath; // - (BOOL)validateValue:(inout id _Nullable * _Nonnull)ioValue forKeyPath:(NSString *)inKeyPath error:(out NSError **)outError; // - (NSMutableArray *)mutableArrayValueForKeyPath:(NSString *)keyPath; // - (NSMutableOrderedSet *)mutableOrderedSetValueForKeyPath:(NSString *)keyPath __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSMutableSet *)mutableSetValueForKeyPath:(NSString *)keyPath; // - (nullable id)valueForUndefinedKey:(NSString *)key; // - (void)setValue:(nullable id)value forUndefinedKey:(NSString *)key; // - (void)setNilValueForKey:(NSString *)key; // - (NSDictionary<NSString *, id> *)dictionaryWithValuesForKeys:(NSArray<NSString *> *)keys; // - (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *, id> *)keyedValues; /* @end */ // @interface NSArray<ObjectType>(NSKeyValueCoding) // - (id)valueForKey:(NSString *)key; // - (void)setValue:(nullable id)value forKey:(NSString *)key; /* @end */ // @interface NSDictionary<KeyType, ObjectType>(NSKeyValueCoding) // - (nullable ObjectType)valueForKey:(NSString *)key; /* @end */ // @interface NSMutableDictionary<KeyType, ObjectType>(NSKeyValueCoding) // - (void)setValue:(nullable ObjectType)value forKey:(NSString *)key; /* @end */ // @interface NSOrderedSet<ObjectType>(NSKeyValueCoding) // - (id)valueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setValue:(nullable id)value forKey:(NSString *)key __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSSet<ObjectType>(NSKeyValueCoding) // - (id)valueForKey:(NSString *)key; // - (void)setValue:(nullable id)value forKey:(NSString *)key; /* @end */ #pragma clang assume_nonnull end // @class NSIndexSet; #ifndef _REWRITER_typedef_NSIndexSet #define _REWRITER_typedef_NSIndexSet typedef struct objc_object NSIndexSet; typedef struct {} _objc_exc_NSIndexSet; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSKeyValueObservingOptions; enum { NSKeyValueObservingOptionNew = 0x01, NSKeyValueObservingOptionOld = 0x02, NSKeyValueObservingOptionInitial __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04, NSKeyValueObservingOptionPrior __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x08 }; typedef NSUInteger NSKeyValueChange; enum { NSKeyValueChangeSetting = 1, NSKeyValueChangeInsertion = 2, NSKeyValueChangeRemoval = 3, NSKeyValueChangeReplacement = 4, }; typedef NSUInteger NSKeyValueSetMutationKind; enum { NSKeyValueUnionSetMutation = 1, NSKeyValueMinusSetMutation = 2, NSKeyValueIntersectSetMutation = 3, NSKeyValueSetSetMutation = 4 }; typedef NSString * NSKeyValueChangeKey __attribute__((swift_wrapper(enum))); extern "C" NSKeyValueChangeKey const NSKeyValueChangeKindKey; extern "C" NSKeyValueChangeKey const NSKeyValueChangeNewKey; extern "C" NSKeyValueChangeKey const NSKeyValueChangeOldKey; extern "C" NSKeyValueChangeKey const NSKeyValueChangeIndexesKey; extern "C" NSKeyValueChangeKey const NSKeyValueChangeNotificationIsPriorKey __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @interface NSObject(NSKeyValueObserving) // - (void)observeValueForKeyPath:(nullable NSString *)keyPath ofObject:(nullable id)object change:(nullable NSDictionary<NSKeyValueChangeKey, id> *)change context:(nullable void *)context; /* @end */ // @interface NSObject(NSKeyValueObserverRegistration) // - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context; // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath; /* @end */ // @interface NSArray<ObjectType>(NSKeyValueObserverRegistration) // - (void)addObserver:(NSObject *)observer toObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context; // - (void)removeObserver:(NSObject *)observer fromObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeObserver:(NSObject *)observer fromObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath; // - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context; // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath; /* @end */ // @interface NSOrderedSet<ObjectType>(NSKeyValueObserverRegistration) // - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context; // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath; /* @end */ // @interface NSSet<ObjectType>(NSKeyValueObserverRegistration) // - (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context; // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath; /* @end */ // @interface NSObject(NSKeyValueObserverNotification) // - (void)willChangeValueForKey:(NSString *)key; // - (void)didChangeValueForKey:(NSString *)key; // - (void)willChange:(NSKeyValueChange)changeKind valuesAtIndexes:(NSIndexSet *)indexes forKey:(NSString *)key; // - (void)didChange:(NSKeyValueChange)changeKind valuesAtIndexes:(NSIndexSet *)indexes forKey:(NSString *)key; // - (void)willChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects; // - (void)didChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects; /* @end */ // @interface NSObject(NSKeyValueObservingCustomization) // + (NSSet<NSString *> *)keyPathsForValuesAffectingValueForKey:(NSString *)key __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key; // @property (nullable) void *observationInfo __attribute__((objc_returns_inner_pointer)); /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSPropertyListMutabilityOptions; enum { NSPropertyListImmutable = kCFPropertyListImmutable, NSPropertyListMutableContainers = kCFPropertyListMutableContainers, NSPropertyListMutableContainersAndLeaves = kCFPropertyListMutableContainersAndLeaves }; typedef NSUInteger NSPropertyListFormat; enum { NSPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat, NSPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0, NSPropertyListBinaryFormat_v1_0 = kCFPropertyListBinaryFormat_v1_0 }; typedef NSPropertyListMutabilityOptions NSPropertyListReadOptions; typedef NSUInteger NSPropertyListWriteOptions; #ifndef _REWRITER_typedef_NSPropertyListSerialization #define _REWRITER_typedef_NSPropertyListSerialization typedef struct objc_object NSPropertyListSerialization; typedef struct {} _objc_exc_NSPropertyListSerialization; #endif struct NSPropertyListSerialization_IMPL { struct NSObject_IMPL NSObject_IVARS; void *reserved[6]; }; // + (BOOL)propertyList:(id)plist isValidForFormat:(NSPropertyListFormat)format; // + (nullable NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSInteger)writePropertyList:(id)plist toStream:(NSOutputStream *)stream format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable id)propertyListWithData:(NSData *)data options:(NSPropertyListReadOptions)opt format:(nullable NSPropertyListFormat *)format error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable id)propertyListWithStream:(NSInputStream *)stream options:(NSPropertyListReadOptions)opt format:(nullable NSPropertyListFormat *)format error:(out NSError **)error __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSData *)dataFromPropertyList:(id)plist format:(NSPropertyListFormat)format errorDescription:(out __attribute__((objc_ownership(strong))) NSString * _Nullable * _Nullable)errorString __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use dataWithPropertyList:format:options:error: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use dataWithPropertyList:format:options:error: instead."))); // + (nullable id)propertyListFromData:(NSData *)data mutabilityOption:(NSPropertyListMutabilityOptions)opt format:(nullable NSPropertyListFormat *)format errorDescription:(out __attribute__((objc_ownership(strong))) NSString * _Nullable * _Nullable)errorString __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use propertyListWithData:options:format:error: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use propertyListWithData:options:format:error: instead."))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSMutableData #define _REWRITER_typedef_NSMutableData typedef struct objc_object NSMutableData; typedef struct {} _objc_exc_NSMutableData; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @protocol NSKeyedArchiverDelegate, NSKeyedUnarchiverDelegate; #pragma clang assume_nonnull begin extern "C" NSExceptionName const NSInvalidArchiveOperationException; extern "C" NSExceptionName const NSInvalidUnarchiveOperationException; extern "C" NSString * const NSKeyedArchiveRootObjectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #ifndef _REWRITER_typedef_NSKeyedArchiver #define _REWRITER_typedef_NSKeyedArchiver typedef struct objc_object NSKeyedArchiver; typedef struct {} _objc_exc_NSKeyedArchiver; #endif struct NSKeyedArchiver_IMPL { struct NSCoder_IMPL NSCoder_IVARS; }; // - (instancetype)initRequiringSecureCoding:(BOOL)requiresSecureCoding __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // + (nullable NSData *)archivedDataWithRootObject:(id)object requiringSecureCoding:(BOOL)requiresSecureCoding error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (instancetype)init __attribute__((availability(macosx,introduced=10.12,deprecated=10.14,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(ios,introduced=10.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(watchos,introduced=3.0,deprecated=5.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(tvos,introduced=10.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))); // - (instancetype)initForWritingWithMutableData:(NSMutableData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initRequiringSecureCoding: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initRequiringSecureCoding: instead"))); // + (NSData *)archivedDataWithRootObject:(id)rootObject __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"))); // + (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"))); // @property (nullable, assign) id <NSKeyedArchiverDelegate> delegate; // @property NSPropertyListFormat outputFormat; // @property (readonly, strong) NSData *encodedData __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (void)finishEncoding; // + (void)setClassName:(nullable NSString *)codedName forClass:(Class)cls; // - (void)setClassName:(nullable NSString *)codedName forClass:(Class)cls; // + (nullable NSString *)classNameForClass:(Class)cls; // - (nullable NSString *)classNameForClass:(Class)cls; // - (void)encodeObject:(nullable id)object forKey:(NSString *)key; // - (void)encodeConditionalObject:(nullable id)object forKey:(NSString *)key; // - (void)encodeBool:(BOOL)value forKey:(NSString *)key; // - (void)encodeInt:(int)value forKey:(NSString *)key; // - (void)encodeInt32:(int32_t)value forKey:(NSString *)key; // - (void)encodeInt64:(int64_t)value forKey:(NSString *)key; // - (void)encodeFloat:(float)value forKey:(NSString *)key; // - (void)encodeDouble:(double)value forKey:(NSString *)key; // - (void)encodeBytes:(nullable const uint8_t *)bytes length:(NSUInteger)length forKey:(NSString *)key; // @property (readwrite) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #ifndef _REWRITER_typedef_NSKeyedUnarchiver #define _REWRITER_typedef_NSKeyedUnarchiver typedef struct objc_object NSKeyedUnarchiver; typedef struct {} _objc_exc_NSKeyedUnarchiver; #endif struct NSKeyedUnarchiver_IMPL { struct NSCoder_IMPL NSCoder_IVARS; }; // - (nullable instancetype)initForReadingFromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // + (nullable id)unarchivedObjectOfClass:(Class)cls fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((swift_private)); // + (nullable NSArray *)unarchivedArrayOfObjectsOfClass:(Class)cls fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // + (nullable NSDictionary *)unarchivedDictionaryWithKeysOfClass:(Class)keyCls objectsOfClass:(Class)valueCls fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // + (nullable id)unarchivedObjectOfClasses:(NSSet<Class> *)classes fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // + (nullable NSArray *)unarchivedArrayOfObjectsOfClasses:(NSSet<Class> *)classes fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // + (nullable NSDictionary *)unarchivedDictionaryWithKeysOfClasses:(NSSet<Class> *)keyClasses objectsOfClasses:(NSSet<Class> *)valueClasses fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((swift_private)); // - (instancetype)init __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))); // - (instancetype)initForReadingWithData:(NSData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use -initForReadingFromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use -initForReadingFromData:error: instead"))); // + (nullable id)unarchiveObjectWithData:(NSData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))); // + (nullable id)unarchiveTopLevelObjectWithData:(NSData *)data error:(NSError **)error __attribute__((availability(macosx,introduced=10.11,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(swift, unavailable, message="Use 'unarchiveTopLevelObjectWithData(_:) throws' instead"))); // + (nullable id)unarchiveObjectWithFile:(NSString *)path __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))); // @property (nullable, assign) id <NSKeyedUnarchiverDelegate> delegate; // - (void)finishDecoding; // + (void)setClass:(nullable Class)cls forClassName:(NSString *)codedName; // - (void)setClass:(nullable Class)cls forClassName:(NSString *)codedName; // + (nullable Class)classForClassName:(NSString *)codedName; // - (nullable Class)classForClassName:(NSString *)codedName; // - (BOOL)containsValueForKey:(NSString *)key; // - (nullable id)decodeObjectForKey:(NSString *)key; // - (BOOL)decodeBoolForKey:(NSString *)key; // - (int)decodeIntForKey:(NSString *)key; // - (int32_t)decodeInt32ForKey:(NSString *)key; // - (int64_t)decodeInt64ForKey:(NSString *)key; // - (float)decodeFloatForKey:(NSString *)key; // - (double)decodeDoubleForKey:(NSString *)key; // - (nullable const uint8_t *)decodeBytesForKey:(NSString *)key returnedLength:(nullable NSUInteger *)lengthp __attribute__((objc_returns_inner_pointer)); // @property (readwrite) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readwrite) NSDecodingFailurePolicy decodingFailurePolicy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @protocol NSKeyedArchiverDelegate <NSObject> /* @optional */ // - (nullable id)archiver:(NSKeyedArchiver *)archiver willEncodeObject:(id)object; // - (void)archiver:(NSKeyedArchiver *)archiver didEncodeObject:(nullable id)object; // - (void)archiver:(NSKeyedArchiver *)archiver willReplaceObject:(nullable id)object withObject:(nullable id)newObject; // - (void)archiverWillFinish:(NSKeyedArchiver *)archiver; // - (void)archiverDidFinish:(NSKeyedArchiver *)archiver; /* @end */ // @protocol NSKeyedUnarchiverDelegate <NSObject> /* @optional */ // - (nullable Class)unarchiver:(NSKeyedUnarchiver *)unarchiver cannotDecodeObjectOfClassName:(NSString *)name originalClasses:(NSArray<NSString *> *)classNames; // - (nullable id)unarchiver:(NSKeyedUnarchiver *)unarchiver didDecodeObject:(nullable id) __attribute__((ns_consumed)) object __attribute__((ns_returns_retained)); // - (void)unarchiver:(NSKeyedUnarchiver *)unarchiver willReplaceObject:(id)object withObject:(id)newObject; // - (void)unarchiverWillFinish:(NSKeyedUnarchiver *)unarchiver; // - (void)unarchiverDidFinish:(NSKeyedUnarchiver *)unarchiver; /* @end */ // @interface NSObject (NSKeyedArchiverObjectSubstitution) // @property (nullable, readonly) Class classForKeyedArchiver; // - (nullable id)replacementObjectForKeyedArchiver:(NSKeyedArchiver *)archiver; // + (NSArray<NSString *> *)classFallbacksForKeyedArchiver; /* @end */ // @interface NSObject (NSKeyedUnarchiverObjectSubstitution) // + (Class)classForKeyedUnarchiver; /* @end */ #pragma clang assume_nonnull end // @class NSDate; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #pragma clang assume_nonnull begin // @protocol NSLocking // - (void)lock; // - (void)unlock; /* @end */ #ifndef _REWRITER_typedef_NSLock #define _REWRITER_typedef_NSLock typedef struct objc_object NSLock; typedef struct {} _objc_exc_NSLock; #endif struct NSLock_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (BOOL)tryLock; // - (BOOL)lockBeforeDate:(NSDate *)limit; // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #ifndef _REWRITER_typedef_NSConditionLock #define _REWRITER_typedef_NSConditionLock typedef struct objc_object NSConditionLock; typedef struct {} _objc_exc_NSConditionLock; #endif struct NSConditionLock_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (instancetype)initWithCondition:(NSInteger)condition __attribute__((objc_designated_initializer)); // @property (readonly) NSInteger condition; // - (void)lockWhenCondition:(NSInteger)condition; // - (BOOL)tryLock; // - (BOOL)tryLockWhenCondition:(NSInteger)condition; // - (void)unlockWithCondition:(NSInteger)condition; // - (BOOL)lockBeforeDate:(NSDate *)limit; // - (BOOL)lockWhenCondition:(NSInteger)condition beforeDate:(NSDate *)limit; // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #ifndef _REWRITER_typedef_NSRecursiveLock #define _REWRITER_typedef_NSRecursiveLock typedef struct objc_object NSRecursiveLock; typedef struct {} _objc_exc_NSRecursiveLock; #endif struct NSRecursiveLock_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (BOOL)tryLock; // - (BOOL)lockBeforeDate:(NSDate *)limit; // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSCondition #define _REWRITER_typedef_NSCondition typedef struct objc_object NSCondition; typedef struct {} _objc_exc_NSCondition; #endif struct NSCondition_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (void)wait; // - (BOOL)waitUntilDate:(NSDate *)limit; // - (void)signal; // - (void)broadcast; // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSMapTable #define _REWRITER_typedef_NSMapTable typedef struct objc_object NSMapTable; typedef struct {} _objc_exc_NSMapTable; #endif #pragma clang assume_nonnull begin static const NSPointerFunctionsOptions NSMapTableStrongMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsStrongMemory; static const NSPointerFunctionsOptions NSMapTableZeroingWeakMemory __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = NSPointerFunctionsZeroingWeakMemory; static const NSPointerFunctionsOptions NSMapTableCopyIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsCopyIn; static const NSPointerFunctionsOptions NSMapTableObjectPointerPersonality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsObjectPointerPersonality; static const NSPointerFunctionsOptions NSMapTableWeakMemory __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = NSPointerFunctionsWeakMemory; typedef NSUInteger NSMapTableOptions; __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMapTable #define _REWRITER_typedef_NSMapTable typedef struct objc_object NSMapTable; typedef struct {} _objc_exc_NSMapTable; #endif struct NSMapTable_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer)); // - (instancetype)initWithKeyPointerFunctions:(NSPointerFunctions *)keyFunctions valuePointerFunctions:(NSPointerFunctions *)valueFunctions capacity:(NSUInteger)initialCapacity __attribute__((objc_designated_initializer)); // + (NSMapTable<KeyType, ObjectType> *)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions; // + (id)mapTableWithStrongToStrongObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (id)mapTableWithWeakToStrongObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (id)mapTableWithStrongToWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (id)mapTableWithWeakToWeakObjects __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="GC no longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (NSMapTable<KeyType, ObjectType> *)strongToStrongObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSMapTable<KeyType, ObjectType> *)weakToStrongObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSMapTable<KeyType, ObjectType> *)strongToWeakObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSMapTable<KeyType, ObjectType> *)weakToWeakObjectsMapTable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSPointerFunctions *keyPointerFunctions; // @property (readonly, copy) NSPointerFunctions *valuePointerFunctions; // - (nullable ObjectType)objectForKey:(nullable KeyType)aKey; // - (void)removeObjectForKey:(nullable KeyType)aKey; // - (void)setObject:(nullable ObjectType)anObject forKey:(nullable KeyType)aKey; // @property (readonly) NSUInteger count; // - (NSEnumerator<KeyType> *)keyEnumerator; // - (nullable NSEnumerator<ObjectType> *)objectEnumerator; // - (void)removeAllObjects; // - (NSDictionary<KeyType, ObjectType> *)dictionaryRepresentation; /* @end */ typedef struct {NSUInteger _pi; NSUInteger _si; void * _Nullable _bs;} NSMapEnumerator; extern "C" void NSFreeMapTable(NSMapTable *table); extern "C" void NSResetMapTable(NSMapTable *table); extern "C" BOOL NSCompareMapTables(NSMapTable *table1, NSMapTable *table2); extern "C" NSMapTable *NSCopyMapTableWithZone(NSMapTable *table, NSZone * _Nullable zone); extern "C" BOOL NSMapMember(NSMapTable *table, const void *key, void * _Nullable * _Nullable originalKey, void * _Nullable * _Nullable value); extern "C" void * _Nullable NSMapGet(NSMapTable *table, const void * _Nullable key); extern "C" void NSMapInsert(NSMapTable *table, const void * _Nullable key, const void * _Nullable value); extern "C" void NSMapInsertKnownAbsent(NSMapTable *table, const void * _Nullable key, const void * _Nullable value); extern "C" void * _Nullable NSMapInsertIfAbsent(NSMapTable *table, const void * _Nullable key, const void * _Nullable value); extern "C" void NSMapRemove(NSMapTable *table, const void * _Nullable key); extern "C" NSMapEnumerator NSEnumerateMapTable(NSMapTable *table); extern "C" BOOL NSNextMapEnumeratorPair(NSMapEnumerator *enumerator, void * _Nullable * _Nullable key, void * _Nullable * _Nullable value); extern "C" void NSEndMapTableEnumeration(NSMapEnumerator *enumerator); extern "C" NSUInteger NSCountMapTable(NSMapTable *table); extern "C" NSString *NSStringFromMapTable(NSMapTable *table); extern "C" NSArray *NSAllMapTableKeys(NSMapTable *table); extern "C" NSArray *NSAllMapTableValues(NSMapTable *table); typedef struct { NSUInteger (* _Nullable hash)(NSMapTable *table, const void *); BOOL (* _Nullable isEqual)(NSMapTable *table, const void *, const void *); void (* _Nullable retain)(NSMapTable *table, const void *); void (* _Nullable release)(NSMapTable *table, void *); NSString * _Nullable (* _Nullable describe)(NSMapTable *table, const void *); const void * _Nullable notAKeyMarker; } NSMapTableKeyCallBacks; typedef struct { void (* _Nullable retain)(NSMapTable *table, const void *); void (* _Nullable release)(NSMapTable *table, void *); NSString * _Nullable(* _Nullable describe)(NSMapTable *table, const void *); } NSMapTableValueCallBacks; extern "C" NSMapTable *NSCreateMapTableWithZone(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, NSUInteger capacity, NSZone * _Nullable zone); extern "C" NSMapTable *NSCreateMapTable(NSMapTableKeyCallBacks keyCallBacks, NSMapTableValueCallBacks valueCallBacks, NSUInteger capacity); extern "C" const NSMapTableKeyCallBacks NSIntegerMapKeyCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" const NSMapTableKeyCallBacks NSNonOwnedPointerMapKeyCallBacks; extern "C" const NSMapTableKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks; extern "C" const NSMapTableKeyCallBacks NSNonRetainedObjectMapKeyCallBacks; extern "C" const NSMapTableKeyCallBacks NSObjectMapKeyCallBacks; extern "C" const NSMapTableKeyCallBacks NSOwnedPointerMapKeyCallBacks; extern "C" const NSMapTableKeyCallBacks NSIntMapKeyCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); extern "C" const NSMapTableValueCallBacks NSIntegerMapValueCallBacks __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" const NSMapTableValueCallBacks NSNonOwnedPointerMapValueCallBacks; extern "C" const NSMapTableValueCallBacks NSObjectMapValueCallBacks; extern "C" const NSMapTableValueCallBacks NSNonRetainedObjectMapValueCallBacks; extern "C" const NSMapTableValueCallBacks NSOwnedPointerMapValueCallBacks; extern "C" const NSMapTableValueCallBacks NSIntMapValueCallBacks __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available"))) #ifndef _REWRITER_typedef_NSMethodSignature #define _REWRITER_typedef_NSMethodSignature typedef struct objc_object NSMethodSignature; typedef struct {} _objc_exc_NSMethodSignature; #endif struct NSMethodSignature_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (nullable NSMethodSignature *)signatureWithObjCTypes:(const char *)types; // @property (readonly) NSUInteger numberOfArguments; // - (const char *)getArgumentTypeAtIndex:(NSUInteger)idx __attribute__((objc_returns_inner_pointer)); // @property (readonly) NSUInteger frameLength; // - (BOOL)isOneway; // @property (readonly) const char *methodReturnType __attribute__((objc_returns_inner_pointer)); // @property (readonly) NSUInteger methodReturnLength; /* @end */ #pragma clang assume_nonnull end // @class NSNotification; #ifndef _REWRITER_typedef_NSNotification #define _REWRITER_typedef_NSNotification typedef struct objc_object NSNotification; typedef struct {} _objc_exc_NSNotification; #endif #ifndef _REWRITER_typedef_NSNotificationCenter #define _REWRITER_typedef_NSNotificationCenter typedef struct objc_object NSNotificationCenter; typedef struct {} _objc_exc_NSNotificationCenter; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSPostingStyle; enum { NSPostWhenIdle = 1, NSPostASAP = 2, NSPostNow = 3 }; typedef NSUInteger NSNotificationCoalescing; enum { NSNotificationNoCoalescing = 0, NSNotificationCoalescingOnName = 1, NSNotificationCoalescingOnSender = 2 }; #ifndef _REWRITER_typedef_NSNotificationQueue #define _REWRITER_typedef_NSNotificationQueue typedef struct objc_object NSNotificationQueue; typedef struct {} _objc_exc_NSNotificationQueue; #endif struct NSNotificationQueue_IMPL { struct NSObject_IMPL NSObject_IVARS; id _notificationCenter; id _asapQueue; id _asapObs; id _idleQueue; id _idleObs; }; @property (class, readonly, strong) NSNotificationQueue *defaultQueue; // - (instancetype)initWithNotificationCenter:(NSNotificationCenter *)notificationCenter __attribute__((objc_designated_initializer)); // - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle; // - (void)enqueueNotification:(NSNotification *)notification postingStyle:(NSPostingStyle)postingStyle coalesceMask:(NSNotificationCoalescing)coalesceMask forModes:(nullable NSArray<NSRunLoopMode> *)modes; // - (void)dequeueNotificationsMatching:(NSNotification *)notification coalesceMask:(NSUInteger)coalesceMask; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSNull #define _REWRITER_typedef_NSNull typedef struct objc_object NSNull; typedef struct {} _objc_exc_NSNull; #endif struct NSNull_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSNull *)null; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSOperation #define _REWRITER_typedef_NSOperation typedef struct objc_object NSOperation; typedef struct {} _objc_exc_NSOperation; #endif struct NSOperation_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)start; // - (void)main; // @property (readonly, getter=isCancelled) BOOL cancelled; // - (void)cancel; // @property (readonly, getter=isExecuting) BOOL executing; // @property (readonly, getter=isFinished) BOOL finished; // @property (readonly, getter=isConcurrent) BOOL concurrent; // @property (readonly, getter=isAsynchronous) BOOL asynchronous __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, getter=isReady) BOOL ready; // - (void)addDependency:(NSOperation *)op; // - (void)removeDependency:(NSOperation *)op; // @property (readonly, copy) NSArray<NSOperation *> *dependencies; typedef NSInteger NSOperationQueuePriority; enum { NSOperationQueuePriorityVeryLow = -8L, NSOperationQueuePriorityLow = -4L, NSOperationQueuePriorityNormal = 0, NSOperationQueuePriorityHigh = 4, NSOperationQueuePriorityVeryHigh = 8 }; // @property NSOperationQueuePriority queuePriority; // @property (nullable, copy) void (^completionBlock)(void) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)waitUntilFinished __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property double threadPriority __attribute__((availability(macos,introduced=10.6,deprecated=10.10,message="Not supported"))) __attribute__((availability(ios,introduced=4.0,deprecated=8.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); // @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSBlockOperation #define _REWRITER_typedef_NSBlockOperation typedef struct objc_object NSBlockOperation; typedef struct {} _objc_exc_NSBlockOperation; #endif struct NSBlockOperation_IMPL { struct NSOperation_IMPL NSOperation_IVARS; }; // + (instancetype)blockOperationWithBlock:(void (^)(void))block; // - (void)addExecutionBlock:(void (^)(void))block; // @property (readonly, copy) NSArray<void (^)(void)> *executionBlocks; /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available"))) #ifndef _REWRITER_typedef_NSInvocationOperation #define _REWRITER_typedef_NSInvocationOperation typedef struct objc_object NSInvocationOperation; typedef struct {} _objc_exc_NSInvocationOperation; #endif struct NSInvocationOperation_IMPL { struct NSOperation_IMPL NSOperation_IVARS; }; // - (nullable instancetype)initWithTarget:(id)target selector:(SEL)sel object:(nullable id)arg; // - (instancetype)initWithInvocation:(NSInvocation *)inv __attribute__((objc_designated_initializer)); // @property (readonly, retain) NSInvocation *invocation; // @property (nullable, readonly, retain) id result; /* @end */ extern "C" NSExceptionName const NSInvocationOperationVoidResultException __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSExceptionName const NSInvocationOperationCancelledException __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); static const NSInteger NSOperationQueueDefaultMaxConcurrentOperationCount = -1; __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif struct NSOperationQueue_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, strong) NSProgress *progress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (void)addOperation:(NSOperation *)op; // - (void)addOperations:(NSArray<NSOperation *> *)ops waitUntilFinished:(BOOL)wait __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)addOperationWithBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)addBarrierBlock:(void (^)(void))barrier __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property NSInteger maxConcurrentOperationCount; // @property (getter=isSuspended) BOOL suspended; // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, assign ) dispatch_queue_t underlyingQueue __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)cancelAllOperations; // - (void)waitUntilAllOperationsAreFinished; @property (class, readonly, strong, nullable) NSOperationQueue *currentQueue __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, strong) NSOperationQueue *mainQueue __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSOperationQueue (NSDeprecated) // @property (readonly, copy) NSArray<__kindof NSOperation *> *operations __attribute__((availability(macos,introduced=10.5,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"))); // @property (readonly) NSUInteger operationCount __attribute__((availability(macos,introduced=10.6,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(ios,introduced=4.0,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="progress.completedUnitCount"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="progress.completedUnitCount"))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSOrthography #define _REWRITER_typedef_NSOrthography typedef struct objc_object NSOrthography; typedef struct {} _objc_exc_NSOrthography; #endif struct NSOrthography_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSString *dominantScript; // @property (readonly, copy) NSDictionary<NSString *, NSArray<NSString *> *> *languageMap; // - (instancetype)initWithDominantScript:(NSString *)script languageMap:(NSDictionary<NSString *, NSArray<NSString *> *> *)map __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ // @interface NSOrthography (NSOrthographyExtended) // - (nullable NSArray<NSString *> *)languagesForScript:(NSString *)script __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSString *)dominantLanguageForScript:(NSString *)script __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *dominantLanguage __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *allScripts __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray<NSString *> *allLanguages __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (instancetype)defaultOrthographyForLanguage:(NSString *)language __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface NSOrthography (NSOrthographyCreation) // + (instancetype)orthographyWithDominantScript:(NSString *)script languageMap:(NSDictionary<NSString *, NSArray<NSString *> *> *)map __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPointerArray #define _REWRITER_typedef_NSPointerArray typedef struct objc_object NSPointerArray; typedef struct {} _objc_exc_NSPointerArray; #endif struct NSPointerArray_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithOptions:(NSPointerFunctionsOptions)options __attribute__((objc_designated_initializer)); // - (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions __attribute__((objc_designated_initializer)); // + (NSPointerArray *)pointerArrayWithOptions:(NSPointerFunctionsOptions)options; // + (NSPointerArray *)pointerArrayWithPointerFunctions:(NSPointerFunctions *)functions; // @property (readonly, copy) NSPointerFunctions *pointerFunctions; // - (nullable void *)pointerAtIndex:(NSUInteger)index; // - (void)addPointer:(nullable void *)pointer; // - (void)removePointerAtIndex:(NSUInteger)index; // - (void)insertPointer:(nullable void *)item atIndex:(NSUInteger)index; // - (void)replacePointerAtIndex:(NSUInteger)index withPointer:(nullable void *)item; // - (void)compact; // @property NSUInteger count; /* @end */ // @interface NSPointerArray (NSPointerArrayConveniences) // + (NSPointerArray *)strongObjectsPointerArray __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSPointerArray *)weakObjectsPointerArray __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray *allObjects; /* @end */ #pragma clang assume_nonnull end typedef int NSSocketNativeHandle; // @class NSRunLoop; #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif #ifndef _REWRITER_typedef_NSMutableArray #define _REWRITER_typedef_NSMutableArray typedef struct objc_object NSMutableArray; typedef struct {} _objc_exc_NSMutableArray; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif // @class NSConnection; #ifndef _REWRITER_typedef_NSConnection #define _REWRITER_typedef_NSConnection typedef struct objc_object NSConnection; typedef struct {} _objc_exc_NSConnection; #endif #ifndef _REWRITER_typedef_NSPortMessage #define _REWRITER_typedef_NSPortMessage typedef struct objc_object NSPortMessage; typedef struct {} _objc_exc_NSPortMessage; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @protocol NSPortDelegate, NSMachPortDelegate; #pragma clang assume_nonnull begin extern "C" NSNotificationName const NSPortDidBecomeInvalidNotification; #ifndef _REWRITER_typedef_NSPort #define _REWRITER_typedef_NSPort typedef struct objc_object NSPort; typedef struct {} _objc_exc_NSPort; #endif struct NSPort_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSPort *)port; // - (void)invalidate; // @property (readonly, getter=isValid) BOOL valid; // - (void)setDelegate:(nullable id <NSPortDelegate>)anObject; // - (nullable id <NSPortDelegate>)delegate; // - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode; // @property (readonly) NSUInteger reservedSpaceLength; // - (BOOL)sendBeforeDate:(NSDate *)limitDate components:(nullable NSMutableArray *)components from:(nullable NSPort *) receivePort reserved:(NSUInteger)headerSpaceReserved; // - (BOOL)sendBeforeDate:(NSDate *)limitDate msgid:(NSUInteger)msgID components:(nullable NSMutableArray *)components from:(nullable NSPort *)receivePort reserved:(NSUInteger)headerSpaceReserved; /* @end */ // @protocol NSPortDelegate <NSObject> /* @optional */ // - (void)handlePortMessage:(NSPortMessage *)message; /* @end */ __attribute__((objc_arc_weak_reference_unavailable)) #ifndef _REWRITER_typedef_NSMachPort #define _REWRITER_typedef_NSMachPort typedef struct objc_object NSMachPort; typedef struct {} _objc_exc_NSMachPort; #endif struct NSMachPort_IMPL { struct NSPort_IMPL NSPort_IVARS; id _delegate; NSUInteger _flags; uint32_t _machPort; NSUInteger _reserved; }; // + (NSPort *)portWithMachPort:(uint32_t)machPort; // - (instancetype)initWithMachPort:(uint32_t)machPort __attribute__((objc_designated_initializer)); // - (void)setDelegate:(nullable id <NSMachPortDelegate>)anObject; // - (nullable id <NSMachPortDelegate>)delegate; typedef NSUInteger NSMachPortOptions; enum { NSMachPortDeallocateNone = 0, NSMachPortDeallocateSendRight = (1UL << 0), NSMachPortDeallocateReceiveRight = (1UL << 1) } __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSPort *)portWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithMachPort:(uint32_t)machPort options:(NSMachPortOptions)f __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // @property (readonly) uint32_t machPort; // - (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)runLoop forMode:(NSRunLoopMode)mode; /* @end */ // @protocol NSMachPortDelegate <NSPortDelegate> /* @optional */ // - (void)handleMachMessage:(void *)msg; /* @end */ __attribute__((objc_arc_weak_reference_unavailable)) #ifndef _REWRITER_typedef_NSMessagePort #define _REWRITER_typedef_NSMessagePort typedef struct objc_object NSMessagePort; typedef struct {} _objc_exc_NSMessagePort; #endif struct NSMessagePort_IMPL { struct NSPort_IMPL NSPort_IVARS; void *_port; id _delegate; }; /* @end */ #ifndef _REWRITER_typedef_NSSocketPort #define _REWRITER_typedef_NSSocketPort typedef struct objc_object NSSocketPort; typedef struct {} _objc_exc_NSSocketPort; #endif struct NSSocketPort_IMPL { struct NSPort_IMPL NSPort_IVARS; void *_receiver; id _connectors; void *_loops; void *_data; id _signature; id _delegate; id _lock; NSUInteger _maxSize; NSUInteger _useCount; NSUInteger _reserved; }; // - (instancetype)init; // - (nullable instancetype)initWithTCPPort:(unsigned short)port; // - (nullable instancetype)initWithProtocolFamily:(int)family socketType:(int)type protocol:(int)protocol address:(NSData *)address __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithProtocolFamily:(int)family socketType:(int)type protocol:(int)protocol socket:(NSSocketNativeHandle)sock __attribute__((objc_designated_initializer)); // - (nullable instancetype)initRemoteWithTCPPort:(unsigned short)port host:(nullable NSString *)hostName; // - (instancetype)initRemoteWithProtocolFamily:(int)family socketType:(int)type protocol:(int)protocol address:(NSData *)address __attribute__((objc_designated_initializer)); // @property (readonly) int protocolFamily; // @property (readonly) int socketType; // @property (readonly) int protocol; // @property (readonly, copy) NSData *address; // @property (readonly) NSSocketNativeHandle socket; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin enum { NSWindowsNTOperatingSystem = 1, NSWindows95OperatingSystem, NSSolarisOperatingSystem, NSHPUXOperatingSystem, NSMACHOperatingSystem, NSSunOSOperatingSystem, NSOSF1OperatingSystem } __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); typedef struct { NSInteger majorVersion; NSInteger minorVersion; NSInteger patchVersion; } NSOperatingSystemVersion; // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSProcessInfo #define _REWRITER_typedef_NSProcessInfo typedef struct objc_object NSProcessInfo; typedef struct {} _objc_exc_NSProcessInfo; #endif struct NSProcessInfo_IMPL { struct NSObject_IMPL NSObject_IVARS; NSDictionary *environment; NSArray *arguments; NSString *hostName; NSString *name; NSInteger automaticTerminationOptOutCounter; }; @property (class, readonly, strong) NSProcessInfo *processInfo; // @property (readonly, copy) NSDictionary<NSString *, NSString *> *environment; // @property (readonly, copy) NSArray<NSString *> *arguments; // @property (readonly, copy) NSString *hostName; // @property (copy) NSString *processName; // @property (readonly) int processIdentifier; // @property (readonly, copy) NSString *globallyUniqueString; // - (NSUInteger)operatingSystem __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="-operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead"))); // - (NSString *)operatingSystemName __attribute__((availability(macos,introduced=10.0,deprecated=10.10,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="-operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead"))); // @property (readonly, copy) NSString *operatingSystemVersionString; // @property (readonly) NSOperatingSystemVersion operatingSystemVersion __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSUInteger processorCount __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSUInteger activeProcessorCount __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) unsigned long long physicalMemory __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL) isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSTimeInterval systemUptime __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)disableSuddenTermination __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)enableSuddenTermination __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)disableAutomaticTermination:(NSString *)reason __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)enableAutomaticTermination:(NSString *)reason __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property BOOL automaticTerminationSupportEnabled __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ typedef uint64_t NSActivityOptions; enum { NSActivityIdleDisplaySleepDisabled = (1ULL << 40), NSActivityIdleSystemSleepDisabled = (1ULL << 20), NSActivitySuddenTerminationDisabled = (1ULL << 14), NSActivityAutomaticTerminationDisabled = (1ULL << 15), NSActivityUserInitiated = (0x00FFFFFFULL | NSActivityIdleSystemSleepDisabled), NSActivityUserInitiatedAllowingIdleSystemSleep = (NSActivityUserInitiated & ~NSActivityIdleSystemSleepDisabled), NSActivityBackground = 0x000000FFULL, NSActivityLatencyCritical = 0xFF00000000ULL, } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @interface NSProcessInfo (NSProcessInfoActivity) // - (id <NSObject>)beginActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)endActivity:(id <NSObject>)activity __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)performActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason usingBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)performExpiringActivityWithReason:(NSString *)reason usingBlock:(void(^)(BOOL expired))block __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); /* @end */ // @interface NSProcessInfo (NSUserInformation) // @property (readonly, copy) NSString *userName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, copy) NSString *fullUserName __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ typedef NSInteger NSProcessInfoThermalState; enum { NSProcessInfoThermalStateNominal, NSProcessInfoThermalStateFair, NSProcessInfoThermalStateSerious, NSProcessInfoThermalStateCritical } __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @interface NSProcessInfo (NSProcessInfoThermalState) // @property (readonly) NSProcessInfoThermalState thermalState __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface NSProcessInfo (NSProcessInfoPowerState) // @property (readonly, getter=isLowPowerModeEnabled) BOOL lowPowerModeEnabled __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); /* @end */ extern "C" NSNotificationName const NSProcessInfoThermalStateDidChangeNotification __attribute__((availability(macosx,introduced=10.10.3))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" NSNotificationName const NSProcessInfoPowerStateDidChangeNotification __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); // @interface NSProcessInfo (NSProcessInfoPlatform) // @property (readonly, getter=isMacCatalystApp) BOOL macCatalystApp __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly, getter=isiOSAppOnMac) BOOL iOSAppOnMac __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); /* @end */ #pragma clang assume_nonnull end // @class NSMethodSignature; #ifndef _REWRITER_typedef_NSMethodSignature #define _REWRITER_typedef_NSMethodSignature typedef struct objc_object NSMethodSignature; typedef struct {} _objc_exc_NSMethodSignature; #endif #ifndef _REWRITER_typedef_NSInvocation #define _REWRITER_typedef_NSInvocation typedef struct objc_object NSInvocation; typedef struct {} _objc_exc_NSInvocation; #endif #pragma clang assume_nonnull begin __attribute__((objc_root_class)) #ifndef _REWRITER_typedef_NSProxy #define _REWRITER_typedef_NSProxy typedef struct objc_object NSProxy; typedef struct {} _objc_exc_NSProxy; #endif struct NSProxy_IMPL { Class isa; }; // + (id)alloc; // + (id)allocWithZone:(nullable NSZone *)zone ; // + (Class)class; // - (void)forwardInvocation:(NSInvocation *)invocation; // - (nullable NSMethodSignature *)methodSignatureForSelector:(SEL)sel __attribute__((availability(swift, unavailable, message="NSInvocation and related APIs not available"))); // - (void)dealloc; // - (void)finalize; // @property (readonly, copy) NSString *description; // @property (readonly, copy) NSString *debugDescription; // + (BOOL)respondsToSelector:(SEL)aSelector; // - (BOOL)allowsWeakReference __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (BOOL)retainWeakReference __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif #ifndef _REWRITER_typedef_NSOrthography #define _REWRITER_typedef_NSOrthography typedef struct objc_object NSOrthography; typedef struct {} _objc_exc_NSOrthography; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSRegularExpression #define _REWRITER_typedef_NSRegularExpression typedef struct objc_object NSRegularExpression; typedef struct {} _objc_exc_NSRegularExpression; #endif #pragma clang assume_nonnull begin typedef uint64_t NSTextCheckingType; enum { NSTextCheckingTypeOrthography = 1ULL << 0, NSTextCheckingTypeSpelling = 1ULL << 1, NSTextCheckingTypeGrammar = 1ULL << 2, NSTextCheckingTypeDate = 1ULL << 3, NSTextCheckingTypeAddress = 1ULL << 4, NSTextCheckingTypeLink = 1ULL << 5, NSTextCheckingTypeQuote = 1ULL << 6, NSTextCheckingTypeDash = 1ULL << 7, NSTextCheckingTypeReplacement = 1ULL << 8, NSTextCheckingTypeCorrection = 1ULL << 9, NSTextCheckingTypeRegularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 10, NSTextCheckingTypePhoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 11, NSTextCheckingTypeTransitInformation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1ULL << 12 }; typedef uint64_t NSTextCheckingTypes; enum { NSTextCheckingAllSystemTypes = 0xffffffffULL, NSTextCheckingAllCustomTypes = 0xffffffffULL << 32, NSTextCheckingAllTypes = (NSTextCheckingAllSystemTypes | NSTextCheckingAllCustomTypes) }; typedef NSString *NSTextCheckingKey __attribute__((swift_wrapper(struct))); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSTextCheckingResult #define _REWRITER_typedef_NSTextCheckingResult typedef struct objc_object NSTextCheckingResult; typedef struct {} _objc_exc_NSTextCheckingResult; #endif struct NSTextCheckingResult_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSTextCheckingType resultType; // @property (readonly) NSRange range; /* @end */ // @interface NSTextCheckingResult (NSTextCheckingResultOptional) // @property (nullable, readonly, copy) NSOrthography *orthography; // @property (nullable, readonly, copy) NSArray<NSDictionary<NSString *, id> *> *grammarDetails; // @property (nullable, readonly, copy) NSDate *date; // @property (nullable, readonly, copy) NSTimeZone *timeZone; // @property (readonly) NSTimeInterval duration; // @property (nullable, readonly, copy) NSDictionary<NSTextCheckingKey, NSString *> *components __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURL *URL; // @property (nullable, readonly, copy) NSString *replacementString; // @property (nullable, readonly, copy) NSArray<NSString *> *alternativeStrings __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSRegularExpression *regularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *phoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSUInteger numberOfRanges __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)rangeAtIndex:(NSUInteger)idx __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSRange)rangeWithName:(NSString *)name __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSTextCheckingResult *)resultByAdjustingRangesWithOffset:(NSInteger)offset __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSDictionary<NSTextCheckingKey, NSString *> *addressComponents; /* @end */ extern "C" NSTextCheckingKey const NSTextCheckingNameKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingJobTitleKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingOrganizationKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingStreetKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingCityKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingStateKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingZIPKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingCountryKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingPhoneKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingAirlineKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSTextCheckingKey const NSTextCheckingFlightKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @interface NSTextCheckingResult (NSTextCheckingResultCreation) // + (NSTextCheckingResult *)orthographyCheckingResultWithRange:(NSRange)range orthography:(NSOrthography *)orthography; // + (NSTextCheckingResult *)spellCheckingResultWithRange:(NSRange)range; // + (NSTextCheckingResult *)grammarCheckingResultWithRange:(NSRange)range details:(NSArray<NSDictionary<NSString *, id> *> *)details; // + (NSTextCheckingResult *)dateCheckingResultWithRange:(NSRange)range date:(NSDate *)date; // + (NSTextCheckingResult *)dateCheckingResultWithRange:(NSRange)range date:(NSDate *)date timeZone:(NSTimeZone *)timeZone duration:(NSTimeInterval)duration; // + (NSTextCheckingResult *)addressCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSTextCheckingKey, NSString *> *)components; // + (NSTextCheckingResult *)linkCheckingResultWithRange:(NSRange)range URL:(NSURL *)url; // + (NSTextCheckingResult *)quoteCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString; // + (NSTextCheckingResult *)dashCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString; // + (NSTextCheckingResult *)replacementCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString; // + (NSTextCheckingResult *)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString; // + (NSTextCheckingResult *)correctionCheckingResultWithRange:(NSRange)range replacementString:(NSString *)replacementString alternativeStrings:(NSArray<NSString *> *)alternativeStrings __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSTextCheckingResult *)regularExpressionCheckingResultWithRanges:(NSRangePointer)ranges count:(NSUInteger)count regularExpression:(NSRegularExpression *)regularExpression __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSTextCheckingResult *)phoneNumberCheckingResultWithRange:(NSRange)range phoneNumber:(NSString *)phoneNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSTextCheckingResult *)transitInformationCheckingResultWithRange:(NSRange)range components:(NSDictionary<NSTextCheckingKey, NSString *> *)components __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSRegularExpressionOptions; enum { NSRegularExpressionCaseInsensitive = 1 << 0, NSRegularExpressionAllowCommentsAndWhitespace = 1 << 1, NSRegularExpressionIgnoreMetacharacters = 1 << 2, NSRegularExpressionDotMatchesLineSeparators = 1 << 3, NSRegularExpressionAnchorsMatchLines = 1 << 4, NSRegularExpressionUseUnixLineSeparators = 1 << 5, NSRegularExpressionUseUnicodeWordBoundaries = 1 << 6 }; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSRegularExpression #define _REWRITER_typedef_NSRegularExpression typedef struct objc_object NSRegularExpression; typedef struct {} _objc_exc_NSRegularExpression; #endif struct NSRegularExpression_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_pattern; NSUInteger _options; void *_internal; id _reserved1; int32_t _checkout; int32_t _reserved2; }; // + (nullable NSRegularExpression *)regularExpressionWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error; // - (nullable instancetype)initWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error __attribute__((objc_designated_initializer)); // @property (readonly, copy) NSString *pattern; // @property (readonly) NSRegularExpressionOptions options; // @property (readonly) NSUInteger numberOfCaptureGroups; // + (NSString *)escapedPatternForString:(NSString *)string; /* @end */ typedef NSUInteger NSMatchingOptions; enum { NSMatchingReportProgress = 1 << 0, NSMatchingReportCompletion = 1 << 1, NSMatchingAnchored = 1 << 2, NSMatchingWithTransparentBounds = 1 << 3, NSMatchingWithoutAnchoringBounds = 1 << 4 }; typedef NSUInteger NSMatchingFlags; enum { NSMatchingProgress = 1 << 0, NSMatchingCompleted = 1 << 1, NSMatchingHitEnd = 1 << 2, NSMatchingRequiredEnd = 1 << 3, NSMatchingInternalError = 1 << 4 }; // @interface NSRegularExpression (NSMatching) // - (void)enumerateMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range usingBlock:(void (__attribute__((noescape)) ^)(NSTextCheckingResult * _Nullable result, NSMatchingFlags flags, BOOL *stop))block; // - (NSArray<NSTextCheckingResult *> *)matchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range; // - (NSUInteger)numberOfMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range; // - (nullable NSTextCheckingResult *)firstMatchInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range; // - (NSRange)rangeOfFirstMatchInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range; /* @end */ // @interface NSRegularExpression (NSReplacement) // - (NSString *)stringByReplacingMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range withTemplate:(NSString *)templ; // - (NSUInteger)replaceMatchesInString:(NSMutableString *)string options:(NSMatchingOptions)options range:(NSRange)range withTemplate:(NSString *)templ; // - (NSString *)replacementStringForResult:(NSTextCheckingResult *)result inString:(NSString *)string offset:(NSInteger)offset template:(NSString *)templ; // + (NSString *)escapedTemplateForString:(NSString *)string; /* @end */ __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSDataDetector #define _REWRITER_typedef_NSDataDetector typedef struct objc_object NSDataDetector; typedef struct {} _objc_exc_NSDataDetector; #endif struct NSDataDetector_IMPL { struct NSRegularExpression_IMPL NSRegularExpression_IVARS; NSTextCheckingTypes _types; }; // + (nullable NSDataDetector *)dataDetectorWithTypes:(NSTextCheckingTypes)checkingTypes error:(NSError **)error; // - (nullable instancetype)initWithTypes:(NSTextCheckingTypes)checkingTypes error:(NSError **)error __attribute__((objc_designated_initializer)); // @property (readonly) NSTextCheckingTypes checkingTypes; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSSortDescriptor #define _REWRITER_typedef_NSSortDescriptor typedef struct objc_object NSSortDescriptor; typedef struct {} _objc_exc_NSSortDescriptor; #endif struct NSSortDescriptor_IMPL { struct NSObject_IMPL NSObject_IVARS; NSUInteger _sortDescriptorFlags; NSString *_key; SEL _selector; id _selectorOrBlock; }; // + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending selector:(nullable SEL)selector __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending; // - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending selector:(nullable SEL)selector; // - (nullable instancetype)initWithCoder:(NSCoder *)coder; // @property (nullable, readonly, copy) NSString *key; // @property (readonly) BOOL ascending; // @property (nullable, readonly) SEL selector; // - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (instancetype)sortDescriptorWithKey:(nullable NSString *)key ascending:(BOOL)ascending comparator:(NSComparator)cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithKey:(nullable NSString *)key ascending:(BOOL)ascending comparator:(NSComparator)cmptr __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSComparator comparator __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSComparisonResult)compareObject:(id)object1 toObject:(id)object2; // @property (readonly, retain) id reversedSortDescriptor; /* @end */ // @interface NSSet<ObjectType> (NSSortDescriptorSorting) // - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSArray<ObjectType> (NSSortDescriptorSorting) // - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors; /* @end */ // @interface NSMutableArray<ObjectType> (NSSortDescriptorSorting) // - (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors; /* @end */ // @interface NSOrderedSet<ObjectType> (NSKeyValueSorting) // - (NSArray<ObjectType> *)sortedArrayUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableOrderedSet<ObjectType> (NSKeyValueSorting) // - (void)sortUsingDescriptors:(NSArray<NSSortDescriptor *> *)sortDescriptors __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSHost #define _REWRITER_typedef_NSHost typedef struct objc_object NSHost; typedef struct {} _objc_exc_NSHost; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @protocol NSStreamDelegate; typedef NSString * NSStreamPropertyKey __attribute__((swift_wrapper(struct))); #pragma clang assume_nonnull begin typedef NSUInteger NSStreamStatus; enum { NSStreamStatusNotOpen = 0, NSStreamStatusOpening = 1, NSStreamStatusOpen = 2, NSStreamStatusReading = 3, NSStreamStatusWriting = 4, NSStreamStatusAtEnd = 5, NSStreamStatusClosed = 6, NSStreamStatusError = 7 }; typedef NSUInteger NSStreamEvent; enum { NSStreamEventNone = 0, NSStreamEventOpenCompleted = 1UL << 0, NSStreamEventHasBytesAvailable = 1UL << 1, NSStreamEventHasSpaceAvailable = 1UL << 2, NSStreamEventErrorOccurred = 1UL << 3, NSStreamEventEndEncountered = 1UL << 4 }; #ifndef _REWRITER_typedef_NSStream #define _REWRITER_typedef_NSStream typedef struct objc_object NSStream; typedef struct {} _objc_exc_NSStream; #endif struct NSStream_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)open; // - (void)close; // @property (nullable, assign) id <NSStreamDelegate> delegate; // - (nullable id)propertyForKey:(NSStreamPropertyKey)key; // - (BOOL)setProperty:(nullable id)property forKey:(NSStreamPropertyKey)key; // - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // @property (readonly) NSStreamStatus streamStatus; // @property (nullable, readonly, copy) NSError *streamError; /* @end */ #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif struct NSInputStream_IMPL { struct NSStream_IMPL NSStream_IVARS; }; // - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len; // - (BOOL)getBuffer:(uint8_t * _Nullable * _Nonnull)buffer length:(NSUInteger *)len; // @property (readonly) BOOL hasBytesAvailable; // - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); /* @end */ #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif struct NSOutputStream_IMPL { struct NSStream_IMPL NSStream_IVARS; }; // - (NSInteger)write:(const uint8_t *)buffer maxLength:(NSUInteger)len; // @property (readonly) BOOL hasSpaceAvailable; // - (instancetype)initToMemory __attribute__((objc_designated_initializer)); // - (instancetype)initToBuffer:(uint8_t *)buffer capacity:(NSUInteger)capacity __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithURL:(NSURL *)url append:(BOOL)shouldAppend __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); /* @end */ // @interface NSStream (NSSocketStreamCreationExtensions) // + (void)getStreamsToHostWithName:(NSString *)hostname port:(NSInteger)port inputStream:(NSInputStream * _Nullable * _Nullable)inputStream outputStream:(NSOutputStream * _Nullable * _Nullable)outputStream __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface NSStream (NSStreamBoundPairCreationExtensions) // + (void)getBoundStreamsWithBufferSize:(NSUInteger)bufferSize inputStream:(NSInputStream * _Nullable * _Nullable)inputStream outputStream:(NSOutputStream * _Nullable * _Nullable)outputStream __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSInputStream (NSInputStreamExtensions) // - (nullable instancetype)initWithFileAtPath:(NSString *)path; // + (nullable instancetype)inputStreamWithData:(NSData *)data; // + (nullable instancetype)inputStreamWithFileAtPath:(NSString *)path; // + (nullable instancetype)inputStreamWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSOutputStream (NSOutputStreamExtensions) // - (nullable instancetype)initToFileAtPath:(NSString *)path append:(BOOL)shouldAppend; // + (instancetype)outputStreamToMemory; // + (instancetype)outputStreamToBuffer:(uint8_t *)buffer capacity:(NSUInteger)capacity; // + (instancetype)outputStreamToFileAtPath:(NSString *)path append:(BOOL)shouldAppend; // + (nullable instancetype)outputStreamWithURL:(NSURL *)url append:(BOOL)shouldAppend __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @protocol NSStreamDelegate <NSObject> /* @optional */ // - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode; /* @end */ extern "C" NSStreamPropertyKey const NSStreamSocketSecurityLevelKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSStreamSocketSecurityLevel __attribute__((swift_wrapper(enum))); extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelNone __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelSSLv2 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelSSLv3 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelTLSv1 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSocketSecurityLevel const NSStreamSocketSecurityLevelNegotiatedSSL __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamPropertyKey const NSStreamSOCKSProxyConfigurationKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSStreamSOCKSProxyConfiguration __attribute__((swift_wrapper(enum))); extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyHostKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyPortKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyVersionKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyUserKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSOCKSProxyConfiguration const NSStreamSOCKSProxyPasswordKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSStreamSOCKSProxyVersion __attribute__((swift_wrapper(enum))); extern "C" NSStreamSOCKSProxyVersion const NSStreamSOCKSProxyVersion4 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamSOCKSProxyVersion const NSStreamSOCKSProxyVersion5 __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamPropertyKey const NSStreamDataWrittenToMemoryStreamKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamPropertyKey const NSStreamFileCurrentOffsetKey __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSErrorDomain const NSStreamSocketSSLErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSErrorDomain const NSStreamSOCKSErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamPropertyKey const NSStreamNetworkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSString * NSStreamNetworkServiceTypeValue __attribute__((swift_wrapper(enum))); extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVoIP __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVideo __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeBackground __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeVoice __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSStreamNetworkServiceTypeValue const NSStreamNetworkServiceTypeCallSignaling __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSThread #define _REWRITER_typedef_NSThread typedef struct objc_object NSThread; typedef struct {} _objc_exc_NSThread; #endif struct NSThread_IMPL { struct NSObject_IMPL NSObject_IVARS; id _private; uint8_t _bytes[44]; }; @property (class, readonly, strong) NSThread *currentThread; // + (void)detachNewThreadWithBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // + (void)detachNewThreadSelector:(SEL)selector toTarget:(id)target withObject:(nullable id)argument; // + (BOOL)isMultiThreaded; // @property (readonly, retain) NSMutableDictionary *threadDictionary; // + (void)sleepUntilDate:(NSDate *)date; // + (void)sleepForTimeInterval:(NSTimeInterval)ti; // + (void)exit; // + (double)threadPriority; // + (BOOL)setThreadPriority:(double)p; // @property double threadPriority __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSQualityOfService qualityOfService __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSArray<NSNumber *> *callStackReturnAddresses __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, copy) NSArray<NSString *> *callStackSymbols __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSUInteger stackSize __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); @property (class, readonly, strong) NSThread *mainThread __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)init __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (instancetype)initWithTarget:(id)target selector:(SEL)selector object:(nullable id)argument __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithBlock:(void (^)(void))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (readonly, getter=isExecuting) BOOL executing __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, getter=isFinished) BOOL finished __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, getter=isCancelled) BOOL cancelled __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)cancel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)start __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)main __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSWillBecomeMultiThreadedNotification; extern "C" NSNotificationName const NSDidBecomeSingleThreadedNotification; extern "C" NSNotificationName const NSThreadWillExitNotification; // @interface NSObject (NSThreadPerformAdditions) // - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(nullable id)arg waitUntilDone:(BOOL)wait modes:(nullable NSArray<NSString *> *)array; // - (void)performSelectorOnMainThread:(SEL)aSelector withObject:(nullable id)arg waitUntilDone:(BOOL)wait; // - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(nullable id)arg waitUntilDone:(BOOL)wait modes:(nullable NSArray<NSString *> *)array __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(nullable id)arg waitUntilDone:(BOOL)wait __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)performSelectorInBackground:(SEL)aSelector withObject:(nullable id)arg __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSLocale #define _REWRITER_typedef_NSLocale typedef struct objc_object NSLocale; typedef struct {} _objc_exc_NSLocale; #endif #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSTimeZone #define _REWRITER_typedef_NSTimeZone typedef struct objc_object NSTimeZone; typedef struct {} _objc_exc_NSTimeZone; #endif struct NSTimeZone_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, copy) NSString *name; // @property (readonly, copy) NSData *data; // - (NSInteger)secondsFromGMTForDate:(NSDate *)aDate; // - (nullable NSString *)abbreviationForDate:(NSDate *)aDate; // - (BOOL)isDaylightSavingTimeForDate:(NSDate *)aDate; // - (NSTimeInterval)daylightSavingTimeOffsetForDate:(NSDate *)aDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSDate *)nextDaylightSavingTimeTransitionAfterDate:(NSDate *)aDate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSTimeZone (NSExtendedTimeZone) @property (class, readonly, copy) NSTimeZone *systemTimeZone; // + (void)resetSystemTimeZone; @property (class, copy) NSTimeZone *defaultTimeZone; @property (class, readonly, copy) NSTimeZone *localTimeZone; @property (class, readonly, copy) NSArray<NSString *> *knownTimeZoneNames; @property (class, copy) NSDictionary<NSString *, NSString *> *abbreviationDictionary __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSDictionary<NSString *, NSString *> *)abbreviationDictionary; @property (class, readonly, copy) NSString *timeZoneDataVersion __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSInteger secondsFromGMT; // @property (nullable, readonly, copy) NSString *abbreviation; // @property (readonly, getter=isDaylightSavingTime) BOOL daylightSavingTime; // @property (readonly) NSTimeInterval daylightSavingTimeOffset __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSDate *nextDaylightSavingTimeTransition __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *description; // - (BOOL)isEqualToTimeZone:(NSTimeZone *)aTimeZone; typedef NSInteger NSTimeZoneNameStyle; enum { NSTimeZoneNameStyleStandard, NSTimeZoneNameStyleShortStandard, NSTimeZoneNameStyleDaylightSaving, NSTimeZoneNameStyleShortDaylightSaving, NSTimeZoneNameStyleGeneric, NSTimeZoneNameStyleShortGeneric }; // - (nullable NSString *)localizedName:(NSTimeZoneNameStyle)style locale:(nullable NSLocale *)locale __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSTimeZone (NSTimeZoneCreation) // + (nullable instancetype)timeZoneWithName:(NSString *)tzName; // + (nullable instancetype)timeZoneWithName:(NSString *)tzName data:(nullable NSData *)aData; // - (nullable instancetype)initWithName:(NSString *)tzName; // - (nullable instancetype)initWithName:(NSString *)tzName data:(nullable NSData *)aData; // + (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds; // + (nullable instancetype)timeZoneWithAbbreviation:(NSString *)abbreviation; /* @end */ extern "C" NSNotificationName const NSSystemTimeZoneDidChangeNotification __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #ifndef _REWRITER_typedef_NSTimer #define _REWRITER_typedef_NSTimer typedef struct objc_object NSTimer; typedef struct {} _objc_exc_NSTimer; #endif struct NSTimer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo; // + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo; // + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo; // + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo; // + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (instancetype)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (instancetype)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)ti target:(id)t selector:(SEL)s userInfo:(nullable id)ui repeats:(BOOL)rep __attribute__((objc_designated_initializer)); // - (void)fire; // @property (copy) NSDate *fireDate; // @property (readonly) NSTimeInterval timeInterval; // @property NSTimeInterval tolerance __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)invalidate; // @property (readonly, getter=isValid) BOOL valid; // @property (nullable, readonly, retain) id userInfo; /* @end */ #pragma clang assume_nonnull end // @class NSURLAuthenticationChallenge; #ifndef _REWRITER_typedef_NSURLAuthenticationChallenge #define _REWRITER_typedef_NSURLAuthenticationChallenge typedef struct objc_object NSURLAuthenticationChallenge; typedef struct {} _objc_exc_NSURLAuthenticationChallenge; #endif // @class NSURLCredential; #ifndef _REWRITER_typedef_NSURLCredential #define _REWRITER_typedef_NSURLCredential typedef struct objc_object NSURLCredential; typedef struct {} _objc_exc_NSURLCredential; #endif // @class NSURLProtectionSpace; #ifndef _REWRITER_typedef_NSURLProtectionSpace #define _REWRITER_typedef_NSURLProtectionSpace typedef struct objc_object NSURLProtectionSpace; typedef struct {} _objc_exc_NSURLProtectionSpace; #endif // @class NSURLResponse; #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLAuthenticationChallengeSender <NSObject> // - (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; // - (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; // - (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; /* @optional */ // - (void)performDefaultHandlingForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; // - (void)rejectProtectionSpaceAndContinueWithChallenge:(NSURLAuthenticationChallenge *)challenge; /* @end */ // @class NSURLAuthenticationChallengeInternal; #ifndef _REWRITER_typedef_NSURLAuthenticationChallengeInternal #define _REWRITER_typedef_NSURLAuthenticationChallengeInternal typedef struct objc_object NSURLAuthenticationChallengeInternal; typedef struct {} _objc_exc_NSURLAuthenticationChallengeInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLAuthenticationChallenge #define _REWRITER_typedef_NSURLAuthenticationChallenge typedef struct objc_object NSURLAuthenticationChallenge; typedef struct {} _objc_exc_NSURLAuthenticationChallenge; #endif struct NSURLAuthenticationChallenge_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLAuthenticationChallengeInternal *_internal; }; // - (instancetype)initWithProtectionSpace:(NSURLProtectionSpace *)space proposedCredential:(nullable NSURLCredential *)credential previousFailureCount:(NSInteger)previousFailureCount failureResponse:(nullable NSURLResponse *)response error:(nullable NSError *)error sender:(id<NSURLAuthenticationChallengeSender>)sender; // - (instancetype)initWithAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge sender:(id<NSURLAuthenticationChallengeSender>)sender; // @property (readonly, copy) NSURLProtectionSpace *protectionSpace; // @property (nullable, readonly, copy) NSURLCredential *proposedCredential; // @property (readonly) NSInteger previousFailureCount; // @property (nullable, readonly, copy) NSURLResponse *failureResponse; // @property (nullable, readonly, copy) NSError *error; // @property (nullable, readonly, retain) id<NSURLAuthenticationChallengeSender> sender; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger NSURLCacheStoragePolicy; enum { NSURLCacheStorageAllowed, NSURLCacheStorageAllowedInMemoryOnly, NSURLCacheStorageNotAllowed, }; // @class NSCachedURLResponseInternal; #ifndef _REWRITER_typedef_NSCachedURLResponseInternal #define _REWRITER_typedef_NSCachedURLResponseInternal typedef struct objc_object NSCachedURLResponseInternal; typedef struct {} _objc_exc_NSCachedURLResponseInternal; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSURLRequest; #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif // @class NSURLResponse; #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif // @class NSDate; #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif // @class NSURLSessionDataTask; #ifndef _REWRITER_typedef_NSURLSessionDataTask #define _REWRITER_typedef_NSURLSessionDataTask typedef struct objc_object NSURLSessionDataTask; typedef struct {} _objc_exc_NSURLSessionDataTask; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSCachedURLResponse #define _REWRITER_typedef_NSCachedURLResponse typedef struct objc_object NSCachedURLResponse; typedef struct {} _objc_exc_NSCachedURLResponse; #endif struct NSCachedURLResponse_IMPL { struct NSObject_IMPL NSObject_IVARS; NSCachedURLResponseInternal *_internal; }; // - (instancetype)initWithResponse:(NSURLResponse *)response data:(NSData *)data; // - (instancetype)initWithResponse:(NSURLResponse *)response data:(NSData *)data userInfo:(nullable NSDictionary *)userInfo storagePolicy:(NSURLCacheStoragePolicy)storagePolicy; // @property (readonly, copy) NSURLResponse *response; // @property (readonly, copy) NSData *data; // @property (nullable, readonly, copy) NSDictionary *userInfo; // @property (readonly) NSURLCacheStoragePolicy storagePolicy; /* @end */ // @class NSURLRequest; #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif // @class NSURLCacheInternal; #ifndef _REWRITER_typedef_NSURLCacheInternal #define _REWRITER_typedef_NSURLCacheInternal typedef struct objc_object NSURLCacheInternal; typedef struct {} _objc_exc_NSURLCacheInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLCache #define _REWRITER_typedef_NSURLCache typedef struct objc_object NSURLCache; typedef struct {} _objc_exc_NSURLCache; #endif struct NSURLCache_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLCacheInternal *_internal; }; @property (class, strong) NSURLCache *sharedURLCache; // - (instancetype)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity diskPath:(nullable NSString *)path __attribute__((availability(macos,introduced=10.2,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="initWithMemoryCapacity:diskCapacity:directoryURL:"))); // - (instancetype)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity directoryURL:(nullable NSURL *)directoryURL __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request; // - (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forRequest:(NSURLRequest *)request; // - (void)removeCachedResponseForRequest:(NSURLRequest *)request; // - (void)removeAllCachedResponses; // - (void)removeCachedResponsesSinceDate:(NSDate *)date __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property NSUInteger memoryCapacity; // @property NSUInteger diskCapacity; // @property (readonly) NSUInteger currentMemoryUsage; // @property (readonly) NSUInteger currentDiskUsage; /* @end */ // @interface NSURLCache (NSURLSessionTaskAdditions) // - (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forDataTask:(NSURLSessionDataTask *)dataTask __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getCachedResponseForDataTask:(NSURLSessionDataTask *)dataTask completionHandler:(void (^) (NSCachedURLResponse * _Nullable cachedResponse))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeCachedResponseForDataTask:(NSURLSessionDataTask *)dataTask __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSCachedURLResponse; #ifndef _REWRITER_typedef_NSCachedURLResponse #define _REWRITER_typedef_NSCachedURLResponse typedef struct objc_object NSCachedURLResponse; typedef struct {} _objc_exc_NSCachedURLResponse; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @class NSURLAuthenticationChallenge; #ifndef _REWRITER_typedef_NSURLAuthenticationChallenge #define _REWRITER_typedef_NSURLAuthenticationChallenge typedef struct objc_object NSURLAuthenticationChallenge; typedef struct {} _objc_exc_NSURLAuthenticationChallenge; #endif // @class NSURLConnectionInternal; #ifndef _REWRITER_typedef_NSURLConnectionInternal #define _REWRITER_typedef_NSURLConnectionInternal typedef struct objc_object NSURLConnectionInternal; typedef struct {} _objc_exc_NSURLConnectionInternal; #endif // @class NSURLRequest; #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif // @class NSURLResponse; #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif // @class NSRunLoop; #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif // @class NSInputStream; #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif // @class NSURLProtectionSpace; #ifndef _REWRITER_typedef_NSURLProtectionSpace #define _REWRITER_typedef_NSURLProtectionSpace typedef struct objc_object NSURLProtectionSpace; typedef struct {} _objc_exc_NSURLProtectionSpace; #endif // @class NSOperationQueue; #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif // @protocol NSURLConnectionDelegate; #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLConnection #define _REWRITER_typedef_NSURLConnection typedef struct objc_object NSURLConnection; typedef struct {} _objc_exc_NSURLConnection; #endif struct NSURLConnection_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLConnectionInternal *_internal; }; // - (nullable instancetype)initWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate startImmediately:(BOOL)startImmediately __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable))); // - (nullable instancetype)initWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable))); // + (nullable NSURLConnection*)connectionWithRequest:(NSURLRequest *)request delegate:(nullable id)delegate __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLSession (see NSURLSession.h)"))) __attribute__((availability(watchos,unavailable))); // @property (readonly, copy) NSURLRequest *originalRequest __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSURLRequest *currentRequest __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)start __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)cancel; // - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)unscheduleFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setDelegateQueue:(nullable NSOperationQueue*) queue __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (BOOL)canHandleRequest:(NSURLRequest *)request; /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLConnectionDelegate <NSObject> /* @optional */ // - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error; // - (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)connection; // - (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; // - (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace __attribute__((availability(macos,introduced=10.6,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))); // - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))); // - (void)connection:(NSURLConnection *)connection didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge __attribute__((availability(macos,introduced=10.2,deprecated=10.10,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -connection:willSendRequestForAuthenticationChallenge: instead."))); /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLConnectionDataDelegate <NSURLConnectionDelegate> /* @optional */ // - (nullable NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(nullable NSURLResponse *)response; // - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response; // - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data; // - (nullable NSInputStream *)connection:(NSURLConnection *)connection needNewBodyStream:(NSURLRequest *)request; #if 0 - (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; #endif // - (nullable NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse; // - (void)connectionDidFinishLoading:(NSURLConnection *)connection; /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLConnectionDownloadDelegate <NSURLConnectionDelegate> /* @optional */ // - (void)connection:(NSURLConnection *)connection didWriteData:(long long)bytesWritten totalBytesWritten:(long long)totalBytesWritten expectedTotalBytes:(long long) expectedTotalBytes; // - (void)connectionDidResumeDownloading:(NSURLConnection *)connection totalBytesWritten:(long long)totalBytesWritten expectedTotalBytes:(long long) expectedTotalBytes; /* @required */ // - (void)connectionDidFinishDownloading:(NSURLConnection *)connection destinationURL:(NSURL *) destinationURL; /* @end */ // @interface NSURLConnection (NSURLConnectionSynchronousLoading) // + (nullable NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse * _Nullable * _Nullable)response error:(NSError **)error __attribute__((availability(macos,introduced=10.3,deprecated=10.11,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface NSURLConnection (NSURLConnectionQueuedLoading) #if 0 + (void)sendAsynchronousRequest:(NSURLRequest*) request queue:(NSOperationQueue*) queue completionHandler:(void (^)(NSURLResponse* _Nullable response, NSData* _Nullable data, NSError* _Nullable connectionError)) handler __attribute__((availability(macos,introduced=10.7,deprecated=10.11,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h"))) __attribute__((availability(watchos,unavailable))); #endif /* @end */ #pragma clang assume_nonnull end extern "C" { #pragma clang assume_nonnull begin typedef struct __attribute__((objc_bridge(id))) __SecCertificate *SecCertificateRef; typedef struct __attribute__((objc_bridge(id))) __SecIdentity *SecIdentityRef; typedef struct __attribute__((objc_bridge(id))) __SecKey *SecKeyRef; typedef struct __attribute__((objc_bridge(id))) __SecPolicy *SecPolicyRef; typedef struct __attribute__((objc_bridge(id))) __SecAccessControl *SecAccessControlRef; typedef struct __attribute__((objc_bridge(id))) __SecKeychain *SecKeychainRef __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecKeychainItem *SecKeychainItemRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecKeychainSearch *SecKeychainSearchRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef OSType SecKeychainAttrType __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttribute { SecKeychainAttrType tag; UInt32 length; void * _Nullable data; }; typedef struct SecKeychainAttribute SecKeychainAttribute __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef SecKeychainAttribute *SecKeychainAttributePtr __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttributeList { UInt32 count; SecKeychainAttribute * _Nullable attr; }; typedef struct SecKeychainAttributeList SecKeychainAttributeList __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef UInt32 SecKeychainStatus __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecTrustedApplication *SecTrustedApplicationRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecAccess *SecAccessRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecACL *SecACLRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); typedef struct __attribute__((objc_bridge(id))) __SecPassword *SecPasswordRef __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); struct __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) SecKeychainAttributeInfo { UInt32 count; UInt32 *tag; UInt32 * _Nullable format; }; typedef struct SecKeychainAttributeInfo SecKeychainAttributeInfo __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); _Nullable CFStringRef SecCopyErrorMessageString(OSStatus status, void * _Nullable reserved) __attribute__((availability(ios,introduced=11.3))); enum { errSecSuccess = 0, errSecUnimplemented = -4, errSecDiskFull = -34, errSecDskFull __attribute__((deprecated("use errSecDiskFull"))) = errSecDiskFull, errSecIO = -36, errSecOpWr = -49, errSecParam = -50, errSecWrPerm = -61, errSecAllocate = -108, errSecUserCanceled = -128, errSecBadReq = -909, errSecInternalComponent = -2070, errSecCoreFoundationUnknown = -4960, errSecMissingEntitlement = -34018, errSecRestrictedAPI = -34020, errSecNotAvailable = -25291, errSecReadOnly = -25292, errSecAuthFailed = -25293, errSecNoSuchKeychain = -25294, errSecInvalidKeychain = -25295, errSecDuplicateKeychain = -25296, errSecDuplicateCallback = -25297, errSecInvalidCallback = -25298, errSecDuplicateItem = -25299, errSecItemNotFound = -25300, errSecBufferTooSmall = -25301, errSecDataTooLarge = -25302, errSecNoSuchAttr = -25303, errSecInvalidItemRef = -25304, errSecInvalidSearchRef = -25305, errSecNoSuchClass = -25306, errSecNoDefaultKeychain = -25307, errSecInteractionNotAllowed = -25308, errSecReadOnlyAttr = -25309, errSecWrongSecVersion = -25310, errSecKeySizeNotAllowed = -25311, errSecNoStorageModule = -25312, errSecNoCertificateModule = -25313, errSecNoPolicyModule = -25314, errSecInteractionRequired = -25315, errSecDataNotAvailable = -25316, errSecDataNotModifiable = -25317, errSecCreateChainFailed = -25318, errSecInvalidPrefsDomain = -25319, errSecInDarkWake = -25320, errSecACLNotSimple = -25240, errSecPolicyNotFound = -25241, errSecInvalidTrustSetting = -25242, errSecNoAccessForItem = -25243, errSecInvalidOwnerEdit = -25244, errSecTrustNotAvailable = -25245, errSecUnsupportedFormat = -25256, errSecUnknownFormat = -25257, errSecKeyIsSensitive = -25258, errSecMultiplePrivKeys = -25259, errSecPassphraseRequired = -25260, errSecInvalidPasswordRef = -25261, errSecInvalidTrustSettings = -25262, errSecNoTrustSettings = -25263, errSecPkcs12VerifyFailure = -25264, errSecNotSigner = -26267, errSecDecode = -26275, errSecServiceNotAvailable = -67585, errSecInsufficientClientID = -67586, errSecDeviceReset = -67587, errSecDeviceFailed = -67588, errSecAppleAddAppACLSubject = -67589, errSecApplePublicKeyIncomplete = -67590, errSecAppleSignatureMismatch = -67591, errSecAppleInvalidKeyStartDate = -67592, errSecAppleInvalidKeyEndDate = -67593, errSecConversionError = -67594, errSecAppleSSLv2Rollback = -67595, errSecQuotaExceeded = -67596, errSecFileTooBig = -67597, errSecInvalidDatabaseBlob = -67598, errSecInvalidKeyBlob = -67599, errSecIncompatibleDatabaseBlob = -67600, errSecIncompatibleKeyBlob = -67601, errSecHostNameMismatch = -67602, errSecUnknownCriticalExtensionFlag = -67603, errSecNoBasicConstraints = -67604, errSecNoBasicConstraintsCA = -67605, errSecInvalidAuthorityKeyID = -67606, errSecInvalidSubjectKeyID = -67607, errSecInvalidKeyUsageForPolicy = -67608, errSecInvalidExtendedKeyUsage = -67609, errSecInvalidIDLinkage = -67610, errSecPathLengthConstraintExceeded = -67611, errSecInvalidRoot = -67612, errSecCRLExpired = -67613, errSecCRLNotValidYet = -67614, errSecCRLNotFound = -67615, errSecCRLServerDown = -67616, errSecCRLBadURI = -67617, errSecUnknownCertExtension = -67618, errSecUnknownCRLExtension = -67619, errSecCRLNotTrusted = -67620, errSecCRLPolicyFailed = -67621, errSecIDPFailure = -67622, errSecSMIMEEmailAddressesNotFound = -67623, errSecSMIMEBadExtendedKeyUsage = -67624, errSecSMIMEBadKeyUsage = -67625, errSecSMIMEKeyUsageNotCritical = -67626, errSecSMIMENoEmailAddress = -67627, errSecSMIMESubjAltNameNotCritical = -67628, errSecSSLBadExtendedKeyUsage = -67629, errSecOCSPBadResponse = -67630, errSecOCSPBadRequest = -67631, errSecOCSPUnavailable = -67632, errSecOCSPStatusUnrecognized = -67633, errSecEndOfData = -67634, errSecIncompleteCertRevocationCheck = -67635, errSecNetworkFailure = -67636, errSecOCSPNotTrustedToAnchor = -67637, errSecRecordModified = -67638, errSecOCSPSignatureError = -67639, errSecOCSPNoSigner = -67640, errSecOCSPResponderMalformedReq = -67641, errSecOCSPResponderInternalError = -67642, errSecOCSPResponderTryLater = -67643, errSecOCSPResponderSignatureRequired = -67644, errSecOCSPResponderUnauthorized = -67645, errSecOCSPResponseNonceMismatch = -67646, errSecCodeSigningBadCertChainLength = -67647, errSecCodeSigningNoBasicConstraints = -67648, errSecCodeSigningBadPathLengthConstraint = -67649, errSecCodeSigningNoExtendedKeyUsage = -67650, errSecCodeSigningDevelopment = -67651, errSecResourceSignBadCertChainLength = -67652, errSecResourceSignBadExtKeyUsage = -67653, errSecTrustSettingDeny = -67654, errSecInvalidSubjectName = -67655, errSecUnknownQualifiedCertStatement = -67656, errSecMobileMeRequestQueued = -67657, errSecMobileMeRequestRedirected = -67658, errSecMobileMeServerError = -67659, errSecMobileMeServerNotAvailable = -67660, errSecMobileMeServerAlreadyExists = -67661, errSecMobileMeServerServiceErr = -67662, errSecMobileMeRequestAlreadyPending = -67663, errSecMobileMeNoRequestPending = -67664, errSecMobileMeCSRVerifyFailure = -67665, errSecMobileMeFailedConsistencyCheck = -67666, errSecNotInitialized = -67667, errSecInvalidHandleUsage = -67668, errSecPVCReferentNotFound = -67669, errSecFunctionIntegrityFail = -67670, errSecInternalError = -67671, errSecMemoryError = -67672, errSecInvalidData = -67673, errSecMDSError = -67674, errSecInvalidPointer = -67675, errSecSelfCheckFailed = -67676, errSecFunctionFailed = -67677, errSecModuleManifestVerifyFailed = -67678, errSecInvalidGUID = -67679, errSecInvalidHandle = -67680, errSecInvalidDBList = -67681, errSecInvalidPassthroughID = -67682, errSecInvalidNetworkAddress = -67683, errSecCRLAlreadySigned = -67684, errSecInvalidNumberOfFields = -67685, errSecVerificationFailure = -67686, errSecUnknownTag = -67687, errSecInvalidSignature = -67688, errSecInvalidName = -67689, errSecInvalidCertificateRef = -67690, errSecInvalidCertificateGroup = -67691, errSecTagNotFound = -67692, errSecInvalidQuery = -67693, errSecInvalidValue = -67694, errSecCallbackFailed = -67695, errSecACLDeleteFailed = -67696, errSecACLReplaceFailed = -67697, errSecACLAddFailed = -67698, errSecACLChangeFailed = -67699, errSecInvalidAccessCredentials = -67700, errSecInvalidRecord = -67701, errSecInvalidACL = -67702, errSecInvalidSampleValue = -67703, errSecIncompatibleVersion = -67704, errSecPrivilegeNotGranted = -67705, errSecInvalidScope = -67706, errSecPVCAlreadyConfigured = -67707, errSecInvalidPVC = -67708, errSecEMMLoadFailed = -67709, errSecEMMUnloadFailed = -67710, errSecAddinLoadFailed = -67711, errSecInvalidKeyRef = -67712, errSecInvalidKeyHierarchy = -67713, errSecAddinUnloadFailed = -67714, errSecLibraryReferenceNotFound = -67715, errSecInvalidAddinFunctionTable = -67716, errSecInvalidServiceMask = -67717, errSecModuleNotLoaded = -67718, errSecInvalidSubServiceID = -67719, errSecAttributeNotInContext = -67720, errSecModuleManagerInitializeFailed = -67721, errSecModuleManagerNotFound = -67722, errSecEventNotificationCallbackNotFound = -67723, errSecInputLengthError = -67724, errSecOutputLengthError = -67725, errSecPrivilegeNotSupported = -67726, errSecDeviceError = -67727, errSecAttachHandleBusy = -67728, errSecNotLoggedIn = -67729, errSecAlgorithmMismatch = -67730, errSecKeyUsageIncorrect = -67731, errSecKeyBlobTypeIncorrect = -67732, errSecKeyHeaderInconsistent = -67733, errSecUnsupportedKeyFormat = -67734, errSecUnsupportedKeySize = -67735, errSecInvalidKeyUsageMask = -67736, errSecUnsupportedKeyUsageMask = -67737, errSecInvalidKeyAttributeMask = -67738, errSecUnsupportedKeyAttributeMask = -67739, errSecInvalidKeyLabel = -67740, errSecUnsupportedKeyLabel = -67741, errSecInvalidKeyFormat = -67742, errSecUnsupportedVectorOfBuffers = -67743, errSecInvalidInputVector = -67744, errSecInvalidOutputVector = -67745, errSecInvalidContext = -67746, errSecInvalidAlgorithm = -67747, errSecInvalidAttributeKey = -67748, errSecMissingAttributeKey = -67749, errSecInvalidAttributeInitVector = -67750, errSecMissingAttributeInitVector = -67751, errSecInvalidAttributeSalt = -67752, errSecMissingAttributeSalt = -67753, errSecInvalidAttributePadding = -67754, errSecMissingAttributePadding = -67755, errSecInvalidAttributeRandom = -67756, errSecMissingAttributeRandom = -67757, errSecInvalidAttributeSeed = -67758, errSecMissingAttributeSeed = -67759, errSecInvalidAttributePassphrase = -67760, errSecMissingAttributePassphrase = -67761, errSecInvalidAttributeKeyLength = -67762, errSecMissingAttributeKeyLength = -67763, errSecInvalidAttributeBlockSize = -67764, errSecMissingAttributeBlockSize = -67765, errSecInvalidAttributeOutputSize = -67766, errSecMissingAttributeOutputSize = -67767, errSecInvalidAttributeRounds = -67768, errSecMissingAttributeRounds = -67769, errSecInvalidAlgorithmParms = -67770, errSecMissingAlgorithmParms = -67771, errSecInvalidAttributeLabel = -67772, errSecMissingAttributeLabel = -67773, errSecInvalidAttributeKeyType = -67774, errSecMissingAttributeKeyType = -67775, errSecInvalidAttributeMode = -67776, errSecMissingAttributeMode = -67777, errSecInvalidAttributeEffectiveBits = -67778, errSecMissingAttributeEffectiveBits = -67779, errSecInvalidAttributeStartDate = -67780, errSecMissingAttributeStartDate = -67781, errSecInvalidAttributeEndDate = -67782, errSecMissingAttributeEndDate = -67783, errSecInvalidAttributeVersion = -67784, errSecMissingAttributeVersion = -67785, errSecInvalidAttributePrime = -67786, errSecMissingAttributePrime = -67787, errSecInvalidAttributeBase = -67788, errSecMissingAttributeBase = -67789, errSecInvalidAttributeSubprime = -67790, errSecMissingAttributeSubprime = -67791, errSecInvalidAttributeIterationCount = -67792, errSecMissingAttributeIterationCount = -67793, errSecInvalidAttributeDLDBHandle = -67794, errSecMissingAttributeDLDBHandle = -67795, errSecInvalidAttributeAccessCredentials = -67796, errSecMissingAttributeAccessCredentials = -67797, errSecInvalidAttributePublicKeyFormat = -67798, errSecMissingAttributePublicKeyFormat = -67799, errSecInvalidAttributePrivateKeyFormat = -67800, errSecMissingAttributePrivateKeyFormat = -67801, errSecInvalidAttributeSymmetricKeyFormat = -67802, errSecMissingAttributeSymmetricKeyFormat = -67803, errSecInvalidAttributeWrappedKeyFormat = -67804, errSecMissingAttributeWrappedKeyFormat = -67805, errSecStagedOperationInProgress = -67806, errSecStagedOperationNotStarted = -67807, errSecVerifyFailed = -67808, errSecQuerySizeUnknown = -67809, errSecBlockSizeMismatch = -67810, errSecPublicKeyInconsistent = -67811, errSecDeviceVerifyFailed = -67812, errSecInvalidLoginName = -67813, errSecAlreadyLoggedIn = -67814, errSecInvalidDigestAlgorithm = -67815, errSecInvalidCRLGroup = -67816, errSecCertificateCannotOperate = -67817, errSecCertificateExpired = -67818, errSecCertificateNotValidYet = -67819, errSecCertificateRevoked = -67820, errSecCertificateSuspended = -67821, errSecInsufficientCredentials = -67822, errSecInvalidAction = -67823, errSecInvalidAuthority = -67824, errSecVerifyActionFailed = -67825, errSecInvalidCertAuthority = -67826, errSecInvaldCRLAuthority = -67827, errSecInvalidCRLEncoding = -67828, errSecInvalidCRLType = -67829, errSecInvalidCRL = -67830, errSecInvalidFormType = -67831, errSecInvalidID = -67832, errSecInvalidIdentifier = -67833, errSecInvalidIndex = -67834, errSecInvalidPolicyIdentifiers = -67835, errSecInvalidTimeString = -67836, errSecInvalidReason = -67837, errSecInvalidRequestInputs = -67838, errSecInvalidResponseVector = -67839, errSecInvalidStopOnPolicy = -67840, errSecInvalidTuple = -67841, errSecMultipleValuesUnsupported = -67842, errSecNotTrusted = -67843, errSecNoDefaultAuthority = -67844, errSecRejectedForm = -67845, errSecRequestLost = -67846, errSecRequestRejected = -67847, errSecUnsupportedAddressType = -67848, errSecUnsupportedService = -67849, errSecInvalidTupleGroup = -67850, errSecInvalidBaseACLs = -67851, errSecInvalidTupleCredendtials = -67852, errSecInvalidEncoding = -67853, errSecInvalidValidityPeriod = -67854, errSecInvalidRequestor = -67855, errSecRequestDescriptor = -67856, errSecInvalidBundleInfo = -67857, errSecInvalidCRLIndex = -67858, errSecNoFieldValues = -67859, errSecUnsupportedFieldFormat = -67860, errSecUnsupportedIndexInfo = -67861, errSecUnsupportedLocality = -67862, errSecUnsupportedNumAttributes = -67863, errSecUnsupportedNumIndexes = -67864, errSecUnsupportedNumRecordTypes = -67865, errSecFieldSpecifiedMultiple = -67866, errSecIncompatibleFieldFormat = -67867, errSecInvalidParsingModule = -67868, errSecDatabaseLocked = -67869, errSecDatastoreIsOpen = -67870, errSecMissingValue = -67871, errSecUnsupportedQueryLimits = -67872, errSecUnsupportedNumSelectionPreds = -67873, errSecUnsupportedOperator = -67874, errSecInvalidDBLocation = -67875, errSecInvalidAccessRequest = -67876, errSecInvalidIndexInfo = -67877, errSecInvalidNewOwner = -67878, errSecInvalidModifyMode = -67879, errSecMissingRequiredExtension = -67880, errSecExtendedKeyUsageNotCritical = -67881, errSecTimestampMissing = -67882, errSecTimestampInvalid = -67883, errSecTimestampNotTrusted = -67884, errSecTimestampServiceNotAvailable = -67885, errSecTimestampBadAlg = -67886, errSecTimestampBadRequest = -67887, errSecTimestampBadDataFormat = -67888, errSecTimestampTimeNotAvailable = -67889, errSecTimestampUnacceptedPolicy = -67890, errSecTimestampUnacceptedExtension = -67891, errSecTimestampAddInfoNotAvailable = -67892, errSecTimestampSystemFailure = -67893, errSecSigningTimeMissing = -67894, errSecTimestampRejection = -67895, errSecTimestampWaiting = -67896, errSecTimestampRevocationWarning = -67897, errSecTimestampRevocationNotification = -67898, errSecCertificatePolicyNotAllowed = -67899, errSecCertificateNameNotAllowed = -67900, errSecCertificateValidityPeriodTooLong = -67901, errSecCertificateIsCA = -67902, }; enum { errSSLProtocol = -9800, errSSLNegotiation = -9801, errSSLFatalAlert = -9802, errSSLWouldBlock = -9803, errSSLSessionNotFound = -9804, errSSLClosedGraceful = -9805, errSSLClosedAbort = -9806, errSSLXCertChainInvalid = -9807, errSSLBadCert = -9808, errSSLCrypto = -9809, errSSLInternal = -9810, errSSLModuleAttach = -9811, errSSLUnknownRootCert = -9812, errSSLNoRootCert = -9813, errSSLCertExpired = -9814, errSSLCertNotYetValid = -9815, errSSLClosedNoNotify = -9816, errSSLBufferOverflow = -9817, errSSLBadCipherSuite = -9818, errSSLPeerUnexpectedMsg = -9819, errSSLPeerBadRecordMac = -9820, errSSLPeerDecryptionFail = -9821, errSSLPeerRecordOverflow = -9822, errSSLPeerDecompressFail = -9823, errSSLPeerHandshakeFail = -9824, errSSLPeerBadCert = -9825, errSSLPeerUnsupportedCert = -9826, errSSLPeerCertRevoked = -9827, errSSLPeerCertExpired = -9828, errSSLPeerCertUnknown = -9829, errSSLIllegalParam = -9830, errSSLPeerUnknownCA = -9831, errSSLPeerAccessDenied = -9832, errSSLPeerDecodeError = -9833, errSSLPeerDecryptError = -9834, errSSLPeerExportRestriction = -9835, errSSLPeerProtocolVersion = -9836, errSSLPeerInsufficientSecurity = -9837, errSSLPeerInternalError = -9838, errSSLPeerUserCancelled = -9839, errSSLPeerNoRenegotiation = -9840, errSSLPeerAuthCompleted = -9841, errSSLClientCertRequested = -9842, errSSLHostNameMismatch = -9843, errSSLConnectionRefused = -9844, errSSLDecryptionFail = -9845, errSSLBadRecordMac = -9846, errSSLRecordOverflow = -9847, errSSLBadConfiguration = -9848, errSSLUnexpectedRecord = -9849, errSSLWeakPeerEphemeralDHKey = -9850, errSSLClientHelloReceived = -9851, errSSLTransportReset = -9852, errSSLNetworkTimeout = -9853, errSSLConfigurationFailed = -9854, errSSLUnsupportedExtension = -9855, errSSLUnexpectedMessage = -9856, errSSLDecompressFail = -9857, errSSLHandshakeFail = -9858, errSSLDecodeError = -9859, errSSLInappropriateFallback = -9860, errSSLMissingExtension = -9861, errSSLBadCertificateStatusResponse = -9862, errSSLCertificateRequired = -9863, errSSLUnknownPSKIdentity = -9864, errSSLUnrecognizedName = -9865, errSSLATSViolation = -9880, errSSLATSMinimumVersionViolation = -9881, errSSLATSCiphersuiteViolation = -9882, errSSLATSMinimumKeySizeViolation = -9883, errSSLATSLeafCertificateHashAlgorithmViolation = -9884, errSSLATSCertificateHashAlgorithmViolation = -9885, errSSLATSCertificateTrustViolation = -9886, errSSLEarlyDataRejected = -9890, }; #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin CFTypeID SecCertificateGetTypeID(void) __attribute__((availability(ios,introduced=2.0))); _Nullable SecCertificateRef SecCertificateCreateWithData(CFAllocatorRef _Nullable allocator, CFDataRef data) __attribute__((availability(ios,introduced=2.0))); CFDataRef SecCertificateCopyData(SecCertificateRef certificate) __attribute__((availability(ios,introduced=2.0))); _Nullable CFStringRef SecCertificateCopySubjectSummary(SecCertificateRef certificate) __attribute__((availability(ios,introduced=2.0))); OSStatus SecCertificateCopyCommonName(SecCertificateRef certificate, CFStringRef * _Nonnull __attribute__((cf_returns_retained)) commonName) __attribute__((availability(ios,introduced=10.3))); OSStatus SecCertificateCopyEmailAddresses(SecCertificateRef certificate, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) emailAddresses) __attribute__((availability(ios,introduced=10.3))); _Nullable CFDataRef SecCertificateCopyNormalizedIssuerSequence(SecCertificateRef certificate) __attribute__((availability(ios,introduced=10.3))); _Nullable CFDataRef SecCertificateCopyNormalizedSubjectSequence(SecCertificateRef certificate) __attribute__((availability(ios,introduced=10.3))); _Nullable __attribute__((cf_returns_retained)) SecKeyRef SecCertificateCopyKey(SecCertificateRef certificate) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))); _Nullable SecKeyRef SecCertificateCopyPublicKey(SecCertificateRef certificate) __attribute__((availability(ios,introduced=10.3,deprecated=12.0,replacement="SecCertificateCopyKey"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); _Nullable CFDataRef SecCertificateCopySerialNumberData(SecCertificateRef certificate, CFErrorRef *error) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); _Nullable CFDataRef SecCertificateCopySerialNumber(SecCertificateRef certificate) __attribute__((availability(ios,introduced=10.3,deprecated=11.0,replacement="SecCertificateCopySerialNumberData"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin CFTypeID SecIdentityGetTypeID(void) __attribute__((availability(ios,introduced=2.0))); OSStatus SecIdentityCopyCertificate( SecIdentityRef identityRef, SecCertificateRef * _Nonnull __attribute__((cf_returns_retained)) certificateRef) __attribute__((availability(ios,introduced=2.0))); OSStatus SecIdentityCopyPrivateKey( SecIdentityRef identityRef, SecKeyRef * _Nonnull __attribute__((cf_returns_retained)) privateKeyRef) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin CFTypeID SecAccessControlGetTypeID(void) __attribute__((availability(ios,introduced=8.0))); typedef CFOptionFlags SecAccessControlCreateFlags; enum { kSecAccessControlUserPresence = 1u << 0, kSecAccessControlBiometryAny __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) = 1u << 1, kSecAccessControlTouchIDAny __attribute__((availability(macos,introduced=10.12.1,deprecated=10.13.4,replacement="kSecAccessControlBiometryAny"))) __attribute__((availability(ios,introduced=9.0,deprecated=11.3,replacement="kSecAccessControlBiometryAny"))) = 1u << 1, kSecAccessControlBiometryCurrentSet __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) = 1u << 3, kSecAccessControlTouchIDCurrentSet __attribute__((availability(macos,introduced=10.12.1,deprecated=10.13.4,replacement="kSecAccessControlBiometryCurrentSet"))) __attribute__((availability(ios,introduced=9.0,deprecated=11.3,replacement="kSecAccessControlBiometryCurrentSet"))) = 1u << 3, kSecAccessControlDevicePasscode __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) = 1u << 4, kSecAccessControlWatch __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=NA))) __attribute__((availability(macCatalyst,introduced=13.0))) = 1u << 5, kSecAccessControlOr __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 14, kSecAccessControlAnd __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 15, kSecAccessControlPrivateKeyUsage __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 30, kSecAccessControlApplicationPassword __attribute__((availability(macos,introduced=10.12.1))) __attribute__((availability(ios,introduced=9.0))) = 1u << 31, } __attribute__((availability(ios,introduced=8.0))); _Nullable SecAccessControlRef SecAccessControlCreateWithFlags(CFAllocatorRef _Nullable allocator, CFTypeRef protection, SecAccessControlCreateFlags flags, CFErrorRef *error) __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kSecClass __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecClassInternetPassword __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecClassGenericPassword __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecClassCertificate __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecClassKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecClassIdentity __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAccessible __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrAccessControl __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern const CFStringRef kSecAttrAccessGroup __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=3.0))); extern const CFStringRef kSecAttrSynchronizable __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecAttrSynchronizableAny __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecAttrCreationDate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrModificationDate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrDescription __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrComment __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCreator __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrType __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrLabel __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIsInvisible __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIsNegative __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAccount __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrService __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrGeneric __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrSecurityDomain __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrServer __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocol __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationType __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrPort __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrPath __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrSubject __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIssuer __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrSerialNumber __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrSubjectKeyID __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrPublicKeyHash __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCertificateType __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCertificateEncoding __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyClass __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrApplicationLabel __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIsPermanent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIsSensitive __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrIsExtractable __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrApplicationTag __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyType __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrPRF __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrSalt __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrRounds __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeySizeInBits __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrEffectiveKeySize __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanEncrypt __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanDecrypt __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanDerive __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanSign __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanVerify __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanWrap __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrCanUnwrap __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrSyncViewHint __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecAttrTokenID __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecAttrPersistantReference __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const CFStringRef kSecAttrPersistentReference __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const CFStringRef kSecAttrAccessibleWhenUnlocked __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrAccessibleAfterFirstUnlock __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrAccessibleAlways __attribute__((availability(macos,introduced=10.9,deprecated=10.14,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock"))) __attribute__((availability(ios,introduced=4.0,deprecated=12.0,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlock"))); extern const CFStringRef kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern const CFStringRef kSecAttrAccessibleWhenUnlockedThisDeviceOnly __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrAccessibleAlwaysThisDeviceOnly __attribute__((availability(macos,introduced=10.9,deprecated=10.14,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly"))) __attribute__((availability(ios,introduced=4.0,deprecated=12.0,message="Use an accessibility level that provides some user protection, such as kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly"))); extern const CFStringRef kSecAttrProtocolFTP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolFTPAccount __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolHTTP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolIRC __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolNNTP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolPOP3 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolSMTP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolSOCKS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolIMAP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolLDAP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolAppleTalk __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolAFP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolTelnet __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolSSH __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolFTPS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolHTTPS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolHTTPProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolHTTPSProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolFTPProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolSMB __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolRTSP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolRTSPProxy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolDAAP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolEPPC __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolIPP __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolNNTPS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolLDAPS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolTelnetS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolIMAPS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolIRCS __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrProtocolPOP3S __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeNTLM __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeMSN __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeDPA __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeRPA __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeHTTPBasic __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeHTTPDigest __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeHTMLForm __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrAuthenticationTypeDefault __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyClassPublic __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyClassPrivate __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyClassSymmetric __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyTypeRSA __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecAttrKeyTypeDSA __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeAES __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeDES __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyType3DES __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeRC4 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeRC2 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeCAST __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeECDSA __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrKeyTypeEC __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=4.0))); extern const CFStringRef kSecAttrKeyTypeECSECPrimeRandom __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern const CFStringRef kSecAttrPRFHmacAlgSHA1 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrPRFHmacAlgSHA224 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrPRFHmacAlgSHA256 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrPRFHmacAlgSHA384 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecAttrPRFHmacAlgSHA512 __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchPolicy __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchItemList __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchSearchList __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchIssuers __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchEmailAddressIfPresent __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchSubjectContains __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchSubjectStartsWith __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchSubjectEndsWith __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchSubjectWholeString __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchCaseInsensitive __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchDiacriticInsensitive __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchWidthInsensitive __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecMatchTrustedOnly __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchValidOnDate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchLimit __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchLimitOne __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecMatchLimitAll __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecReturnData __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecReturnAttributes __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecReturnRef __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecReturnPersistentRef __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecValueData __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecValueRef __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecValuePersistentRef __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecUseItemList __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="Not implemented on this platform"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="Not implemented on this platform"))) __attribute__((availability(watchos,introduced=1.0,deprecated=5.0,message="Not implemented on this platform"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,message="Not implemented on this platform"))) ; extern const CFStringRef kSecUseKeychain __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecUseOperationPrompt __attribute__((availability(macos,introduced=10.10,deprecated=11.0,message="Use kSecUseAuthenticationContext and set LAContext.localizedReason property"))) __attribute__((availability(ios,introduced=8.0,deprecated=14.0,message="Use kSecUseAuthenticationContext and set LAContext.localizedReason property"))); extern const CFStringRef kSecUseNoAuthenticationUI __attribute__((availability(macos,introduced=10.10,deprecated=10.11,message="Use kSecUseAuthenticationUI instead."))) __attribute__((availability(ios,introduced=8.0,deprecated=9.0,message="Use kSecUseAuthenticationUI instead."))); extern const CFStringRef kSecUseAuthenticationUI __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecUseAuthenticationContext __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecUseDataProtectionKeychain __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern const CFStringRef kSecUseAuthenticationUIAllow __attribute__((availability(macos,introduced=10.11,deprecated=11.0,message="Instead of kSecUseAuthenticationUI, use kSecUseAuthenticationContext and set LAContext.interactionNotAllowed property"))) __attribute__((availability(ios,introduced=9.0,deprecated=14.0,message="Instead of kSecUseAuthenticationUI, use kSecUseAuthenticationContext and set LAContext.interactionNotAllowed property"))); extern const CFStringRef kSecUseAuthenticationUIFail __attribute__((availability(macos,introduced=10.11,deprecated=11.0,message="Instead of kSecUseAuthenticationUI, use kSecUseAuthenticationContext and set LAContext.interactionNotAllowed property"))) __attribute__((availability(ios,introduced=9.0,deprecated=14.0,message="Instead of kSecUseAuthenticationUI, use kSecUseAuthenticationContext and set LAContext.interactionNotAllowed property"))); extern const CFStringRef kSecUseAuthenticationUISkip __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecAttrTokenIDSecureEnclave __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecAttrAccessGroupToken __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); OSStatus SecItemCopyMatching(CFDictionaryRef query, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); OSStatus SecItemAdd(CFDictionaryRef attributes, CFTypeRef * _Nullable __attribute__((cf_returns_retained)) result) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); OSStatus SecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); OSStatus SecItemDelete(CFDictionaryRef query) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin typedef uint32_t SecPadding; enum { kSecPaddingNone = 0, kSecPaddingPKCS1 = 1, kSecPaddingOAEP = 2, kSecPaddingSigRaw = 0x4000, kSecPaddingPKCS1MD2 = 0x8000, kSecPaddingPKCS1MD5 = 0x8001, kSecPaddingPKCS1SHA1 = 0x8002, kSecPaddingPKCS1SHA224 = 0x8003, kSecPaddingPKCS1SHA256 = 0x8004, kSecPaddingPKCS1SHA384 = 0x8005, kSecPaddingPKCS1SHA512 = 0x8006, }; extern const CFStringRef kSecPrivateKeyAttrs __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecPublicKeyAttrs __attribute__((availability(ios,introduced=2.0))); CFTypeID SecKeyGetTypeID(void) __attribute__((availability(ios,introduced=2.0))); OSStatus SecKeyGeneratePair(CFDictionaryRef parameters, SecKeyRef * _Nullable __attribute__((cf_returns_retained)) publicKey, SecKeyRef * _Nullable __attribute__((cf_returns_retained)) privateKey) __attribute__((availability(ios,introduced=2.0))); OSStatus SecKeyRawSign( SecKeyRef key, SecPadding padding, const uint8_t *dataToSign, size_t dataToSignLen, uint8_t *sig, size_t *sigLen) __attribute__((availability(ios,introduced=2.0))); OSStatus SecKeyRawVerify( SecKeyRef key, SecPadding padding, const uint8_t *signedData, size_t signedDataLen, const uint8_t *sig, size_t sigLen) __attribute__((availability(ios,introduced=2.0))); OSStatus SecKeyEncrypt( SecKeyRef key, SecPadding padding, const uint8_t *plainText, size_t plainTextLen, uint8_t *cipherText, size_t *cipherTextLen) __attribute__((availability(ios,introduced=2.0))); OSStatus SecKeyDecrypt( SecKeyRef key, SecPadding padding, const uint8_t *cipherText, size_t cipherTextLen, uint8_t *plainText, size_t *plainTextLen) __attribute__((availability(ios,introduced=2.0))); SecKeyRef _Nullable SecKeyCreateRandomKey(CFDictionaryRef parameters, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); SecKeyRef _Nullable SecKeyCreateWithData(CFDataRef keyData, CFDictionaryRef attributes, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); size_t SecKeyGetBlockSize(SecKeyRef key) __attribute__((availability(ios,introduced=2.0))); CFDataRef _Nullable SecKeyCopyExternalRepresentation(SecKeyRef key, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); CFDictionaryRef _Nullable SecKeyCopyAttributes(SecKeyRef key) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); SecKeyRef _Nullable SecKeyCopyPublicKey(SecKeyRef key) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); typedef CFStringRef SecKeyAlgorithm __attribute__((swift_wrapper(enum))) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureRaw __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15Raw __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPKCS1v15SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePKCS1v15SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA1 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA224 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA256 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA384 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureDigestPSSSHA512 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA1 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA224 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA256 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA384 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSASignatureMessagePSSSHA512 __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureRFC4754 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureDigestX962SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDSASignatureMessageX962SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionRaw __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionPKCS1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA1AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA224AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA256AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA384AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmRSAEncryptionOAEPSHA512AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA384AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardX963SHA512AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA1AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA224AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA256AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA384AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorX963SHA512AESGCM __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA224AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA256AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA384AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionStandardVariableIVX963SHA512AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA224AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA256AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA384AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECIESEncryptionCofactorVariableIVX963SHA512AESGCM __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandard __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeStandardX963SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactor __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA1 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA224 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA256 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA384 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyAlgorithm kSecKeyAlgorithmECDHKeyExchangeCofactorX963SHA512 __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); CFDataRef _Nullable SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); Boolean SecKeyVerifySignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef signedData, CFDataRef signature, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); CFDataRef _Nullable SecKeyCreateEncryptedData(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef plaintext, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); CFDataRef _Nullable SecKeyCreateDecryptedData(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef ciphertext, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); typedef CFStringRef SecKeyKeyExchangeParameter __attribute__((swift_wrapper(enum))) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterRequestedSize __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); extern const SecKeyKeyExchangeParameter kSecKeyKeyExchangeParameterSharedInfo __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); CFDataRef _Nullable SecKeyCopyKeyExchangeResult(SecKeyRef privateKey, SecKeyAlgorithm algorithm, SecKeyRef publicKey, CFDictionaryRef parameters, CFErrorRef *error) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); typedef CFIndex SecKeyOperationType; enum { kSecKeyOperationTypeSign = 0, kSecKeyOperationTypeVerify = 1, kSecKeyOperationTypeEncrypt = 2, kSecKeyOperationTypeDecrypt = 3, kSecKeyOperationTypeKeyExchange = 4, } __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); Boolean SecKeyIsAlgorithmSupported(SecKeyRef key, SecKeyOperationType operation, SecKeyAlgorithm algorithm) __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kSecPolicyAppleX509Basic __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleSSL __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleSMIME __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleEAP __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleIPsec __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyApplePKINITClient __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); extern const CFStringRef kSecPolicyApplePKINITServer __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macCatalyst,unavailable))); extern const CFStringRef kSecPolicyAppleCodeSigning __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyMacAppStoreReceipt __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecPolicyAppleIDValidation __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleTimeStamping __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyAppleRevocation __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyApplePassbookSigning __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyApplePayIssuerEncryption __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecPolicyOid __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyName __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyClient __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyRevocationFlags __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPolicyTeamIdentifier __attribute__((availability(ios,introduced=7.0))); CFTypeID SecPolicyGetTypeID(void) __attribute__((availability(ios,introduced=2.0))); _Nullable CFDictionaryRef SecPolicyCopyProperties(SecPolicyRef policyRef) __attribute__((availability(ios,introduced=7.0))); SecPolicyRef SecPolicyCreateBasicX509(void) __attribute__((availability(ios,introduced=2.0))); SecPolicyRef SecPolicyCreateSSL(Boolean server, CFStringRef _Nullable hostname) __attribute__((availability(ios,introduced=2.0))); enum { kSecRevocationOCSPMethod = (1 << 0), kSecRevocationCRLMethod = (1 << 1), kSecRevocationPreferCRL = (1 << 2), kSecRevocationRequirePositiveResponse = (1 << 3), kSecRevocationNetworkAccessDisabled = (1 << 4), kSecRevocationUseAnyAvailableMethod = (kSecRevocationOCSPMethod | kSecRevocationCRLMethod) }; _Nullable SecPolicyRef SecPolicyCreateRevocation(CFOptionFlags revocationFlags) __attribute__((availability(ios,introduced=7.0))); _Nullable SecPolicyRef SecPolicyCreateWithProperties(CFTypeRef policyIdentifier, CFDictionaryRef _Nullable properties) __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin typedef const struct __SecRandom * SecRandomRef; extern const SecRandomRef kSecRandomDefault __attribute__((availability(ios,introduced=2.0))); int SecRandomCopyBytes(SecRandomRef _Nullable rnd, size_t count, void *bytes) __attribute__ ((warn_unused_result)) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kSecImportExportPassphrase __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecImportExportKeychain __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecImportExportAccess __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kSecImportItemLabel __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecImportItemKeyID __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecImportItemTrust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecImportItemCertChain __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); extern const CFStringRef kSecImportItemIdentity __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); OSStatus SecPKCS12Import(CFDataRef pkcs12_data, CFDictionaryRef options, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) items) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin typedef uint32_t SecTrustResultType; enum { kSecTrustResultInvalid __attribute__((availability(ios,introduced=2_0))) = 0, kSecTrustResultProceed __attribute__((availability(ios,introduced=2_0))) = 1, kSecTrustResultConfirm __attribute__((availability(ios,introduced=2_0,deprecated=7_0,message="" ))) = 2, kSecTrustResultDeny __attribute__((availability(ios,introduced=2_0))) = 3, kSecTrustResultUnspecified __attribute__((availability(ios,introduced=2_0))) = 4, kSecTrustResultRecoverableTrustFailure __attribute__((availability(ios,introduced=2_0))) = 5, kSecTrustResultFatalTrustFailure __attribute__((availability(ios,introduced=2_0))) = 6, kSecTrustResultOtherError __attribute__((availability(ios,introduced=2_0))) = 7 }; typedef struct __attribute__((objc_bridge(id))) __SecTrust *SecTrustRef; extern const CFStringRef kSecPropertyTypeTitle __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecPropertyTypeError __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustEvaluationDate __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustExtendedValidation __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustOrganizationName __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustResultValue __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustRevocationChecked __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustRevocationValidUntilDate __attribute__((availability(ios,introduced=7.0))); extern const CFStringRef kSecTrustCertificateTransparency __attribute__((availability(ios,introduced=9.0))); extern const CFStringRef kSecTrustCertificateTransparencyWhiteList __attribute__((availability(ios,introduced=10.0,deprecated=11.0))); typedef void (*SecTrustCallback)(SecTrustRef trustRef, SecTrustResultType trustResult); CFTypeID SecTrustGetTypeID(void) __attribute__((availability(ios,introduced=2.0))); OSStatus SecTrustCreateWithCertificates(CFTypeRef certificates, CFTypeRef _Nullable policies, SecTrustRef * _Nonnull __attribute__((cf_returns_retained)) trust) __attribute__((availability(ios,introduced=2.0))); OSStatus SecTrustSetPolicies(SecTrustRef trust, CFTypeRef policies) __attribute__((availability(ios,introduced=6.0))); OSStatus SecTrustCopyPolicies(SecTrustRef trust, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) policies) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustSetNetworkFetchAllowed(SecTrustRef trust, Boolean allowFetch) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustGetNetworkFetchAllowed(SecTrustRef trust, Boolean *allowFetch) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustSetAnchorCertificates(SecTrustRef trust, CFArrayRef _Nullable anchorCertificates) __attribute__((availability(ios,introduced=2.0))); OSStatus SecTrustSetAnchorCertificatesOnly(SecTrustRef trust, Boolean anchorCertificatesOnly) __attribute__((availability(ios,introduced=2.0))); OSStatus SecTrustCopyCustomAnchorCertificates(SecTrustRef trust, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) anchors) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustSetVerifyDate(SecTrustRef trust, CFDateRef verifyDate) __attribute__((availability(ios,introduced=2.0))); CFAbsoluteTime SecTrustGetVerifyTime(SecTrustRef trust) __attribute__((availability(ios,introduced=2.0))); OSStatus SecTrustEvaluate(SecTrustRef trust, SecTrustResultType *result) __attribute__((availability(macos,introduced=10.3,deprecated=10.15,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(watchos,introduced=1.0,deprecated=6.0,replacement="SecTrustEvaluateWithError"))) __attribute__((availability(tvos,introduced=2.0,deprecated=13.0,replacement="SecTrustEvaluateWithError"))); OSStatus SecTrustEvaluateAsync(SecTrustRef trust, dispatch_queue_t _Nullable queue, SecTrustCallback result) __attribute__((availability(macos,introduced=10.7,deprecated=10.15,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(watchos,introduced=1.0,deprecated=6.0,replacement="SecTrustEvaluateAsyncWithError"))) __attribute__((availability(tvos,introduced=7.0,deprecated=13.0,replacement="SecTrustEvaluateAsyncWithError"))); __attribute__((warn_unused_result)) bool SecTrustEvaluateWithError(SecTrustRef trust, CFErrorRef _Nullable * _Nullable __attribute__((cf_returns_retained)) error) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))); typedef void (*SecTrustWithErrorCallback)(SecTrustRef trustRef, bool result, CFErrorRef _Nullable error); OSStatus SecTrustEvaluateAsyncWithError(SecTrustRef trust, dispatch_queue_t queue, SecTrustWithErrorCallback result) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); OSStatus SecTrustGetTrustResult(SecTrustRef trust, SecTrustResultType *result) __attribute__((availability(ios,introduced=7.0))); _Nullable SecKeyRef SecTrustCopyPublicKey(SecTrustRef trust) __attribute__((availability(macos,introduced=10.7,deprecated=11.0,replacement="SecTrustCopyKey"))) __attribute__((availability(ios,introduced=2.0,deprecated=14.0,replacement="SecTrustCopyKey"))) __attribute__((availability(watchos,introduced=1.0,deprecated=7.0,replacement="SecTrustCopyKey"))) __attribute__((availability(tvos,introduced=9.0,deprecated=14.0,replacement="SecTrustCopyKey"))); _Nullable SecKeyRef SecTrustCopyKey(SecTrustRef trust) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); CFIndex SecTrustGetCertificateCount(SecTrustRef trust) __attribute__((availability(ios,introduced=2.0))); _Nullable SecCertificateRef SecTrustGetCertificateAtIndex(SecTrustRef trust, CFIndex ix) __attribute__((availability(ios,introduced=2.0))); CFDataRef SecTrustCopyExceptions(SecTrustRef trust) __attribute__((availability(ios,introduced=4.0))); bool SecTrustSetExceptions(SecTrustRef trust, CFDataRef _Nullable exceptions) __attribute__((availability(ios,introduced=4.0))); _Nullable CFArrayRef SecTrustCopyProperties(SecTrustRef trust) __attribute__((availability(ios,introduced=2.0))); _Nullable CFDictionaryRef SecTrustCopyResult(SecTrustRef trust) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustSetOCSPResponse(SecTrustRef trust, CFTypeRef _Nullable responseData) __attribute__((availability(ios,introduced=7.0))); OSStatus SecTrustSetSignedCertificateTimestamps(SecTrustRef trust, CFArrayRef _Nullable sctArray) __attribute__((availability(macos,introduced=10.14.2))) __attribute__((availability(ios,introduced=12.1.1))) __attribute__((availability(tvos,introduced=12.1.1))) __attribute__((availability(watchos,introduced=5.1.1))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kSecSharedPassword __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); void SecAddSharedWebCredential(CFStringRef fqdn, CFStringRef account, CFStringRef _Nullable password, void (^completionHandler)(CFErrorRef _Nullable error)) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); void SecRequestSharedWebCredential(CFStringRef _Nullable fqdn, CFStringRef _Nullable account, void (^completionHandler)(CFArrayRef _Nullable credentials, CFErrorRef _Nullable error)) __attribute__((availability(ios,introduced=8.0,deprecated=14.0,message="Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)"))) __attribute__((availability(macCatalyst,introduced=14.0,deprecated=14.0,message="Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)"))) __attribute__((availability(macos,introduced=10.16,deprecated=11.0,message="Use ASAuthorizationController to make an ASAuthorizationPasswordRequest (AuthenticationServices framework)"))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); _Nullable CFStringRef SecCreateSharedWebCredentialPassword(void) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull end } extern "C" { __attribute__((visibility("default"))) void *sec_retain(void *obj); __attribute__((visibility("default"))) void sec_release(void *obj); } // @protocol OS_sec_object <NSObject> /* @end */ typedef NSObject/*<OS_sec_object>*/ * __attribute__((objc_independent_class)) sec_object_t; typedef uint16_t SSLCipherSuite; enum { SSL_NULL_WITH_NULL_NULL = 0x0000, SSL_RSA_WITH_NULL_MD5 = 0x0001, SSL_RSA_WITH_NULL_SHA = 0x0002, SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 0x0003, SSL_RSA_WITH_RC4_128_MD5 = 0x0004, SSL_RSA_WITH_RC4_128_SHA = 0x0005, SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 0x0006, SSL_RSA_WITH_IDEA_CBC_SHA = 0x0007, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0008, SSL_RSA_WITH_DES_CBC_SHA = 0x0009, SSL_RSA_WITH_3DES_EDE_CBC_SHA = 0x000A, SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x000B, SSL_DH_DSS_WITH_DES_CBC_SHA = 0x000C, SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 0x000D, SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x000E, SSL_DH_RSA_WITH_DES_CBC_SHA = 0x000F, SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 0x0010, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 0x0011, SSL_DHE_DSS_WITH_DES_CBC_SHA = 0x0012, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 0x0014, SSL_DHE_RSA_WITH_DES_CBC_SHA = 0x0015, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016, SSL_DH_anon_EXPORT_WITH_RC4_40_MD5 = 0x0017, SSL_DH_anon_WITH_RC4_128_MD5 = 0x0018, SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 0x0019, SSL_DH_anon_WITH_DES_CBC_SHA = 0x001A, SSL_DH_anon_WITH_3DES_EDE_CBC_SHA = 0x001B, SSL_FORTEZZA_DMS_WITH_NULL_SHA = 0x001C, SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA = 0x001D, TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F, TLS_DH_DSS_WITH_AES_128_CBC_SHA = 0x0030, TLS_DH_RSA_WITH_AES_128_CBC_SHA = 0x0031, TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032, TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033, TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034, TLS_RSA_WITH_AES_256_CBC_SHA = 0x0035, TLS_DH_DSS_WITH_AES_256_CBC_SHA = 0x0036, TLS_DH_RSA_WITH_AES_256_CBC_SHA = 0x0037, TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 0x0038, TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 0x0039, TLS_DH_anon_WITH_AES_256_CBC_SHA = 0x003A, TLS_ECDH_ECDSA_WITH_NULL_SHA = 0xC001, TLS_ECDH_ECDSA_WITH_RC4_128_SHA = 0xC002, TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC003, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 0xC004, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 0xC005, TLS_ECDHE_ECDSA_WITH_NULL_SHA = 0xC006, TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = 0xC007, TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 0xC008, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 0xC009, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 0xC00A, TLS_ECDH_RSA_WITH_NULL_SHA = 0xC00B, TLS_ECDH_RSA_WITH_RC4_128_SHA = 0xC00C, TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = 0xC00D, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = 0xC00E, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = 0xC00F, TLS_ECDHE_RSA_WITH_NULL_SHA = 0xC010, TLS_ECDHE_RSA_WITH_RC4_128_SHA = 0xC011, TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 0xC012, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 0xC013, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014, TLS_ECDH_anon_WITH_NULL_SHA = 0xC015, TLS_ECDH_anon_WITH_RC4_128_SHA = 0xC016, TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = 0xC017, TLS_ECDH_anon_WITH_AES_128_CBC_SHA = 0xC018, TLS_ECDH_anon_WITH_AES_256_CBC_SHA = 0xC019, TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA = 0xC035, TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA = 0xC036, TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 = 0xCCAB, TLS_NULL_WITH_NULL_NULL = 0x0000, TLS_RSA_WITH_NULL_MD5 = 0x0001, TLS_RSA_WITH_NULL_SHA = 0x0002, TLS_RSA_WITH_RC4_128_MD5 = 0x0004, TLS_RSA_WITH_RC4_128_SHA = 0x0005, TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000A, TLS_RSA_WITH_NULL_SHA256 = 0x003B, TLS_RSA_WITH_AES_128_CBC_SHA256 = 0x003C, TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x003D, TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 0x000D, TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 0x0010, TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013, TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016, TLS_DH_DSS_WITH_AES_128_CBC_SHA256 = 0x003E, TLS_DH_RSA_WITH_AES_128_CBC_SHA256 = 0x003F, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 = 0x0040, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 0x0067, TLS_DH_DSS_WITH_AES_256_CBC_SHA256 = 0x0068, TLS_DH_RSA_WITH_AES_256_CBC_SHA256 = 0x0069, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 = 0x006A, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 0x006B, TLS_DH_anon_WITH_RC4_128_MD5 = 0x0018, TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 0x001B, TLS_DH_anon_WITH_AES_128_CBC_SHA256 = 0x006C, TLS_DH_anon_WITH_AES_256_CBC_SHA256 = 0x006D, TLS_PSK_WITH_RC4_128_SHA = 0x008A, TLS_PSK_WITH_3DES_EDE_CBC_SHA = 0x008B, TLS_PSK_WITH_AES_128_CBC_SHA = 0x008C, TLS_PSK_WITH_AES_256_CBC_SHA = 0x008D, TLS_DHE_PSK_WITH_RC4_128_SHA = 0x008E, TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 0x008F, TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 0x0090, TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 0x0091, TLS_RSA_PSK_WITH_RC4_128_SHA = 0x0092, TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 0x0093, TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 0x0094, TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 0x0095, TLS_PSK_WITH_NULL_SHA = 0x002C, TLS_DHE_PSK_WITH_NULL_SHA = 0x002D, TLS_RSA_PSK_WITH_NULL_SHA = 0x002E, TLS_RSA_WITH_AES_128_GCM_SHA256 = 0x009C, TLS_RSA_WITH_AES_256_GCM_SHA384 = 0x009D, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 0x009E, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 0x009F, TLS_DH_RSA_WITH_AES_128_GCM_SHA256 = 0x00A0, TLS_DH_RSA_WITH_AES_256_GCM_SHA384 = 0x00A1, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 = 0x00A2, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 = 0x00A3, TLS_DH_DSS_WITH_AES_128_GCM_SHA256 = 0x00A4, TLS_DH_DSS_WITH_AES_256_GCM_SHA384 = 0x00A5, TLS_DH_anon_WITH_AES_128_GCM_SHA256 = 0x00A6, TLS_DH_anon_WITH_AES_256_GCM_SHA384 = 0x00A7, TLS_PSK_WITH_AES_128_GCM_SHA256 = 0x00A8, TLS_PSK_WITH_AES_256_GCM_SHA384 = 0x00A9, TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 = 0x00AA, TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 = 0x00AB, TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 = 0x00AC, TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 = 0x00AD, TLS_PSK_WITH_AES_128_CBC_SHA256 = 0x00AE, TLS_PSK_WITH_AES_256_CBC_SHA384 = 0x00AF, TLS_PSK_WITH_NULL_SHA256 = 0x00B0, TLS_PSK_WITH_NULL_SHA384 = 0x00B1, TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 = 0x00B2, TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 = 0x00B3, TLS_DHE_PSK_WITH_NULL_SHA256 = 0x00B4, TLS_DHE_PSK_WITH_NULL_SHA384 = 0x00B5, TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 = 0x00B6, TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 = 0x00B7, TLS_RSA_PSK_WITH_NULL_SHA256 = 0x00B8, TLS_RSA_PSK_WITH_NULL_SHA384 = 0x00B9, TLS_AES_128_GCM_SHA256 = 0x1301, TLS_AES_256_GCM_SHA384 = 0x1302, TLS_CHACHA20_POLY1305_SHA256 = 0x1303, TLS_AES_128_CCM_SHA256 = 0x1304, TLS_AES_128_CCM_8_SHA256 = 0x1305, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC023, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC024, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC025, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC026, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 0xC027, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 0xC028, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = 0xC029, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = 0xC02A, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02B, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02C, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02D, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02E, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 0xC02F, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 0xC030, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = 0xC031, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = 0xC032, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA8, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA9, TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 0x00FF, SSL_RSA_WITH_RC2_CBC_MD5 = 0xFF80, SSL_RSA_WITH_IDEA_CBC_MD5 = 0xFF81, SSL_RSA_WITH_DES_CBC_MD5 = 0xFF82, SSL_RSA_WITH_3DES_EDE_CBC_MD5 = 0xFF83, SSL_NO_SUCH_CIPHERSUITE = 0xFFFF }; typedef int SSLCiphersuiteGroup; enum { kSSLCiphersuiteGroupDefault, kSSLCiphersuiteGroupCompatibility, kSSLCiphersuiteGroupLegacy, kSSLCiphersuiteGroupATS, kSSLCiphersuiteGroupATSCompatibility, }; // @protocol OS_sec_trust <NSObject> /* @end */ typedef NSObject/*<OS_sec_trust>*/ * __attribute__((objc_independent_class)) sec_trust_t; // @protocol OS_sec_identity <NSObject> /* @end */ typedef NSObject/*<OS_sec_identity>*/ * __attribute__((objc_independent_class)) sec_identity_t; // @protocol OS_sec_certificate <NSObject> /* @end */ typedef NSObject/*<OS_sec_certificate>*/ * __attribute__((objc_independent_class)) sec_certificate_t; typedef uint16_t tls_protocol_version_t; enum { tls_protocol_version_TLSv10 __attribute__((swift_name("TLSv10"))) = 0x0301, tls_protocol_version_TLSv11 __attribute__((swift_name("TLSv11"))) = 0x0302, tls_protocol_version_TLSv12 __attribute__((swift_name("TLSv12"))) = 0x0303, tls_protocol_version_TLSv13 __attribute__((swift_name("TLSv13"))) = 0x0304, tls_protocol_version_DTLSv10 __attribute__((swift_name("DTLSv10"))) = 0xfeff, tls_protocol_version_DTLSv12 __attribute__((swift_name("DTLSv12"))) = 0xfefd, }; typedef uint16_t tls_ciphersuite_t; enum { tls_ciphersuite_RSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("RSA_WITH_3DES_EDE_CBC_SHA"))) = 0x000A, tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("RSA_WITH_AES_128_CBC_SHA"))) = 0x002F, tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("RSA_WITH_AES_256_CBC_SHA"))) = 0x0035, tls_ciphersuite_RSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("RSA_WITH_AES_128_GCM_SHA256"))) = 0x009C, tls_ciphersuite_RSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("RSA_WITH_AES_256_GCM_SHA384"))) = 0x009D, tls_ciphersuite_RSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("RSA_WITH_AES_128_CBC_SHA256"))) = 0x003C, tls_ciphersuite_RSA_WITH_AES_256_CBC_SHA256 __attribute__((swift_name("RSA_WITH_AES_256_CBC_SHA256"))) = 0x003D, tls_ciphersuite_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA"))) = 0xC008, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_CBC_SHA"))) = 0xC009, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_CBC_SHA"))) = 0xC00A, tls_ciphersuite_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_3DES_EDE_CBC_SHA"))) = 0xC012, tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_CBC_SHA"))) = 0xC013, tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_CBC_SHA"))) = 0xC014, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"))) = 0xC023, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"))) = 0xC024, tls_ciphersuite_ECDHE_RSA_WITH_AES_128_CBC_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_CBC_SHA256"))) = 0xC027, tls_ciphersuite_ECDHE_RSA_WITH_AES_256_CBC_SHA384 __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_CBC_SHA384"))) = 0xC028, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"))) = 0xC02B, tls_ciphersuite_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"))) = 0xC02C, tls_ciphersuite_ECDHE_RSA_WITH_AES_128_GCM_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_AES_128_GCM_SHA256"))) = 0xC02F, tls_ciphersuite_ECDHE_RSA_WITH_AES_256_GCM_SHA384 __attribute__((swift_name("ECDHE_RSA_WITH_AES_256_GCM_SHA384"))) = 0xC030, tls_ciphersuite_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"))) = 0xCCA8, tls_ciphersuite_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"))) = 0xCCA9, tls_ciphersuite_AES_128_GCM_SHA256 __attribute__((swift_name("AES_128_GCM_SHA256"))) = 0x1301, tls_ciphersuite_AES_256_GCM_SHA384 __attribute__((swift_name("AES_256_GCM_SHA384"))) = 0x1302, tls_ciphersuite_CHACHA20_POLY1305_SHA256 __attribute__((swift_name("CHACHA20_POLY1305_SHA256"))) = 0x1303, }; typedef uint16_t tls_ciphersuite_group_t; enum { tls_ciphersuite_group_default, tls_ciphersuite_group_compatibility, tls_ciphersuite_group_legacy, tls_ciphersuite_group_ats, tls_ciphersuite_group_ats_compatibility, }; typedef int SSLProtocol; enum { kSSLProtocolUnknown __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 0, kTLSProtocol1 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 4, kTLSProtocol11 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 7, kTLSProtocol12 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 8, kDTLSProtocol1 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 9, kTLSProtocol13 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 10, kDTLSProtocol12 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 11, kTLSProtocolMaxSupported __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 999, kSSLProtocol2 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 1, kSSLProtocol3 __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 2, kSSLProtocol3Only __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 3, kTLSProtocol1Only __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 5, kSSLProtocolAll __attribute__((availability(ios,introduced=5_0,deprecated=13_0,message="" ))) = 6, }; extern "C" { #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable sec_trust_t sec_trust_create(SecTrustRef trust); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) SecTrustRef sec_trust_copy_ref(sec_trust_t trust); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable sec_identity_t sec_identity_create(SecIdentityRef identity); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable sec_identity_t sec_identity_create_with_certificates(SecIdentityRef identity, CFArrayRef certificates); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) bool sec_identity_access_certificates(sec_identity_t identity, void (^handler)(sec_certificate_t certificate)); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) _Nullable SecIdentityRef sec_identity_copy_ref(sec_identity_t identity); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) _Nullable CFArrayRef sec_identity_copy_certificates_ref(sec_identity_t identity); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable sec_certificate_t sec_certificate_create(SecCertificateRef certificate); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) SecCertificateRef sec_certificate_copy_ref(sec_certificate_t certificate); #pragma clang assume_nonnull end } // @protocol OS_sec_protocol_metadata <NSObject> /* @end */ typedef NSObject/*<OS_sec_protocol_metadata>*/ * __attribute__((objc_independent_class)) sec_protocol_metadata_t; extern "C" { #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) const char * _Nullable sec_protocol_metadata_get_negotiated_protocol(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t sec_protocol_metadata_copy_peer_public_key(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_protocol_version_t sec_protocol_metadata_get_negotiated_tls_protocol_version(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_protocol_version"))) SSLProtocol sec_protocol_metadata_get_negotiated_protocol_version(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_ciphersuite_t sec_protocol_metadata_get_negotiated_tls_ciphersuite(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,replacement="sec_protocol_metadata_get_negotiated_tls_ciphersuite"))) SSLCipherSuite sec_protocol_metadata_get_negotiated_ciphersuite(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_get_early_data_accepted(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_access_peer_certificate_chain(sec_protocol_metadata_t metadata, void (^handler)(sec_certificate_t certificate)); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_access_ocsp_response(sec_protocol_metadata_t metadata, void (^handler)(dispatch_data_t ocsp_data)); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_access_supported_signature_algorithms(sec_protocol_metadata_t metadata, void (^handler)(uint16_t signature_algorithm)); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_access_distinguished_names(sec_protocol_metadata_t metadata, void (^handler)(dispatch_data_t distinguished_name)); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) bool sec_protocol_metadata_access_pre_shared_keys(sec_protocol_metadata_t metadata, void (^handler)(dispatch_data_t psk, dispatch_data_t psk_identity)); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) const char * _Nullable sec_protocol_metadata_get_server_name(sec_protocol_metadata_t metadata); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_peers_are_equal(sec_protocol_metadata_t metadataA, sec_protocol_metadata_t metadataB); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) bool sec_protocol_metadata_challenge_parameters_are_equal(sec_protocol_metadata_t metadataA, sec_protocol_metadata_t metadataB); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t sec_protocol_metadata_create_secret(sec_protocol_metadata_t metadata, size_t label_len, const char *label, size_t exporter_length); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((__ns_returns_retained__)) _Nullable dispatch_data_t sec_protocol_metadata_create_secret_with_context(sec_protocol_metadata_t metadata, size_t label_len, const char *label, size_t context_len, const uint8_t *context, size_t exporter_length); #pragma clang assume_nonnull end } // @protocol OS_sec_protocol_options <NSObject> /* @end */ typedef NSObject/*<OS_sec_protocol_options>*/ * __attribute__((objc_independent_class)) sec_protocol_options_t; extern "C" { #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) bool sec_protocol_options_are_equal(sec_protocol_options_t optionsA, sec_protocol_options_t optionsB); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_local_identity(sec_protocol_options_t options, sec_identity_t identity); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_append_tls_ciphersuite(sec_protocol_options_t options, tls_ciphersuite_t ciphersuite); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite"))) void sec_protocol_options_add_tls_ciphersuite(sec_protocol_options_t options, SSLCipherSuite ciphersuite); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_append_tls_ciphersuite_group(sec_protocol_options_t options, tls_ciphersuite_group_t group); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,message="Use sec_protocol_options_append_tls_ciphersuite_group"))) void sec_protocol_options_add_tls_ciphersuite_group(sec_protocol_options_t options, SSLCiphersuiteGroup group); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,replacement="sec_protocol_options_set_min_tls_protocol_version"))) void sec_protocol_options_set_tls_min_version(sec_protocol_options_t options, SSLProtocol version); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_set_min_tls_protocol_version(sec_protocol_options_t options, tls_protocol_version_t version); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_protocol_version_t sec_protocol_options_get_default_min_tls_protocol_version(void); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_protocol_version_t sec_protocol_options_get_default_min_dtls_protocol_version(void); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) __attribute__((availability(macCatalyst,introduced=13.0,deprecated=13.0,replacement="sec_protocol_options_set_max_tls_protocol_version"))) void sec_protocol_options_set_tls_max_version(sec_protocol_options_t options, SSLProtocol version); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_set_max_tls_protocol_version(sec_protocol_options_t options, tls_protocol_version_t version); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_protocol_version_t sec_protocol_options_get_default_max_tls_protocol_version(void); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) tls_protocol_version_t sec_protocol_options_get_default_max_dtls_protocol_version(void); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_add_tls_application_protocol(sec_protocol_options_t options, const char *application_protocol); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_server_name(sec_protocol_options_t options, const char *server_name); __attribute__((availability(macos,introduced=10.14,deprecated=10.15,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(ios,introduced=12.0,deprecated=13.0,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(watchos,introduced=5.0,deprecated=6.0,message="DHE ciphersuites are no longer supported"))) __attribute__((availability(tvos,introduced=12.0,deprecated=13.0,message="DHE ciphersuites are no longer supported"))) void sec_protocol_options_set_tls_diffie_hellman_parameters(sec_protocol_options_t options, dispatch_data_t params); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_add_pre_shared_key(sec_protocol_options_t options, dispatch_data_t psk, dispatch_data_t psk_identity); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_set_tls_pre_shared_key_identity_hint(sec_protocol_options_t options, dispatch_data_t psk_identity_hint); typedef void (*sec_protocol_pre_shared_key_selection_complete_t)(dispatch_data_t _Nullable psk_identity); typedef void (*sec_protocol_pre_shared_key_selection_t)(sec_protocol_metadata_t metadata, dispatch_data_t _Nullable psk_identity_hint, sec_protocol_pre_shared_key_selection_complete_t complete); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) void sec_protocol_options_set_pre_shared_key_selection_block(sec_protocol_options_t options, sec_protocol_pre_shared_key_selection_t psk_selection_block, dispatch_queue_t psk_selection_queue); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_tickets_enabled(sec_protocol_options_t options, bool tickets_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_is_fallback_attempt(sec_protocol_options_t options, bool is_fallback_attempt); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_resumption_enabled(sec_protocol_options_t options, bool resumption_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_false_start_enabled(sec_protocol_options_t options, bool false_start_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_ocsp_enabled(sec_protocol_options_t options, bool ocsp_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_sct_enabled(sec_protocol_options_t options, bool sct_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_tls_renegotiation_enabled(sec_protocol_options_t options, bool renegotiation_enabled); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_peer_authentication_required(sec_protocol_options_t options, bool peer_authentication_required); __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) void sec_protocol_options_set_peer_authentication_optional(sec_protocol_options_t options, bool peer_authentication_optional); typedef void (*sec_protocol_key_update_complete_t)(void); typedef void (*sec_protocol_key_update_t)(sec_protocol_metadata_t metadata, sec_protocol_key_update_complete_t complete); typedef void (*sec_protocol_challenge_complete_t)(sec_identity_t _Nullable identity); typedef void (*sec_protocol_challenge_t)(sec_protocol_metadata_t metadata, sec_protocol_challenge_complete_t complete); typedef void (*sec_protocol_verify_complete_t)(bool result); typedef void (*sec_protocol_verify_t)(sec_protocol_metadata_t metadata, sec_trust_t trust_ref, sec_protocol_verify_complete_t complete); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_key_update_block(sec_protocol_options_t options, sec_protocol_key_update_t key_update_block, dispatch_queue_t key_update_queue); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_challenge_block(sec_protocol_options_t options, sec_protocol_challenge_t challenge_block, dispatch_queue_t challenge_queue); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) void sec_protocol_options_set_verify_block(sec_protocol_options_t options, sec_protocol_verify_t verify_block, dispatch_queue_t verify_block_queue); #pragma clang assume_nonnull end } // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSURLCredentialPersistence; enum { NSURLCredentialPersistenceNone, NSURLCredentialPersistenceForSession, NSURLCredentialPersistencePermanent, NSURLCredentialPersistenceSynchronizable __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) }; // @class NSURLCredentialInternal; #ifndef _REWRITER_typedef_NSURLCredentialInternal #define _REWRITER_typedef_NSURLCredentialInternal typedef struct objc_object NSURLCredentialInternal; typedef struct {} _objc_exc_NSURLCredentialInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLCredential #define _REWRITER_typedef_NSURLCredential typedef struct objc_object NSURLCredential; typedef struct {} _objc_exc_NSURLCredential; #endif struct NSURLCredential_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLCredentialInternal *_internal; }; // @property (readonly) NSURLCredentialPersistence persistence; /* @end */ // @interface NSURLCredential(NSInternetPassword) // - (instancetype)initWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence; // + (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence; // @property (nullable, readonly, copy) NSString *user; // @property (nullable, readonly, copy) NSString *password; // @property (readonly) BOOL hasPassword; /* @end */ // @interface NSURLCredential(NSClientCertificate) // - (instancetype)initWithIdentity:(SecIdentityRef)identity certificates:(nullable NSArray *)certArray persistence:(NSURLCredentialPersistence)persistence __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSURLCredential *)credentialWithIdentity:(SecIdentityRef)identity certificates:(nullable NSArray *)certArray persistence:(NSURLCredentialPersistence)persistence __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly) SecIdentityRef identity; // @property (readonly, copy) NSArray *certificates __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSURLCredential(NSServerTrust) // - (instancetype)initWithTrust:(SecTrustRef)trust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSURLCredential *)credentialForTrust:(SecTrustRef)trust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #pragma clang assume_nonnull begin extern "C" NSString * const NSURLProtectionSpaceHTTP __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceHTTPS __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceFTP __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceHTTPProxy __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceHTTPSProxy __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceFTPProxy __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLProtectionSpaceSOCKSProxy __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodDefault __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodHTTPBasic __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodHTTPDigest __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodHTMLForm __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodNTLM __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodNegotiate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodClientCertificate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLAuthenticationMethodServerTrust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @class NSURLProtectionSpaceInternal; #ifndef _REWRITER_typedef_NSURLProtectionSpaceInternal #define _REWRITER_typedef_NSURLProtectionSpaceInternal typedef struct objc_object NSURLProtectionSpaceInternal; typedef struct {} _objc_exc_NSURLProtectionSpaceInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLProtectionSpace #define _REWRITER_typedef_NSURLProtectionSpace typedef struct objc_object NSURLProtectionSpace; typedef struct {} _objc_exc_NSURLProtectionSpace; #endif struct NSURLProtectionSpace_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLProtectionSpaceInternal *_internal; }; // - (instancetype)initWithHost:(NSString *)host port:(NSInteger)port protocol:(nullable NSString *)protocol realm:(nullable NSString *)realm authenticationMethod:(nullable NSString *)authenticationMethod; // - (instancetype)initWithProxyHost:(NSString *)host port:(NSInteger)port type:(nullable NSString *)type realm:(nullable NSString *)realm authenticationMethod:(nullable NSString *)authenticationMethod; // @property (nullable, readonly, copy) NSString *realm; // @property (readonly) BOOL receivesCredentialSecurely; // @property (readonly) BOOL isProxy; // @property (readonly, copy) NSString *host; // @property (readonly) NSInteger port; // @property (nullable, readonly, copy) NSString *proxyType; // @property (nullable, readonly, copy) NSString *protocol; // @property (readonly, copy) NSString *authenticationMethod; /* @end */ // @interface NSURLProtectionSpace(NSClientCertificateSpace) // @property (nullable, readonly, copy) NSArray<NSData *> *distinguishedNames __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSURLProtectionSpace(NSServerTrustValidationSpace) // @property (nullable, readonly) SecTrustRef serverTrust __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSURLCredential; #ifndef _REWRITER_typedef_NSURLCredential #define _REWRITER_typedef_NSURLCredential typedef struct objc_object NSURLCredential; typedef struct {} _objc_exc_NSURLCredential; #endif // @class NSURLSessionTask; #ifndef _REWRITER_typedef_NSURLSessionTask #define _REWRITER_typedef_NSURLSessionTask typedef struct objc_object NSURLSessionTask; typedef struct {} _objc_exc_NSURLSessionTask; #endif // @class NSURLCredentialStorageInternal; #ifndef _REWRITER_typedef_NSURLCredentialStorageInternal #define _REWRITER_typedef_NSURLCredentialStorageInternal typedef struct objc_object NSURLCredentialStorageInternal; typedef struct {} _objc_exc_NSURLCredentialStorageInternal; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLCredentialStorage #define _REWRITER_typedef_NSURLCredentialStorage typedef struct objc_object NSURLCredentialStorage; typedef struct {} _objc_exc_NSURLCredentialStorage; #endif struct NSURLCredentialStorage_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLCredentialStorageInternal *_internal; }; @property (class, readonly, strong) NSURLCredentialStorage *sharedCredentialStorage; // - (nullable NSDictionary<NSString *, NSURLCredential *> *)credentialsForProtectionSpace:(NSURLProtectionSpace *)space; // @property (readonly, copy) NSDictionary<NSURLProtectionSpace *, NSDictionary<NSString *, NSURLCredential *> *> *allCredentials; // - (void)setCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space; // - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space; // - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space options:(nullable NSDictionary<NSString *, id> *)options __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURLCredential *)defaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space; // - (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)space; /* @end */ // @interface NSURLCredentialStorage (NSURLSessionTaskAdditions) // - (void)getCredentialsForProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task completionHandler:(void (^) (NSDictionary<NSString *, NSURLCredential *> * _Nullable credentials))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)removeCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace options:(nullable NSDictionary<NSString *, id> *)options task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)getDefaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space task:(NSURLSessionTask *)task completionHandler:(void (^) (NSURLCredential * _Nullable credential))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setDefaultCredential:(NSURLCredential *)credential forProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ extern "C" NSNotificationName const NSURLCredentialStorageChangedNotification __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString *const NSURLCredentialStorageRemoveSynchronizableCredentials __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kCFErrorDomainCFNetwork __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFErrorDomainWinSock __attribute__((availability(ios,introduced=2_0))); typedef int CFNetworkErrors; enum { kCFHostErrorHostNotFound = 1, kCFHostErrorUnknown = 2, kCFSOCKSErrorUnknownClientVersion = 100, kCFSOCKSErrorUnsupportedServerVersion = 101, kCFSOCKS4ErrorRequestFailed = 110, kCFSOCKS4ErrorIdentdFailed = 111, kCFSOCKS4ErrorIdConflict = 112, kCFSOCKS4ErrorUnknownStatusCode = 113, kCFSOCKS5ErrorBadState = 120, kCFSOCKS5ErrorBadResponseAddr = 121, kCFSOCKS5ErrorBadCredentials = 122, kCFSOCKS5ErrorUnsupportedNegotiationMethod = 123, kCFSOCKS5ErrorNoAcceptableMethod = 124, kCFFTPErrorUnexpectedStatusCode = 200, kCFErrorHTTPAuthenticationTypeUnsupported = 300, kCFErrorHTTPBadCredentials = 301, kCFErrorHTTPConnectionLost = 302, kCFErrorHTTPParseFailure = 303, kCFErrorHTTPRedirectionLoopDetected = 304, kCFErrorHTTPBadURL = 305, kCFErrorHTTPProxyConnectionFailure = 306, kCFErrorHTTPBadProxyCredentials = 307, kCFErrorPACFileError = 308, kCFErrorPACFileAuth = 309, kCFErrorHTTPSProxyConnectionFailure = 310, kCFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod = 311, kCFURLErrorBackgroundSessionInUseByAnotherProcess = -996, kCFURLErrorBackgroundSessionWasDisconnected = -997, kCFURLErrorUnknown = -998, kCFURLErrorCancelled = -999, kCFURLErrorBadURL = -1000, kCFURLErrorTimedOut = -1001, kCFURLErrorUnsupportedURL = -1002, kCFURLErrorCannotFindHost = -1003, kCFURLErrorCannotConnectToHost = -1004, kCFURLErrorNetworkConnectionLost = -1005, kCFURLErrorDNSLookupFailed = -1006, kCFURLErrorHTTPTooManyRedirects = -1007, kCFURLErrorResourceUnavailable = -1008, kCFURLErrorNotConnectedToInternet = -1009, kCFURLErrorRedirectToNonExistentLocation = -1010, kCFURLErrorBadServerResponse = -1011, kCFURLErrorUserCancelledAuthentication = -1012, kCFURLErrorUserAuthenticationRequired = -1013, kCFURLErrorZeroByteResource = -1014, kCFURLErrorCannotDecodeRawData = -1015, kCFURLErrorCannotDecodeContentData = -1016, kCFURLErrorCannotParseResponse = -1017, kCFURLErrorInternationalRoamingOff = -1018, kCFURLErrorCallIsActive = -1019, kCFURLErrorDataNotAllowed = -1020, kCFURLErrorRequestBodyStreamExhausted = -1021, kCFURLErrorAppTransportSecurityRequiresSecureConnection = -1022, kCFURLErrorFileDoesNotExist = -1100, kCFURLErrorFileIsDirectory = -1101, kCFURLErrorNoPermissionsToReadFile = -1102, kCFURLErrorDataLengthExceedsMaximum = -1103, kCFURLErrorFileOutsideSafeArea = -1104, kCFURLErrorSecureConnectionFailed = -1200, kCFURLErrorServerCertificateHasBadDate = -1201, kCFURLErrorServerCertificateUntrusted = -1202, kCFURLErrorServerCertificateHasUnknownRoot = -1203, kCFURLErrorServerCertificateNotYetValid = -1204, kCFURLErrorClientCertificateRejected = -1205, kCFURLErrorClientCertificateRequired = -1206, kCFURLErrorCannotLoadFromNetwork = -2000, kCFURLErrorCannotCreateFile = -3000, kCFURLErrorCannotOpenFile = -3001, kCFURLErrorCannotCloseFile = -3002, kCFURLErrorCannotWriteToFile = -3003, kCFURLErrorCannotRemoveFile = -3004, kCFURLErrorCannotMoveFile = -3005, kCFURLErrorDownloadDecodingFailedMidStream = -3006, kCFURLErrorDownloadDecodingFailedToComplete = -3007, kCFHTTPCookieCannotParseCookieFile = -4000, kCFNetServiceErrorUnknown = -72000L, kCFNetServiceErrorCollision = -72001L, kCFNetServiceErrorNotFound = -72002L, kCFNetServiceErrorInProgress = -72003L, kCFNetServiceErrorBadArgument = -72004L, kCFNetServiceErrorCancel = -72005L, kCFNetServiceErrorInvalid = -72006L, kCFNetServiceErrorTimeout = -72007L, kCFNetServiceErrorDNSServiceFailure = -73000L }; extern const CFStringRef kCFURLErrorFailingURLErrorKey __attribute__((availability(ios,introduced=2_2))); extern const CFStringRef kCFURLErrorFailingURLStringErrorKey __attribute__((availability(ios,introduced=2_2))); extern const CFStringRef kCFGetAddrInfoFailureKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFSOCKSStatusCodeKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFSOCKSVersionKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFSOCKSNegotiationMethodKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFDNSServiceFailureKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFFTPStatusCodeKey __attribute__((availability(ios,introduced=2_0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin #pragma pack(push, 2) typedef struct __CFHost* CFHostRef; extern const SInt32 kCFStreamErrorDomainNetDB __attribute__((availability(ios,introduced=2_0))); extern const SInt32 kCFStreamErrorDomainSystemConfiguration __attribute__((availability(ios,introduced=2_0))); typedef int CFHostInfoType; enum { kCFHostAddresses = 0, kCFHostNames = 1, kCFHostReachability = 2 }; struct CFHostClientContext { CFIndex version; void * _Nullable info; CFAllocatorRetainCallBack _Nullable retain; CFAllocatorReleaseCallBack _Nullable release; CFAllocatorCopyDescriptionCallBack _Nullable copyDescription; }; typedef struct CFHostClientContext CFHostClientContext; typedef void ( * CFHostClientCallBack)(CFHostRef theHost, CFHostInfoType typeInfo, const CFStreamError * _Nullable error, void * _Nullable info); extern CFTypeID CFHostGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFHostRef CFHostCreateWithName(CFAllocatorRef _Nullable allocator, CFStringRef hostname) __attribute__((availability(ios,introduced=2_0))); extern CFHostRef CFHostCreateWithAddress(CFAllocatorRef _Nullable allocator, CFDataRef addr) __attribute__((availability(ios,introduced=2_0))); extern CFHostRef CFHostCreateCopy(CFAllocatorRef _Nullable alloc, CFHostRef host) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHostStartInfoResolution(CFHostRef theHost, CFHostInfoType info, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFArrayRef CFHostGetAddressing(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFArrayRef CFHostGetNames(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDataRef CFHostGetReachability(CFHostRef theHost, Boolean * _Nullable hasBeenResolved) __attribute__((availability(ios,introduced=2_0))); extern void CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHostSetClient(CFHostRef theHost, CFHostClientCallBack _Nullable clientCB, CFHostClientContext * _Nullable clientContext) __attribute__((availability(ios,introduced=2_0))); extern void CFHostScheduleWithRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern void CFHostUnscheduleFromRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); #pragma pack(pop) #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin #pragma pack(push, 2) typedef struct __CFNetService* CFNetServiceRef; typedef struct __CFNetServiceMonitor* CFNetServiceMonitorRef; typedef struct __CFNetServiceBrowser* CFNetServiceBrowserRef; extern const SInt32 kCFStreamErrorDomainMach __attribute__((availability(ios,introduced=2_0))); extern const SInt32 kCFStreamErrorDomainNetServices __attribute__((availability(ios,introduced=2_0))); typedef int CFNetServicesError; enum { kCFNetServicesErrorUnknown = -72000L, kCFNetServicesErrorCollision = -72001L, kCFNetServicesErrorNotFound = -72002L, kCFNetServicesErrorInProgress = -72003L, kCFNetServicesErrorBadArgument = -72004L, kCFNetServicesErrorCancel = -72005L, kCFNetServicesErrorInvalid = -72006L, kCFNetServicesErrorTimeout = -72007L, kCFNetServicesErrorMissingRequiredConfiguration __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,unavailable))) = -72008L, }; typedef int CFNetServiceMonitorType; enum { kCFNetServiceMonitorTXT = 1 }; typedef CFOptionFlags CFNetServiceRegisterFlags; enum { kCFNetServiceFlagNoAutoRename = 1 }; typedef CFOptionFlags CFNetServiceBrowserFlags; enum { kCFNetServiceFlagMoreComing = 1, kCFNetServiceFlagIsDomain = 2, kCFNetServiceFlagIsDefault = 4, kCFNetServiceFlagIsRegistrationDomain __attribute__((availability(ios,introduced=2_0,deprecated=2_0,message="" ))) = 4, kCFNetServiceFlagRemove = 8 }; struct CFNetServiceClientContext { CFIndex version; void * _Nullable info; CFAllocatorRetainCallBack _Nullable retain; CFAllocatorReleaseCallBack _Nullable release; CFAllocatorCopyDescriptionCallBack _Nullable copyDescription; }; typedef struct CFNetServiceClientContext CFNetServiceClientContext; typedef void ( * CFNetServiceClientCallBack)(CFNetServiceRef theService, CFStreamError * _Nullable error, void * _Nullable info); typedef void ( * CFNetServiceMonitorClientCallBack)(CFNetServiceMonitorRef theMonitor, CFNetServiceRef _Nullable theService, CFNetServiceMonitorType typeInfo, CFDataRef _Nullable rdata, CFStreamError * _Nullable error, void * _Nullable info); typedef void ( * CFNetServiceBrowserClientCallBack)(CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef _Nullable domainOrService, CFStreamError * _Nullable error, void * _Nullable info); extern CFTypeID CFNetServiceGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFTypeID CFNetServiceMonitorGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFTypeID CFNetServiceBrowserGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFNetServiceRef CFNetServiceCreate(CFAllocatorRef _Nullable alloc, CFStringRef domain, CFStringRef serviceType, CFStringRef name, SInt32 port) __attribute__((availability(ios,introduced=2_0))); extern CFNetServiceRef CFNetServiceCreateCopy(CFAllocatorRef _Nullable alloc, CFNetServiceRef service) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFNetServiceGetDomain(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFNetServiceGetType(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFNetServiceGetName(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceRegisterWithOptions(CFNetServiceRef theService, CFOptionFlags options, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceResolveWithTimeout(CFNetServiceRef theService, CFTimeInterval timeout, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceCancel(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFStringRef CFNetServiceGetTargetHost(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern SInt32 CFNetServiceGetPortNumber(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFArrayRef CFNetServiceGetAddressing(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDataRef CFNetServiceGetTXTData(CFNetServiceRef theService) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceSetTXTData(CFNetServiceRef theService, CFDataRef txtRecord) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData(CFAllocatorRef _Nullable alloc, CFDataRef txtRecord) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDataRef CFNetServiceCreateTXTDataWithDictionary(CFAllocatorRef _Nullable alloc, CFDictionaryRef keyValuePairs) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceSetClient(CFNetServiceRef theService, CFNetServiceClientCallBack _Nullable clientCB, CFNetServiceClientContext * _Nullable clientContext) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceScheduleWithRunLoop(CFNetServiceRef theService, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceUnscheduleFromRunLoop(CFNetServiceRef theService, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern CFNetServiceMonitorRef CFNetServiceMonitorCreate( CFAllocatorRef _Nullable alloc, CFNetServiceRef theService, CFNetServiceMonitorClientCallBack clientCB, CFNetServiceClientContext * clientContext) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceMonitorInvalidate(CFNetServiceMonitorRef monitor) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceMonitorStart(CFNetServiceMonitorRef monitor, CFNetServiceMonitorType recordType, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceMonitorStop(CFNetServiceMonitorRef monitor, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceMonitorScheduleWithRunLoop(CFNetServiceMonitorRef monitor, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceMonitorUnscheduleFromRunLoop(CFNetServiceMonitorRef monitor, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern CFNetServiceBrowserRef CFNetServiceBrowserCreate(CFAllocatorRef _Nullable alloc, CFNetServiceBrowserClientCallBack clientCB, CFNetServiceClientContext *clientContext) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceBrowserInvalidate(CFNetServiceBrowserRef browser) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceBrowserSearchForDomains(CFNetServiceBrowserRef browser, Boolean registrationDomains, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceBrowserSearchForServices(CFNetServiceBrowserRef browser, CFStringRef domain, CFStringRef serviceType, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceBrowserStopSearch(CFNetServiceBrowserRef browser, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceBrowserScheduleWithRunLoop(CFNetServiceBrowserRef browser, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern void CFNetServiceBrowserUnscheduleFromRunLoop(CFNetServiceBrowserRef browser, CFRunLoopRef runLoop, CFStringRef runLoopMode) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFNetServiceRegister(CFNetServiceRef theService, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=NA,deprecated=NA,message="" ))); extern Boolean CFNetServiceResolve(CFNetServiceRef theService, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=NA,deprecated=NA,message="" ))); #pragma pack(pop) #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kCFStreamPropertySSLContext __attribute__((availability(ios,introduced=5_0))); extern const CFStringRef kCFStreamPropertySSLPeerTrust __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamSSLValidatesCertificateChain __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertySSLSettings __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamSSLLevel __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamSSLPeerName __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamSSLCertificates __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamSSLIsServer __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamNetworkServiceType __attribute__((availability(ios,introduced=4_0))); extern const CFStringRef kCFStreamNetworkServiceTypeVideo __attribute__((availability(ios,introduced=5_0))); extern const CFStringRef kCFStreamNetworkServiceTypeVoice __attribute__((availability(ios,introduced=5_0))); extern const CFStringRef kCFStreamNetworkServiceTypeBackground __attribute__((availability(ios,introduced=5_0))); extern const CFStringRef kCFStreamNetworkServiceTypeResponsiveData __attribute__((availability(ios,introduced=6.0))); extern const CFStringRef kCFStreamNetworkServiceTypeCallSignaling __attribute__((availability(ios,introduced=10_0))); extern const CFStringRef kCFStreamNetworkServiceTypeAVStreaming __attribute__((availability(ios,introduced=6.0))); extern const CFStringRef kCFStreamNetworkServiceTypeResponsiveAV __attribute__((availability(ios,introduced=6.0))); extern const CFStringRef kCFStreamNetworkServiceTypeVoIP __attribute__((availability(ios,introduced=4_0,deprecated=9_0,message="" "use PushKit for VoIP control purposes"))); extern const CFStringRef kCFStreamPropertyNoCellular __attribute__((availability(ios,introduced=5_0))); extern const CFStringRef kCFStreamPropertyConnectionIsCellular __attribute__((availability(ios,introduced=6_0))); extern const CFStringRef kCFStreamPropertyAllowExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern const CFStringRef kCFStreamPropertyConnectionIsExpensive __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern const CFStringRef kCFStreamPropertyAllowConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern const CFIndex kCFStreamErrorDomainWinSock __attribute__((availability(ios,introduced=2_0))); static __inline__ __attribute__((always_inline)) SInt32 CFSocketStreamSOCKSGetErrorSubdomain(const CFStreamError* error) { return ((error->error >> 16) & 0x0000FFFF); } static __inline__ __attribute__((always_inline)) SInt32 CFSocketStreamSOCKSGetError(const CFStreamError* error) { return (error->error & 0x0000FFFF); } enum { kCFStreamErrorSOCKSSubDomainNone = 0, kCFStreamErrorSOCKSSubDomainVersionCode = 1, kCFStreamErrorSOCKS4SubDomainResponse = 2, kCFStreamErrorSOCKS5SubDomainUserPass = 3, kCFStreamErrorSOCKS5SubDomainMethod = 4, kCFStreamErrorSOCKS5SubDomainResponse = 5 }; enum { kCFStreamErrorSOCKS5BadResponseAddr = 1, kCFStreamErrorSOCKS5BadState = 2, kCFStreamErrorSOCKSUnknownClientVersion = 3 }; enum { kCFStreamErrorSOCKS4RequestFailed = 91, kCFStreamErrorSOCKS4IdentdFailed = 92, kCFStreamErrorSOCKS4IdConflict = 93 }; enum { kSOCKS5NoAcceptableMethod = 0xFF }; extern const CFStringRef kCFStreamPropertyProxyLocalBypass __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertySocketRemoteHost __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertySocketRemoteNetService __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertySocketExtendedBackgroundIdleMode __attribute__((availability(ios,introduced=9_0))); extern void CFStreamCreatePairWithSocketToCFHost( CFAllocatorRef _Nullable alloc, CFHostRef host, SInt32 port, CFReadStreamRef _Nullable * _Nullable readStream, CFWriteStreamRef _Nullable * _Nullable writeStream) __attribute__((availability(ios,introduced=2_0))); extern void CFStreamCreatePairWithSocketToNetService( CFAllocatorRef _Nullable alloc, CFNetServiceRef service, CFReadStreamRef _Nullable * _Nullable readStream, CFWriteStreamRef _Nullable * _Nullable writeStream) __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertySSLPeerCertificates __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" ))); extern const CFStringRef kCFStreamSSLAllowsExpiredCertificates __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" ))); extern const CFStringRef kCFStreamSSLAllowsExpiredRoots __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" ))); extern const CFStringRef kCFStreamSSLAllowsAnyRoot __attribute__((availability(ios,introduced=2_0,deprecated=4_0,message="" ))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const SInt32 kCFStreamErrorDomainFTP __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFStreamPropertyFTPUserName __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPPassword __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPUsePassiveMode __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPResourceSize __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPFetchResourceInfo __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPFileTransferOffset __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPAttemptPersistentConnection __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPProxy __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPProxyUser __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFStreamPropertyFTPProxyPassword __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceMode __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceName __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceOwner __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceGroup __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceLink __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceSize __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceType __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern const CFStringRef kCFFTPResourceModDate __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern CFReadStreamRef CFReadStreamCreateWithFTPURL(CFAllocatorRef _Nullable alloc, CFURLRef ftpURL) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern CFIndex CFFTPCreateParsedResourceListing(CFAllocatorRef _Nullable alloc, const UInt8 *buffer, CFIndex bufferLength, CFDictionaryRef _Nullable * _Nullable parsed) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); extern CFWriteStreamRef CFWriteStreamCreateWithFTPURL(CFAllocatorRef _Nullable alloc, CFURLRef ftpURL) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSessionAPI for ftp requests"))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kCFHTTPVersion1_0 __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPVersion1_1 __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPVersion2_0 __attribute__((availability(ios,introduced=8_0))); extern const CFStringRef kCFHTTPVersion3_0 __attribute__((availability(ios,introduced=13_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeBasic __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeDigest __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeNTLM __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeKerberos __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeNegotiate __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeNegotiate2 __attribute__((availability(ios,introduced=3_0))); extern const CFStringRef kCFHTTPAuthenticationSchemeXMobileMeAuthToken __attribute__((availability(ios,introduced=4_3))); typedef struct __CFHTTPMessage* CFHTTPMessageRef; extern CFTypeID CFHTTPMessageGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFHTTPMessageRef CFHTTPMessageCreateRequest(CFAllocatorRef _Nullable alloc, CFStringRef requestMethod, CFURLRef url, CFStringRef httpVersion) __attribute__((availability(ios,introduced=2_0))); extern CFHTTPMessageRef CFHTTPMessageCreateResponse( CFAllocatorRef _Nullable alloc, CFIndex statusCode, CFStringRef _Nullable statusDescription, CFStringRef httpVersion) __attribute__((availability(ios,introduced=2_0))); extern CFHTTPMessageRef CFHTTPMessageCreateEmpty(CFAllocatorRef _Nullable alloc, Boolean isRequest) __attribute__((availability(ios,introduced=2_0))); extern CFHTTPMessageRef CFHTTPMessageCreateCopy(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageIsRequest(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFHTTPMessageCopyVersion(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDataRef CFHTTPMessageCopyBody(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern void CFHTTPMessageSetBody(CFHTTPMessageRef message, CFDataRef bodyData) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFStringRef CFHTTPMessageCopyHeaderFieldValue(CFHTTPMessageRef message, CFStringRef headerField) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDictionaryRef CFHTTPMessageCopyAllHeaderFields(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern void CFHTTPMessageSetHeaderFieldValue(CFHTTPMessageRef message, CFStringRef headerField, CFStringRef _Nullable value) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageAppendBytes(CFHTTPMessageRef message, const UInt8 *newBytes, CFIndex numBytes) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageIsHeaderComplete(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFDataRef CFHTTPMessageCopySerializedMessage(CFHTTPMessageRef message) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFURLRef CFHTTPMessageCopyRequestURL(CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFStringRef CFHTTPMessageCopyRequestMethod(CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageAddAuthentication( CFHTTPMessageRef request, CFHTTPMessageRef _Nullable authenticationFailureResponse, CFStringRef username, CFStringRef password, CFStringRef _Nullable authenticationScheme, Boolean forProxy) __attribute__((availability(ios,introduced=2_0))); extern CFIndex CFHTTPMessageGetResponseStatusCode(CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0))); extern _Nullable CFStringRef CFHTTPMessageCopyResponseStatusLine(CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern const SInt32 kCFStreamErrorDomainHTTP __attribute__((availability(ios,introduced=2_0))); typedef int CFStreamErrorHTTP; enum { kCFStreamErrorHTTPParseFailure = -1, kCFStreamErrorHTTPRedirectionLoop = -2, kCFStreamErrorHTTPBadURL = -3 }; extern const CFStringRef kCFStreamPropertyHTTPResponseHeader __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPFinalURL __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPFinalRequest __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPProxy __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPSProxyHost __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPSProxyPort __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPShouldAutoredirect __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPAttemptPersistentConnection __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern const CFStringRef kCFStreamPropertyHTTPRequestBytesWrittenCount __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern CFReadStreamRef CFReadStreamCreateForHTTPRequest(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); extern CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef requestHeaders, CFReadStreamRef requestBody) __attribute__((availability(ios,introduced=2_0,deprecated=9_0,message="" "Use NSURLSession API for http requests"))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin typedef struct _CFHTTPAuthentication* CFHTTPAuthenticationRef; typedef int CFStreamErrorHTTPAuthentication; enum { kCFStreamErrorHTTPAuthenticationTypeUnsupported = -1000, kCFStreamErrorHTTPAuthenticationBadUserName = -1001, kCFStreamErrorHTTPAuthenticationBadPassword = -1002 }; extern const CFStringRef kCFHTTPAuthenticationUsername __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationPassword __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFHTTPAuthenticationAccountDomain __attribute__((availability(ios,introduced=2_0))); extern CFTypeID CFHTTPAuthenticationGetTypeID(void) __attribute__((availability(ios,introduced=2_0))); extern CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse(CFAllocatorRef _Nullable alloc, CFHTTPMessageRef response) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPAuthenticationIsValid(CFHTTPAuthenticationRef auth, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPAuthenticationAppliesToRequest(CFHTTPAuthenticationRef auth, CFHTTPMessageRef request) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPAuthenticationRequiresOrderedRequests(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageApplyCredentials( CFHTTPMessageRef request, CFHTTPAuthenticationRef auth, CFStringRef _Nullable username, CFStringRef _Nullable password, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPMessageApplyCredentialDictionary( CFHTTPMessageRef request, CFHTTPAuthenticationRef auth, CFDictionaryRef dict, CFStreamError * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFHTTPAuthenticationCopyRealm(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); extern CFArrayRef CFHTTPAuthenticationCopyDomains(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); extern CFStringRef CFHTTPAuthenticationCopyMethod(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPAuthenticationRequiresUserNameAndPassword(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); extern Boolean CFHTTPAuthenticationRequiresAccountDomain(CFHTTPAuthenticationRef auth) __attribute__((availability(ios,introduced=2_0))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin typedef struct __CFNetDiagnostic* CFNetDiagnosticRef; typedef int CFNetDiagnosticStatusValues; enum { kCFNetDiagnosticNoErr = 0, kCFNetDiagnosticErr = -66560L, kCFNetDiagnosticConnectionUp = -66559L, kCFNetDiagnosticConnectionIndeterminate = -66558L, kCFNetDiagnosticConnectionDown = -66557L } __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); typedef CFIndex CFNetDiagnosticStatus __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); extern CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams(CFAllocatorRef _Nullable alloc, CFReadStreamRef _Nullable readStream, CFWriteStreamRef _Nullable writeStream) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); extern CFNetDiagnosticRef CFNetDiagnosticCreateWithURL(CFAllocatorRef alloc, CFURLRef url) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); extern void CFNetDiagnosticSetName(CFNetDiagnosticRef details, CFStringRef name) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); extern CFNetDiagnosticStatus CFNetDiagnosticDiagnoseProblemInteractively(CFNetDiagnosticRef details) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); extern CFNetDiagnosticStatus CFNetDiagnosticCopyNetworkStatusPassively(CFNetDiagnosticRef details, CFStringRef _Nullable * _Nullable description) __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" ))); #pragma clang assume_nonnull end } extern "C" { #pragma clang assume_nonnull begin extern _Nullable CFDictionaryRef CFNetworkCopySystemProxySettings(void) __attribute__((availability(ios,introduced=2_0))); extern CFArrayRef CFNetworkCopyProxiesForURL(CFURLRef url, CFDictionaryRef proxySettings) __attribute__((availability(ios,introduced=2_0))); typedef void ( * CFProxyAutoConfigurationResultCallback)(void *client, CFArrayRef proxyList, CFErrorRef _Nullable error); extern _Nullable CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript(CFStringRef proxyAutoConfigurationScript, CFURLRef targetURL, CFErrorRef * _Nullable error) __attribute__((availability(ios,introduced=2_0))); extern CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript( CFStringRef proxyAutoConfigurationScript, CFURLRef targetURL, CFProxyAutoConfigurationResultCallback cb, CFStreamClientContext * clientContext) __attribute__((availability(ios,introduced=2_0))); extern CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL( CFURLRef proxyAutoConfigURL, CFURLRef targetURL, CFProxyAutoConfigurationResultCallback cb, CFStreamClientContext * clientContext) __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyHostNameKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyPortNumberKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyAutoConfigurationURLKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyAutoConfigurationJavaScriptKey __attribute__((availability(ios,introduced=3_0))); extern const CFStringRef kCFProxyUsernameKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyPasswordKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeNone __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeHTTP __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeHTTPS __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeSOCKS __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeFTP __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeAutoConfigurationURL __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFProxyTypeAutoConfigurationJavaScript __attribute__((availability(ios,introduced=3_0))); extern const CFStringRef kCFProxyAutoConfigurationHTTPResponseKey __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesExceptionsList __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesExcludeSimpleHostnames __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesFTPEnable __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesFTPPassive __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesFTPPort __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesFTPProxy __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesGopherEnable __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesGopherPort __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesGopherProxy __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesHTTPEnable __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesHTTPPort __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesHTTPProxy __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesHTTPSEnable __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesHTTPSPort __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesHTTPSProxy __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesRTSPEnable __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesRTSPPort __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesRTSPProxy __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesSOCKSEnable __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesSOCKSPort __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesSOCKSProxy __attribute__((availability(ios,introduced=NA))); extern const CFStringRef kCFNetworkProxiesProxyAutoConfigEnable __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesProxyAutoConfigURLString __attribute__((availability(ios,introduced=2_0))); extern const CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript __attribute__((availability(ios,introduced=3_0))); extern const CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable __attribute__((availability(ios,introduced=NA))); #pragma clang assume_nonnull end } // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin extern "C" NSErrorDomain const NSURLErrorDomain; extern "C" NSString * const NSURLErrorFailingURLErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLErrorFailingURLStringErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSErrorFailingURLStringKey __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=4.0,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSURLErrorFailingURLStringErrorKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSURLErrorFailingURLStringErrorKey instead"))); extern "C" NSString * const NSURLErrorFailingURLPeerTrustErrorKey __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSURLErrorBackgroundTaskCancelledReasonKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); enum { NSURLErrorCancelledReasonUserForceQuitApplication = 0, NSURLErrorCancelledReasonBackgroundUpdatesDisabled = 1, NSURLErrorCancelledReasonInsufficientSystemResources __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 2, } __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSErrorUserInfoKey const NSURLErrorNetworkUnavailableReasonKey __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); typedef NSInteger NSURLErrorNetworkUnavailableReason; enum { NSURLErrorNetworkUnavailableReasonCellular = 0, NSURLErrorNetworkUnavailableReasonExpensive = 1, NSURLErrorNetworkUnavailableReasonConstrained = 2, } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); enum { NSURLErrorUnknown = -1, NSURLErrorCancelled = -999, NSURLErrorBadURL = -1000, NSURLErrorTimedOut = -1001, NSURLErrorUnsupportedURL = -1002, NSURLErrorCannotFindHost = -1003, NSURLErrorCannotConnectToHost = -1004, NSURLErrorNetworkConnectionLost = -1005, NSURLErrorDNSLookupFailed = -1006, NSURLErrorHTTPTooManyRedirects = -1007, NSURLErrorResourceUnavailable = -1008, NSURLErrorNotConnectedToInternet = -1009, NSURLErrorRedirectToNonExistentLocation = -1010, NSURLErrorBadServerResponse = -1011, NSURLErrorUserCancelledAuthentication = -1012, NSURLErrorUserAuthenticationRequired = -1013, NSURLErrorZeroByteResource = -1014, NSURLErrorCannotDecodeRawData = -1015, NSURLErrorCannotDecodeContentData = -1016, NSURLErrorCannotParseResponse = -1017, NSURLErrorAppTransportSecurityRequiresSecureConnection __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1022, NSURLErrorFileDoesNotExist = -1100, NSURLErrorFileIsDirectory = -1101, NSURLErrorNoPermissionsToReadFile = -1102, NSURLErrorDataLengthExceedsMaximum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1103, NSURLErrorFileOutsideSafeArea __attribute__((availability(macos,introduced=10.12.4))) __attribute__((availability(ios,introduced=10.3))) __attribute__((availability(watchos,introduced=3.2))) __attribute__((availability(tvos,introduced=10.2))) = -1104, NSURLErrorSecureConnectionFailed = -1200, NSURLErrorServerCertificateHasBadDate = -1201, NSURLErrorServerCertificateUntrusted = -1202, NSURLErrorServerCertificateHasUnknownRoot = -1203, NSURLErrorServerCertificateNotYetValid = -1204, NSURLErrorClientCertificateRejected = -1205, NSURLErrorClientCertificateRequired = -1206, NSURLErrorCannotLoadFromNetwork = -2000, NSURLErrorCannotCreateFile = -3000, NSURLErrorCannotOpenFile = -3001, NSURLErrorCannotCloseFile = -3002, NSURLErrorCannotWriteToFile = -3003, NSURLErrorCannotRemoveFile = -3004, NSURLErrorCannotMoveFile = -3005, NSURLErrorDownloadDecodingFailedMidStream = -3006, NSURLErrorDownloadDecodingFailedToComplete =-3007, NSURLErrorInternationalRoamingOff __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1018, NSURLErrorCallIsActive __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1019, NSURLErrorDataNotAllowed __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1020, NSURLErrorRequestBodyStreamExhausted __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -1021, NSURLErrorBackgroundSessionRequiresSharedContainer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -995, NSURLErrorBackgroundSessionInUseByAnotherProcess __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = -996, NSURLErrorBackgroundSessionWasDisconnected __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0)))= -997, }; #pragma clang assume_nonnull end // @class NSCachedURLResponse; #ifndef _REWRITER_typedef_NSCachedURLResponse #define _REWRITER_typedef_NSCachedURLResponse typedef struct objc_object NSCachedURLResponse; typedef struct {} _objc_exc_NSCachedURLResponse; #endif // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @class NSMutableURLRequest; #ifndef _REWRITER_typedef_NSMutableURLRequest #define _REWRITER_typedef_NSMutableURLRequest typedef struct objc_object NSMutableURLRequest; typedef struct {} _objc_exc_NSMutableURLRequest; #endif // @class NSURLAuthenticationChallenge; #ifndef _REWRITER_typedef_NSURLAuthenticationChallenge #define _REWRITER_typedef_NSURLAuthenticationChallenge typedef struct objc_object NSURLAuthenticationChallenge; typedef struct {} _objc_exc_NSURLAuthenticationChallenge; #endif // @class NSURLConnection; #ifndef _REWRITER_typedef_NSURLConnection #define _REWRITER_typedef_NSURLConnection typedef struct objc_object NSURLConnection; typedef struct {} _objc_exc_NSURLConnection; #endif // @class NSURLProtocol; #ifndef _REWRITER_typedef_NSURLProtocol #define _REWRITER_typedef_NSURLProtocol typedef struct objc_object NSURLProtocol; typedef struct {} _objc_exc_NSURLProtocol; #endif // @class NSURLProtocolInternal; #ifndef _REWRITER_typedef_NSURLProtocolInternal #define _REWRITER_typedef_NSURLProtocolInternal typedef struct objc_object NSURLProtocolInternal; typedef struct {} _objc_exc_NSURLProtocolInternal; #endif // @class NSURLRequest; #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif // @class NSURLResponse; #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif // @class NSURLSessionTask; #ifndef _REWRITER_typedef_NSURLSessionTask #define _REWRITER_typedef_NSURLSessionTask typedef struct objc_object NSURLSessionTask; typedef struct {} _objc_exc_NSURLSessionTask; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLProtocolClient <NSObject> // - (void)URLProtocol:(NSURLProtocol *)protocol wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse; // - (void)URLProtocol:(NSURLProtocol *)protocol cachedResponseIsValid:(NSCachedURLResponse *)cachedResponse; // - (void)URLProtocol:(NSURLProtocol *)protocol didReceiveResponse:(NSURLResponse *)response cacheStoragePolicy:(NSURLCacheStoragePolicy)policy; // - (void)URLProtocol:(NSURLProtocol *)protocol didLoadData:(NSData *)data; // - (void)URLProtocolDidFinishLoading:(NSURLProtocol *)protocol; // - (void)URLProtocol:(NSURLProtocol *)protocol didFailWithError:(NSError *)error; // - (void)URLProtocol:(NSURLProtocol *)protocol didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; // - (void)URLProtocol:(NSURLProtocol *)protocol didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLProtocol #define _REWRITER_typedef_NSURLProtocol typedef struct objc_object NSURLProtocol; typedef struct {} _objc_exc_NSURLProtocol; #endif struct NSURLProtocol_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLProtocolInternal *_internal; }; // - (instancetype)initWithRequest:(NSURLRequest *)request cachedResponse:(nullable NSCachedURLResponse *)cachedResponse client:(nullable id <NSURLProtocolClient>)client __attribute__((objc_designated_initializer)); // @property (nullable, readonly, retain) id <NSURLProtocolClient> client; // @property (readonly, copy) NSURLRequest *request; // @property (nullable, readonly, copy) NSCachedURLResponse *cachedResponse; // + (BOOL)canInitWithRequest:(NSURLRequest *)request; // + (NSURLRequest *)canonicalRequestForRequest:(NSURLRequest *)request; // + (BOOL)requestIsCacheEquivalent:(NSURLRequest *)a toRequest:(NSURLRequest *)b; // - (void)startLoading; // - (void)stopLoading; // + (nullable id)propertyForKey:(NSString *)key inRequest:(NSURLRequest *)request; // + (void)setProperty:(id)value forKey:(NSString *)key inRequest:(NSMutableURLRequest *)request; // + (void)removePropertyForKey:(NSString *)key inRequest:(NSMutableURLRequest *)request; // + (BOOL)registerClass:(Class)protocolClass; // + (void)unregisterClass:(Class)protocolClass; /* @end */ // @interface NSURLProtocol (NSURLSessionTaskAdditions) // + (BOOL)canInitWithTask:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithTask:(NSURLSessionTask *)task cachedResponse:(nullable NSCachedURLResponse *)cachedResponse client:(nullable id <NSURLProtocolClient>)client __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSURLSessionTask *task __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSInputStream; #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSURLRequestInternal; #ifndef _REWRITER_typedef_NSURLRequestInternal #define _REWRITER_typedef_NSURLRequestInternal typedef struct objc_object NSURLRequestInternal; typedef struct {} _objc_exc_NSURLRequestInternal; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSURLRequestCachePolicy; enum { NSURLRequestUseProtocolCachePolicy = 0, NSURLRequestReloadIgnoringLocalCacheData = 1, NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4, NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestReturnCacheDataElseLoad = 2, NSURLRequestReturnCacheDataDontLoad = 3, NSURLRequestReloadRevalidatingCacheData = 5, }; typedef NSUInteger NSURLRequestNetworkServiceType; enum { NSURLNetworkServiceTypeDefault = 0, NSURLNetworkServiceTypeVoIP __attribute__((availability(macos,introduced=10.7,deprecated=10.15,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(ios,introduced=4.0,deprecated=13.0,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Use PushKit for VoIP control purposes"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Use PushKit for VoIP control purposes"))) = 1, NSURLNetworkServiceTypeVideo = 2, NSURLNetworkServiceTypeBackground = 3, NSURLNetworkServiceTypeVoice = 4, NSURLNetworkServiceTypeResponsiveData = 6, NSURLNetworkServiceTypeAVStreaming __attribute__((availability(macosx,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 8 , NSURLNetworkServiceTypeResponsiveAV __attribute__((availability(macosx,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 9, NSURLNetworkServiceTypeCallSignaling __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) = 11, }; __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif struct NSURLRequest_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLRequestInternal *_internal; }; // + (instancetype)requestWithURL:(NSURL *)URL; @property (class, readonly) BOOL supportsSecureCoding; // + (instancetype)requestWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval; // - (instancetype)initWithURL:(NSURL *)URL; // - (instancetype)initWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval __attribute__((objc_designated_initializer)); // @property (nullable, readonly, copy) NSURL *URL; // @property (readonly) NSURLRequestCachePolicy cachePolicy; // @property (readonly) NSTimeInterval timeoutInterval; // @property (nullable, readonly, copy) NSURL *mainDocumentURL; // @property (readonly) NSURLRequestNetworkServiceType networkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL allowsCellularAccess __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMutableURLRequest #define _REWRITER_typedef_NSMutableURLRequest typedef struct objc_object NSMutableURLRequest; typedef struct {} _objc_exc_NSMutableURLRequest; #endif struct NSMutableURLRequest_IMPL { struct NSURLRequest_IMPL NSURLRequest_IVARS; }; // @property (nullable, copy) NSURL *URL; // @property NSURLRequestCachePolicy cachePolicy; // @property NSTimeInterval timeoutInterval; // @property (nullable, copy) NSURL *mainDocumentURL; // @property NSURLRequestNetworkServiceType networkServiceType __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property BOOL allowsCellularAccess __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @interface NSURLRequest (NSHTTPURLRequest) // @property (nullable, readonly, copy) NSString *HTTPMethod; // @property (nullable, readonly, copy) NSDictionary<NSString *, NSString *> *allHTTPHeaderFields; // - (nullable NSString *)valueForHTTPHeaderField:(NSString *)field; // @property (nullable, readonly, copy) NSData *HTTPBody; // @property (nullable, readonly, retain) NSInputStream *HTTPBodyStream; // @property (readonly) BOOL HTTPShouldHandleCookies; // @property (readonly) BOOL HTTPShouldUsePipelining __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableURLRequest (NSMutableHTTPURLRequest) // @property (copy) NSString *HTTPMethod; // @property (nullable, copy) NSDictionary<NSString *, NSString *> *allHTTPHeaderFields; // - (void)setValue:(nullable NSString *)value forHTTPHeaderField:(NSString *)field; // - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field; // @property (nullable, copy) NSData *HTTPBody; // @property (nullable, retain) NSInputStream *HTTPBodyStream; // @property BOOL HTTPShouldHandleCookies; // @property BOOL HTTPShouldUsePipelining __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSURLRequest; #ifndef _REWRITER_typedef_NSURLRequest #define _REWRITER_typedef_NSURLRequest typedef struct objc_object NSURLRequest; typedef struct {} _objc_exc_NSURLRequest; #endif // @class NSURLResponseInternal; #ifndef _REWRITER_typedef_NSURLResponseInternal #define _REWRITER_typedef_NSURLResponseInternal typedef struct objc_object NSURLResponseInternal; typedef struct {} _objc_exc_NSURLResponseInternal; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif struct NSURLResponse_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURLResponseInternal *_internal; }; // - (instancetype)initWithURL:(NSURL *)URL MIMEType:(nullable NSString *)MIMEType expectedContentLength:(NSInteger)length textEncodingName:(nullable NSString *)name __attribute__((objc_designated_initializer)); // @property (nullable, readonly, copy) NSURL *URL; // @property (nullable, readonly, copy) NSString *MIMEType; // @property (readonly) long long expectedContentLength; // @property (nullable, readonly, copy) NSString *textEncodingName; // @property (nullable, readonly, copy) NSString *suggestedFilename; /* @end */ // @class NSHTTPURLResponseInternal; #ifndef _REWRITER_typedef_NSHTTPURLResponseInternal #define _REWRITER_typedef_NSHTTPURLResponseInternal typedef struct objc_object NSHTTPURLResponseInternal; typedef struct {} _objc_exc_NSHTTPURLResponseInternal; #endif __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSHTTPURLResponse #define _REWRITER_typedef_NSHTTPURLResponse typedef struct objc_object NSHTTPURLResponse; typedef struct {} _objc_exc_NSHTTPURLResponse; #endif struct NSHTTPURLResponse_IMPL { struct NSURLResponse_IMPL NSURLResponse_IVARS; NSHTTPURLResponseInternal *_httpInternal; }; // - (nullable instancetype)initWithURL:(NSURL *)url statusCode:(NSInteger)statusCode HTTPVersion:(nullable NSString *)HTTPVersion headerFields:(nullable NSDictionary<NSString *, NSString *> *)headerFields __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) NSInteger statusCode; // @property (readonly, copy) NSDictionary *allHeaderFields; // - (nullable NSString *)valueForHTTPHeaderField:(NSString *)field __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // + (NSString *)localizedStringForStatusCode:(NSInteger)statusCode; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #pragma clang assume_nonnull begin extern "C" NSString * const NSGlobalDomain; extern "C" NSString * const NSArgumentDomain; extern "C" NSString * const NSRegistrationDomain; #ifndef _REWRITER_typedef_NSUserDefaults #define _REWRITER_typedef_NSUserDefaults typedef struct objc_object NSUserDefaults; typedef struct {} _objc_exc_NSUserDefaults; #endif struct NSUserDefaults_IMPL { struct NSObject_IMPL NSObject_IVARS; id _kvo_; CFStringRef _identifier_; CFStringRef _container_; void *_reserved[2]; }; @property (class, readonly, strong) NSUserDefaults *standardUserDefaults; // + (void)resetStandardUserDefaults; // - (instancetype)init; // - (nullable instancetype)initWithSuiteName:(nullable NSString *)suitename __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((objc_designated_initializer)); // - (nullable id)initWithUser:(NSString *)username __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Use -init instead"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Use -init instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use -init instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use -init instead"))); // - (nullable id)objectForKey:(NSString *)defaultName; // - (void)setObject:(nullable id)value forKey:(NSString *)defaultName; // - (void)removeObjectForKey:(NSString *)defaultName; // - (nullable NSString *)stringForKey:(NSString *)defaultName; // - (nullable NSArray *)arrayForKey:(NSString *)defaultName; // - (nullable NSDictionary<NSString *, id> *)dictionaryForKey:(NSString *)defaultName; // - (nullable NSData *)dataForKey:(NSString *)defaultName; // - (nullable NSArray<NSString *> *)stringArrayForKey:(NSString *)defaultName; // - (NSInteger)integerForKey:(NSString *)defaultName; // - (float)floatForKey:(NSString *)defaultName; // - (double)doubleForKey:(NSString *)defaultName; // - (BOOL)boolForKey:(NSString *)defaultName; // - (nullable NSURL *)URLForKey:(NSString *)defaultName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)setInteger:(NSInteger)value forKey:(NSString *)defaultName; // - (void)setFloat:(float)value forKey:(NSString *)defaultName; // - (void)setDouble:(double)value forKey:(NSString *)defaultName; // - (void)setBool:(BOOL)value forKey:(NSString *)defaultName; // - (void)setURL:(nullable NSURL *)url forKey:(NSString *)defaultName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)registerDefaults:(NSDictionary<NSString *, id> *)registrationDictionary; // - (void)addSuiteNamed:(NSString *)suiteName; // - (void)removeSuiteNamed:(NSString *)suiteName; // - (NSDictionary<NSString *, id> *)dictionaryRepresentation; // @property (readonly, copy) NSArray<NSString *> *volatileDomainNames; // - (NSDictionary<NSString *, id> *)volatileDomainForName:(NSString *)domainName; // - (void)setVolatileDomain:(NSDictionary<NSString *, id> *)domain forName:(NSString *)domainName; // - (void)removeVolatileDomainForName:(NSString *)domainName; // - (NSArray *)persistentDomainNames __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="Not recommended"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="Not recommended"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not recommended"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not recommended"))); // - (nullable NSDictionary<NSString *, id> *)persistentDomainForName:(NSString *)domainName; // - (void)setPersistentDomain:(NSDictionary<NSString *, id> *)domain forName:(NSString *)domainName; // - (void)removePersistentDomainForName:(NSString *)domainName; // - (BOOL)synchronize; // - (BOOL)objectIsForcedForKey:(NSString *)key; // - (BOOL)objectIsForcedForKey:(NSString *)key inDomain:(NSString *)domain; /* @end */ extern "C" NSNotificationName const NSUserDefaultsSizeLimitExceededNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSNotificationName const NSUbiquitousUserDefaultsNoCloudAccountNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSNotificationName const NSUbiquitousUserDefaultsDidChangeAccountsNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSNotificationName const NSUbiquitousUserDefaultsCompletedInitialSyncNotification __attribute__((availability(ios,introduced=9.3))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSNotificationName const NSUserDefaultsDidChangeNotification; #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef NSString *NSValueTransformerName __attribute__((swift_wrapper(struct))); extern "C" NSValueTransformerName const NSNegateBooleanTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSValueTransformerName const NSIsNilTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSValueTransformerName const NSIsNotNilTransformerName __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSValueTransformerName const NSUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.3,deprecated=10.14,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(ios,introduced=3.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))); extern "C" NSValueTransformerName const NSKeyedUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.3,deprecated=10.14,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(ios,introduced=3.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,replacement="NSSecureUnarchiveFromDataTransformerName"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,replacement="NSSecureUnarchiveFromDataTransformerName"))); extern "C" NSValueTransformerName const NSSecureUnarchiveFromDataTransformerName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))); __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSValueTransformer #define _REWRITER_typedef_NSValueTransformer typedef struct objc_object NSValueTransformer; typedef struct {} _objc_exc_NSValueTransformer; #endif struct NSValueTransformer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (void)setValueTransformer:(nullable NSValueTransformer *)transformer forName:(NSValueTransformerName)name; // + (nullable NSValueTransformer *)valueTransformerForName:(NSValueTransformerName)name; // + (NSArray<NSValueTransformerName> *)valueTransformerNames; // + (Class)transformedValueClass; // + (BOOL)allowsReverseTransformation; // - (nullable id)transformedValue:(nullable id)value; // - (nullable id)reverseTransformedValue:(nullable id)value; /* @end */ __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))) #ifndef _REWRITER_typedef_NSSecureUnarchiveFromDataTransformer #define _REWRITER_typedef_NSSecureUnarchiveFromDataTransformer typedef struct objc_object NSSecureUnarchiveFromDataTransformer; typedef struct {} _objc_exc_NSSecureUnarchiveFromDataTransformer; #endif struct NSSecureUnarchiveFromDataTransformer_IMPL { struct NSValueTransformer_IMPL NSValueTransformer_IVARS; }; @property (class, readonly, copy) NSArray<Class> *allowedTopLevelClasses; /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif // @protocol NSXMLParserDelegate; #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) typedef NSUInteger NSXMLParserExternalEntityResolvingPolicy; enum { NSXMLParserResolveExternalEntitiesNever = 0, NSXMLParserResolveExternalEntitiesNoNetwork, NSXMLParserResolveExternalEntitiesSameOriginOnly, NSXMLParserResolveExternalEntitiesAlways }; #ifndef _REWRITER_typedef_NSXMLParser #define _REWRITER_typedef_NSXMLParser typedef struct objc_object NSXMLParser; typedef struct {} _objc_exc_NSXMLParser; #endif struct NSXMLParser_IMPL { struct NSObject_IMPL NSObject_IVARS; id _reserved0; id _delegate; id _reserved1; id _reserved2; id _reserved3; }; // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url; // - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer)); // - (instancetype)initWithStream:(NSInputStream *)stream __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, assign) id <NSXMLParserDelegate> delegate; // @property BOOL shouldProcessNamespaces; // @property BOOL shouldReportNamespacePrefixes; // @property NSXMLParserExternalEntityResolvingPolicy externalEntityResolvingPolicy __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSSet<NSURL *> *allowedExternalEntityURLs __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)parse; // - (void)abortParsing; // @property (nullable, readonly, copy) NSError *parserError; // @property BOOL shouldResolveExternalEntities; /* @end */ // @interface NSXMLParser (NSXMLParserLocatorAdditions) // @property (nullable, readonly, copy) NSString *publicID; // @property (nullable, readonly, copy) NSString *systemID; // @property (readonly) NSInteger lineNumber; // @property (readonly) NSInteger columnNumber; /* @end */ // @protocol NSXMLParserDelegate <NSObject> /* @optional */ // - (void)parserDidStartDocument:(NSXMLParser *)parser; // - (void)parserDidEndDocument:(NSXMLParser *)parser; // - (void)parser:(NSXMLParser *)parser foundNotationDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID; // - (void)parser:(NSXMLParser *)parser foundUnparsedEntityDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID notationName:(nullable NSString *)notationName; // - (void)parser:(NSXMLParser *)parser foundAttributeDeclarationWithName:(NSString *)attributeName forElement:(NSString *)elementName type:(nullable NSString *)type defaultValue:(nullable NSString *)defaultValue; // - (void)parser:(NSXMLParser *)parser foundElementDeclarationWithName:(NSString *)elementName model:(NSString *)model; // - (void)parser:(NSXMLParser *)parser foundInternalEntityDeclarationWithName:(NSString *)name value:(nullable NSString *)value; // - (void)parser:(NSXMLParser *)parser foundExternalEntityDeclarationWithName:(NSString *)name publicID:(nullable NSString *)publicID systemID:(nullable NSString *)systemID; // - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(nullable NSString *)namespaceURI qualifiedName:(nullable NSString *)qName attributes:(NSDictionary<NSString *, NSString *> *)attributeDict; // - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(nullable NSString *)namespaceURI qualifiedName:(nullable NSString *)qName; // - (void)parser:(NSXMLParser *)parser didStartMappingPrefix:(NSString *)prefix toURI:(NSString *)namespaceURI; // - (void)parser:(NSXMLParser *)parser didEndMappingPrefix:(NSString *)prefix; // - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string; // - (void)parser:(NSXMLParser *)parser foundIgnorableWhitespace:(NSString *)whitespaceString; // - (void)parser:(NSXMLParser *)parser foundProcessingInstructionWithTarget:(NSString *)target data:(nullable NSString *)data; // - (void)parser:(NSXMLParser *)parser foundComment:(NSString *)comment; // - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock; // - (nullable NSData *)parser:(NSXMLParser *)parser resolveExternalEntityName:(NSString *)name systemID:(nullable NSString *)systemID; // - (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError; // - (void)parser:(NSXMLParser *)parser validationErrorOccurred:(NSError *)validationError; /* @end */ extern "C" NSErrorDomain const NSXMLParserErrorDomain __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSXMLParserError; enum { NSXMLParserInternalError = 1, NSXMLParserOutOfMemoryError = 2, NSXMLParserDocumentStartError = 3, NSXMLParserEmptyDocumentError = 4, NSXMLParserPrematureDocumentEndError = 5, NSXMLParserInvalidHexCharacterRefError = 6, NSXMLParserInvalidDecimalCharacterRefError = 7, NSXMLParserInvalidCharacterRefError = 8, NSXMLParserInvalidCharacterError = 9, NSXMLParserCharacterRefAtEOFError = 10, NSXMLParserCharacterRefInPrologError = 11, NSXMLParserCharacterRefInEpilogError = 12, NSXMLParserCharacterRefInDTDError = 13, NSXMLParserEntityRefAtEOFError = 14, NSXMLParserEntityRefInPrologError = 15, NSXMLParserEntityRefInEpilogError = 16, NSXMLParserEntityRefInDTDError = 17, NSXMLParserParsedEntityRefAtEOFError = 18, NSXMLParserParsedEntityRefInPrologError = 19, NSXMLParserParsedEntityRefInEpilogError = 20, NSXMLParserParsedEntityRefInInternalSubsetError = 21, NSXMLParserEntityReferenceWithoutNameError = 22, NSXMLParserEntityReferenceMissingSemiError = 23, NSXMLParserParsedEntityRefNoNameError = 24, NSXMLParserParsedEntityRefMissingSemiError = 25, NSXMLParserUndeclaredEntityError = 26, NSXMLParserUnparsedEntityError = 28, NSXMLParserEntityIsExternalError = 29, NSXMLParserEntityIsParameterError = 30, NSXMLParserUnknownEncodingError = 31, NSXMLParserEncodingNotSupportedError = 32, NSXMLParserStringNotStartedError = 33, NSXMLParserStringNotClosedError = 34, NSXMLParserNamespaceDeclarationError = 35, NSXMLParserEntityNotStartedError = 36, NSXMLParserEntityNotFinishedError = 37, NSXMLParserLessThanSymbolInAttributeError = 38, NSXMLParserAttributeNotStartedError = 39, NSXMLParserAttributeNotFinishedError = 40, NSXMLParserAttributeHasNoValueError = 41, NSXMLParserAttributeRedefinedError = 42, NSXMLParserLiteralNotStartedError = 43, NSXMLParserLiteralNotFinishedError = 44, NSXMLParserCommentNotFinishedError = 45, NSXMLParserProcessingInstructionNotStartedError = 46, NSXMLParserProcessingInstructionNotFinishedError = 47, NSXMLParserNotationNotStartedError = 48, NSXMLParserNotationNotFinishedError = 49, NSXMLParserAttributeListNotStartedError = 50, NSXMLParserAttributeListNotFinishedError = 51, NSXMLParserMixedContentDeclNotStartedError = 52, NSXMLParserMixedContentDeclNotFinishedError = 53, NSXMLParserElementContentDeclNotStartedError = 54, NSXMLParserElementContentDeclNotFinishedError = 55, NSXMLParserXMLDeclNotStartedError = 56, NSXMLParserXMLDeclNotFinishedError = 57, NSXMLParserConditionalSectionNotStartedError = 58, NSXMLParserConditionalSectionNotFinishedError = 59, NSXMLParserExternalSubsetNotFinishedError = 60, NSXMLParserDOCTYPEDeclNotFinishedError = 61, NSXMLParserMisplacedCDATAEndStringError = 62, NSXMLParserCDATANotFinishedError = 63, NSXMLParserMisplacedXMLDeclarationError = 64, NSXMLParserSpaceRequiredError = 65, NSXMLParserSeparatorRequiredError = 66, NSXMLParserNMTOKENRequiredError = 67, NSXMLParserNAMERequiredError = 68, NSXMLParserPCDATARequiredError = 69, NSXMLParserURIRequiredError = 70, NSXMLParserPublicIdentifierRequiredError = 71, NSXMLParserLTRequiredError = 72, NSXMLParserGTRequiredError = 73, NSXMLParserLTSlashRequiredError = 74, NSXMLParserEqualExpectedError = 75, NSXMLParserTagNameMismatchError = 76, NSXMLParserUnfinishedTagError = 77, NSXMLParserStandaloneValueError = 78, NSXMLParserInvalidEncodingNameError = 79, NSXMLParserCommentContainsDoubleHyphenError = 80, NSXMLParserInvalidEncodingError = 81, NSXMLParserExternalStandaloneEntityError = 82, NSXMLParserInvalidConditionalSectionError = 83, NSXMLParserEntityValueRequiredError = 84, NSXMLParserNotWellBalancedError = 85, NSXMLParserExtraContentError = 86, NSXMLParserInvalidCharacterInEntityError = 87, NSXMLParserParsedEntityRefInInternalError = 88, NSXMLParserEntityRefLoopError = 89, NSXMLParserEntityBoundaryError = 90, NSXMLParserInvalidURIError = 91, NSXMLParserURIFragmentError = 92, NSXMLParserNoDTDError = 94, NSXMLParserDelegateAbortedParseError = 512 }; #pragma clang assume_nonnull end extern "C" { typedef uid_t au_id_t; typedef pid_t au_asid_t; typedef u_int16_t au_event_t; typedef u_int16_t au_emod_t; typedef u_int32_t au_class_t; typedef u_int64_t au_asflgs_t __attribute__ ((aligned(8))); typedef unsigned char au_ctlmode_t; struct au_tid { dev_t port; u_int32_t machine; }; typedef struct au_tid au_tid_t; struct au_tid_addr { dev_t at_port; u_int32_t at_type; u_int32_t at_addr[4]; }; typedef struct au_tid_addr au_tid_addr_t; struct au_mask { unsigned int am_success; unsigned int am_failure; }; typedef struct au_mask au_mask_t; struct auditinfo { au_id_t ai_auid; au_mask_t ai_mask; au_tid_t ai_termid; au_asid_t ai_asid; }; typedef struct auditinfo auditinfo_t; struct auditinfo_addr { au_id_t ai_auid; au_mask_t ai_mask; au_tid_addr_t ai_termid; au_asid_t ai_asid; au_asflgs_t ai_flags; }; typedef struct auditinfo_addr auditinfo_addr_t; struct auditpinfo { pid_t ap_pid; au_id_t ap_auid; au_mask_t ap_mask; au_tid_t ap_termid; au_asid_t ap_asid; }; typedef struct auditpinfo auditpinfo_t; struct auditpinfo_addr { pid_t ap_pid; au_id_t ap_auid; au_mask_t ap_mask; au_tid_addr_t ap_termid; au_asid_t ap_asid; au_asflgs_t ap_flags; }; typedef struct auditpinfo_addr auditpinfo_addr_t; struct au_session { auditinfo_addr_t *as_aia_p; au_mask_t as_mask; }; typedef struct au_session au_session_t; struct au_expire_after { time_t age; size_t size; unsigned char op_type; }; typedef struct au_expire_after au_expire_after_t; typedef struct au_token token_t; struct au_qctrl { int aq_hiwater; int aq_lowater; int aq_bufsz; int aq_delay; int aq_minfree; }; typedef struct au_qctrl au_qctrl_t; struct audit_stat { unsigned int as_version; unsigned int as_numevent; int as_generated; int as_nonattrib; int as_kernel; int as_audit; int as_auditctl; int as_enqueue; int as_written; int as_wblocked; int as_rblocked; int as_dropped; int as_totalsize; unsigned int as_memused; }; typedef struct audit_stat au_stat_t; struct audit_fstat { u_int64_t af_filesz; u_int64_t af_currsz; }; typedef struct audit_fstat au_fstat_t; struct au_evclass_map { au_event_t ec_number; au_class_t ec_class; }; typedef struct au_evclass_map au_evclass_map_t; int audit(const void *, int) __attribute__((availability(macos,introduced=10.4,deprecated=11.0,message="audit is deprecated"))); int auditon(int, void *, int) __attribute__((availability(macos,introduced=10.4,deprecated=11.0,message="audit is deprecated"))); int auditctl(const char *) __attribute__((availability(macos,introduced=10.4,deprecated=11.0,message="audit is deprecated"))); int getauid(au_id_t *); int setauid(const au_id_t *); int getaudit_addr(struct auditinfo_addr *, int); int setaudit_addr(const struct auditinfo_addr *, int); int getaudit(struct auditinfo *) __attribute__((availability(ios,introduced=2.0,deprecated=6.0))); int setaudit(const struct auditinfo *) __attribute__((availability(ios,introduced=2.0,deprecated=6.0))); mach_port_name_t audit_session_self(void); au_asid_t audit_session_join(mach_port_name_t port); int audit_session_port(au_asid_t asid, mach_port_name_t *portname); } // @class NSMutableDictionary; #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_NSLock #define _REWRITER_typedef_NSLock typedef struct objc_object NSLock; typedef struct {} _objc_exc_NSLock; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @class NSXPCConnection; #ifndef _REWRITER_typedef_NSXPCConnection #define _REWRITER_typedef_NSXPCConnection typedef struct objc_object NSXPCConnection; typedef struct {} _objc_exc_NSXPCConnection; #endif #ifndef _REWRITER_typedef_NSXPCListener #define _REWRITER_typedef_NSXPCListener typedef struct objc_object NSXPCListener; typedef struct {} _objc_exc_NSXPCListener; #endif #ifndef _REWRITER_typedef_NSXPCInterface #define _REWRITER_typedef_NSXPCInterface typedef struct objc_object NSXPCInterface; typedef struct {} _objc_exc_NSXPCInterface; #endif #ifndef _REWRITER_typedef_NSXPCListenerEndpoint #define _REWRITER_typedef_NSXPCListenerEndpoint typedef struct objc_object NSXPCListenerEndpoint; typedef struct {} _objc_exc_NSXPCListenerEndpoint; #endif // @protocol NSXPCListenerDelegate; #pragma clang assume_nonnull begin // @protocol NSXPCProxyCreating // - (id)remoteObjectProxy; // - (id)remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler; /* @optional */ // - (id)synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ typedef NSUInteger NSXPCConnectionOptions; enum { NSXPCConnectionPrivileged = (1 << 12UL) } __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSXPCConnection #define _REWRITER_typedef_NSXPCConnection typedef struct objc_object NSXPCConnection; typedef struct {} _objc_exc_NSXPCConnection; #endif struct NSXPCConnection_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithServiceName:(NSString *)serviceName __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, readonly, copy) NSString *serviceName; // - (instancetype)initWithMachServiceName:(NSString *)name options:(NSXPCConnectionOptions)options __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithListenerEndpoint:(NSXPCListenerEndpoint *)endpoint; // @property (readonly, retain) NSXPCListenerEndpoint *endpoint; // @property (nullable, retain) NSXPCInterface *exportedInterface; // @property (nullable, retain) id exportedObject; // @property (nullable, retain) NSXPCInterface *remoteObjectInterface; // @property (readonly, retain) id remoteObjectProxy; // - (id)remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler; // - (id)synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) void (^interruptionHandler)(void); // @property (nullable, copy) void (^invalidationHandler)(void); // - (void)resume; // - (void)suspend; // - (void)invalidate; // @property (readonly) au_asid_t auditSessionIdentifier; // @property (readonly) pid_t processIdentifier; // @property (readonly) uid_t effectiveUserIdentifier; // @property (readonly) gid_t effectiveGroupIdentifier; // + (nullable NSXPCConnection *)currentConnection __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)scheduleSendBarrierBlock:(void (^)(void))block __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSXPCListener #define _REWRITER_typedef_NSXPCListener typedef struct objc_object NSXPCListener; typedef struct {} _objc_exc_NSXPCListener; #endif struct NSXPCListener_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSXPCListener *)serviceListener; // + (NSXPCListener *)anonymousListener; // - (instancetype)initWithMachServiceName:(NSString *)name __attribute__((objc_designated_initializer)) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, weak) id <NSXPCListenerDelegate> delegate; // @property (readonly, retain) NSXPCListenerEndpoint *endpoint; // - (void)resume; // - (void)suspend; // - (void)invalidate; /* @end */ // @protocol NSXPCListenerDelegate <NSObject> /* @optional */ // - (BOOL)listener:(NSXPCListener *)listener shouldAcceptNewConnection:(NSXPCConnection *)newConnection; /* @end */ __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSXPCInterface #define _REWRITER_typedef_NSXPCInterface typedef struct objc_object NSXPCInterface; typedef struct {} _objc_exc_NSXPCInterface; #endif struct NSXPCInterface_IMPL { struct NSObject_IMPL NSObject_IVARS; Protocol *_protocol; void *_reserved2; id _reserved1; }; // + (NSXPCInterface *)interfaceWithProtocol:(Protocol *)protocol; // @property (assign) Protocol *protocol; // - (void)setClasses:(NSSet<Class> *)classes forSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply; // - (NSSet<Class> *)classesForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply; // - (void)setInterface:(NSXPCInterface *)ifc forSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply; // - (nullable NSXPCInterface *)interfaceForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply; /* @end */ __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSXPCListenerEndpoint #define _REWRITER_typedef_NSXPCListenerEndpoint typedef struct objc_object NSXPCListenerEndpoint; typedef struct {} _objc_exc_NSXPCListenerEndpoint; #endif struct NSXPCListenerEndpoint_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_internal; }; /* @end */ __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSXPCCoder #define _REWRITER_typedef_NSXPCCoder typedef struct objc_object NSXPCCoder; typedef struct {} _objc_exc_NSXPCCoder; #endif struct NSXPCCoder_IMPL { struct NSCoder_IMPL NSCoder_IVARS; id _userInfo; id _reserved1; }; // @property (nullable, retain) id <NSObject> userInfo; // @property (nullable, readonly, strong) NSXPCConnection *connection __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ #pragma clang assume_nonnull end enum { NSFileNoSuchFileError = 4, NSFileLockingError = 255, NSFileReadUnknownError = 256, NSFileReadNoPermissionError = 257, NSFileReadInvalidFileNameError = 258, NSFileReadCorruptFileError = 259, NSFileReadNoSuchFileError = 260, NSFileReadInapplicableStringEncodingError = 261, NSFileReadUnsupportedSchemeError = 262, NSFileReadTooLargeError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 263, NSFileReadUnknownStringEncodingError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 264, NSFileWriteUnknownError = 512, NSFileWriteNoPermissionError = 513, NSFileWriteInvalidFileNameError = 514, NSFileWriteFileExistsError __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 516, NSFileWriteInapplicableStringEncodingError = 517, NSFileWriteUnsupportedSchemeError = 518, NSFileWriteOutOfSpaceError = 640, NSFileWriteVolumeReadOnlyError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 642, NSFileManagerUnmountUnknownError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 768, NSFileManagerUnmountBusyError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 769, NSKeyValueValidationError = 1024, NSFormattingError = 2048, NSUserCancelledError = 3072, NSFeatureUnsupportedError __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3328, NSExecutableNotLoadableError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3584, NSExecutableArchitectureMismatchError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3585, NSExecutableRuntimeMismatchError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3586, NSExecutableLoadError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3587, NSExecutableLinkError __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3588, NSFileErrorMinimum = 0, NSFileErrorMaximum = 1023, NSValidationErrorMinimum = 1024, NSValidationErrorMaximum = 2047, NSExecutableErrorMinimum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3584, NSExecutableErrorMaximum __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3839, NSFormattingErrorMinimum = 2048, NSFormattingErrorMaximum = 2559, NSPropertyListReadCorruptError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3840, NSPropertyListReadUnknownVersionError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3841, NSPropertyListReadStreamError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3842, NSPropertyListWriteStreamError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3851, NSPropertyListWriteInvalidError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3852, NSPropertyListErrorMinimum __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3840, NSPropertyListErrorMaximum __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4095, NSXPCConnectionInterrupted __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4097, NSXPCConnectionInvalid __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4099, NSXPCConnectionReplyInvalid __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4101, NSXPCConnectionErrorMinimum __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4096, NSXPCConnectionErrorMaximum __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4224, NSUbiquitousFileUnavailableError __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4353, NSUbiquitousFileNotUploadedDueToQuotaError __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4354, NSUbiquitousFileUbiquityServerNotAvailable __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4355, NSUbiquitousFileErrorMinimum __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4352, NSUbiquitousFileErrorMaximum __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4607, NSUserActivityHandoffFailedError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4608, NSUserActivityConnectionUnavailableError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4609, NSUserActivityRemoteApplicationTimedOutError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4610, NSUserActivityHandoffUserInfoTooLargeError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4611, NSUserActivityErrorMinimum __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4608, NSUserActivityErrorMaximum __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4863, NSCoderReadCorruptError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4864, NSCoderValueNotFoundError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4865, NSCoderInvalidValueError __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) = 4866, NSCoderErrorMinimum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4864, NSCoderErrorMaximum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4991, NSBundleErrorMinimum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4992, NSBundleErrorMaximum __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 5119, NSBundleOnDemandResourceOutOfSpaceError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4992, NSBundleOnDemandResourceExceededMaximumSizeError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4993, NSBundleOnDemandResourceInvalidTagError __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 4994, NSCloudSharingNetworkFailureError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5120, NSCloudSharingQuotaExceededError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5121, NSCloudSharingTooManyParticipantsError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5122, NSCloudSharingConflictError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5123, NSCloudSharingNoPermissionError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5124, NSCloudSharingOtherError __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5375, NSCloudSharingErrorMinimum __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5120, NSCloudSharingErrorMaximum __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 5375, NSCompressionFailedError __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5376, NSDecompressionFailedError __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5377, NSCompressionErrorMinimum __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5376, NSCompressionErrorMaximum __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) = 5503, }; #pragma clang assume_nonnull begin typedef NSUInteger NSByteCountFormatterUnits; enum { NSByteCountFormatterUseDefault = 0, NSByteCountFormatterUseBytes = 1UL << 0, NSByteCountFormatterUseKB = 1UL << 1, NSByteCountFormatterUseMB = 1UL << 2, NSByteCountFormatterUseGB = 1UL << 3, NSByteCountFormatterUseTB = 1UL << 4, NSByteCountFormatterUsePB = 1UL << 5, NSByteCountFormatterUseEB = 1UL << 6, NSByteCountFormatterUseZB = 1UL << 7, NSByteCountFormatterUseYBOrHigher = 0x0FFUL << 8, NSByteCountFormatterUseAll = 0x0FFFFUL }; typedef NSInteger NSByteCountFormatterCountStyle; enum { NSByteCountFormatterCountStyleFile = 0, NSByteCountFormatterCountStyleMemory = 1, NSByteCountFormatterCountStyleDecimal = 2, NSByteCountFormatterCountStyleBinary = 3 }; __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSByteCountFormatter #define _REWRITER_typedef_NSByteCountFormatter typedef struct objc_object NSByteCountFormatter; typedef struct {} _objc_exc_NSByteCountFormatter; #endif struct NSByteCountFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; unsigned int _allowedUnits; char _countStyle; BOOL _allowsNonnumericFormatting; BOOL _includesUnit; BOOL _includesCount; BOOL _includesActualByteCount; BOOL _adaptive; BOOL _zeroPadsFractionDigits; int _formattingContext; int _reserved[5]; }; // + (NSString *)stringFromByteCount:(long long)byteCount countStyle:(NSByteCountFormatterCountStyle)countStyle; // - (NSString *)stringFromByteCount:(long long)byteCount; // + (NSString *)stringFromMeasurement:(NSMeasurement<NSUnitInformationStorage *> *)measurement countStyle:(NSByteCountFormatterCountStyle)countStyle __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (NSString *)stringFromMeasurement:(NSMeasurement<NSUnitInformationStorage *> *)measurement __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (nullable NSString *)stringForObjectValue:(nullable id)obj; // @property NSByteCountFormatterUnits allowedUnits; // @property NSByteCountFormatterCountStyle countStyle; // @property BOOL allowsNonnumericFormatting; // @property BOOL includesUnit; // @property BOOL includesCount; // @property BOOL includesActualByteCount; // @property (getter=isAdaptive) BOOL adaptive; // @property BOOL zeroPadsFractionDigits; // @property NSFormattingContext formattingContext __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @protocol NSCacheDelegate; #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSCache #define _REWRITER_typedef_NSCache typedef struct objc_object NSCache; typedef struct {} _objc_exc_NSCache; #endif struct NSCache_IMPL { struct NSObject_IMPL NSObject_IVARS; id _delegate; void *_private[5]; void *_reserved; }; // @property (copy) NSString *name; // @property (nullable, assign) id<NSCacheDelegate> delegate; // - (nullable ObjectType)objectForKey:(KeyType)key; // - (void)setObject:(ObjectType)obj forKey:(KeyType)key; // - (void)setObject:(ObjectType)obj forKey:(KeyType)key cost:(NSUInteger)g; // - (void)removeObjectForKey:(KeyType)key; // - (void)removeAllObjects; // @property NSUInteger totalCostLimit; // @property NSUInteger countLimit; // @property BOOL evictsObjectsWithDiscardedContent; /* @end */ // @protocol NSCacheDelegate <NSObject> /* @optional */ // - (void)cache:(NSCache *)cache willEvictObject:(id)obj; /* @end */ #pragma clang assume_nonnull end // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSPredicate #define _REWRITER_typedef_NSPredicate typedef struct objc_object NSPredicate; typedef struct {} _objc_exc_NSPredicate; #endif struct _predicateFlags { unsigned int _evaluationBlocked : 1; unsigned int _reservedPredicateFlags : 31; } ; struct NSPredicate_IMPL { struct NSObject_IMPL NSObject_IVARS; struct _predicateFlags _predicateFlags; uint32_t reserved; }; // + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat argumentArray:(nullable NSArray *)arguments; // + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat, ...; // + (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat arguments:(va_list)argList; // + (nullable NSPredicate *)predicateFromMetadataQueryString:(NSString *)queryString __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (NSPredicate *)predicateWithValue:(BOOL)value; // + (NSPredicate*)predicateWithBlock:(BOOL (^)(id _Nullable evaluatedObject, NSDictionary<NSString *, id> * _Nullable bindings))block __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *predicateFormat; // - (instancetype)predicateWithSubstitutionVariables:(NSDictionary<NSString *, id> *)variables; // - (BOOL)evaluateWithObject:(nullable id)object; // - (BOOL)evaluateWithObject:(nullable id)object substitutionVariables:(nullable NSDictionary<NSString *, id> *)bindings __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSArray<ObjectType> (NSPredicateSupport) // - (NSArray<ObjectType> *)filteredArrayUsingPredicate:(NSPredicate *)predicate; /* @end */ // @interface NSMutableArray<ObjectType> (NSPredicateSupport) // - (void)filterUsingPredicate:(NSPredicate *)predicate; /* @end */ // @interface NSSet<ObjectType> (NSPredicateSupport) // - (NSSet<ObjectType> *)filteredSetUsingPredicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableSet<ObjectType> (NSPredicateSupport) // - (void)filterUsingPredicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSOrderedSet<ObjectType> (NSPredicateSupport) // - (NSOrderedSet<ObjectType> *)filteredOrderedSetUsingPredicate:(NSPredicate *)p __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ // @interface NSMutableOrderedSet<ObjectType> (NSPredicateSupport) // - (void)filterUsingPredicate:(NSPredicate *)p __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger NSComparisonPredicateOptions; enum { NSCaseInsensitivePredicateOption = 0x01, NSDiacriticInsensitivePredicateOption = 0x02, NSNormalizedPredicateOption __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 0x04, }; typedef NSUInteger NSComparisonPredicateModifier; enum { NSDirectPredicateModifier = 0, NSAllPredicateModifier, NSAnyPredicateModifier }; typedef NSUInteger NSPredicateOperatorType; enum { NSLessThanPredicateOperatorType = 0, NSLessThanOrEqualToPredicateOperatorType, NSGreaterThanPredicateOperatorType, NSGreaterThanOrEqualToPredicateOperatorType, NSEqualToPredicateOperatorType, NSNotEqualToPredicateOperatorType, NSMatchesPredicateOperatorType, NSLikePredicateOperatorType, NSBeginsWithPredicateOperatorType, NSEndsWithPredicateOperatorType, NSInPredicateOperatorType, NSCustomSelectorPredicateOperatorType, NSContainsPredicateOperatorType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 99, NSBetweenPredicateOperatorType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) }; // @class NSPredicateOperator; #ifndef _REWRITER_typedef_NSPredicateOperator #define _REWRITER_typedef_NSPredicateOperator typedef struct objc_object NSPredicateOperator; typedef struct {} _objc_exc_NSPredicateOperator; #endif // @class NSExpression; #ifndef _REWRITER_typedef_NSExpression #define _REWRITER_typedef_NSExpression typedef struct objc_object NSExpression; typedef struct {} _objc_exc_NSExpression; #endif __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSComparisonPredicate #define _REWRITER_typedef_NSComparisonPredicate typedef struct objc_object NSComparisonPredicate; typedef struct {} _objc_exc_NSComparisonPredicate; #endif struct NSComparisonPredicate_IMPL { struct NSPredicate_IMPL NSPredicate_IVARS; void *_reserved2; NSPredicateOperator *_predicateOperator; NSExpression *_lhs; NSExpression *_rhs; }; // + (NSComparisonPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options; // + (NSComparisonPredicate *)predicateWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs customSelector:(SEL)selector; // - (instancetype)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options __attribute__((objc_designated_initializer)); // - (instancetype)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs customSelector:(SEL)selector __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (readonly) NSPredicateOperatorType predicateOperatorType; // @property (readonly) NSComparisonPredicateModifier comparisonPredicateModifier; // @property (readonly, retain) NSExpression *leftExpression; // @property (readonly, retain) NSExpression *rightExpression; // @property (nullable, readonly) SEL customSelector; // @property (readonly) NSComparisonPredicateOptions options; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSCompoundPredicateType; enum { NSNotPredicateType = 0, NSAndPredicateType, NSOrPredicateType, }; __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSCompoundPredicate #define _REWRITER_typedef_NSCompoundPredicate typedef struct objc_object NSCompoundPredicate; typedef struct {} _objc_exc_NSCompoundPredicate; #endif struct NSCompoundPredicate_IMPL { struct NSPredicate_IMPL NSPredicate_IVARS; void *_reserved2; NSUInteger _type; NSArray *_subpredicates; }; // - (instancetype)initWithType:(NSCompoundPredicateType)type subpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (readonly) NSCompoundPredicateType compoundPredicateType; // @property (readonly, copy) NSArray *subpredicates; // + (NSCompoundPredicate *)andPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((swift_name("init(andPredicateWithSubpredicates:)"))); // + (NSCompoundPredicate *)orPredicateWithSubpredicates:(NSArray<NSPredicate *> *)subpredicates __attribute__((swift_name("init(orPredicateWithSubpredicates:)"))); // + (NSCompoundPredicate *)notPredicateWithSubpredicate:(NSPredicate *)predicate __attribute__((swift_name("init(notPredicateWithSubpredicate:)"))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) typedef NSInteger NSDateComponentsFormatterUnitsStyle; enum { NSDateComponentsFormatterUnitsStylePositional = 0, NSDateComponentsFormatterUnitsStyleAbbreviated, NSDateComponentsFormatterUnitsStyleShort, NSDateComponentsFormatterUnitsStyleFull, NSDateComponentsFormatterUnitsStyleSpellOut, NSDateComponentsFormatterUnitsStyleBrief __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) }; __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) typedef NSUInteger NSDateComponentsFormatterZeroFormattingBehavior; enum { NSDateComponentsFormatterZeroFormattingBehaviorNone = (0), NSDateComponentsFormatterZeroFormattingBehaviorDefault = (1 << 0), NSDateComponentsFormatterZeroFormattingBehaviorDropLeading = (1 << 1), NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle = (1 << 2), NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing = (1 << 3), NSDateComponentsFormatterZeroFormattingBehaviorDropAll = (NSDateComponentsFormatterZeroFormattingBehaviorDropLeading | NSDateComponentsFormatterZeroFormattingBehaviorDropMiddle | NSDateComponentsFormatterZeroFormattingBehaviorDropTrailing), NSDateComponentsFormatterZeroFormattingBehaviorPad = (1 << 16), }; __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSDateComponentsFormatter #define _REWRITER_typedef_NSDateComponentsFormatter typedef struct objc_object NSDateComponentsFormatter; typedef struct {} _objc_exc_NSDateComponentsFormatter; #endif struct NSDateComponentsFormatter_IMPL { struct NSFormatter_IMPL NSFormatter_IVARS; pthread_mutex_t _lock; void *_fmt; void *_unused; NSString *_fmtLocaleIdent; NSCalendar *_calendar; NSDate *_referenceDate; NSNumberFormatter *_unitFormatter; NSCalendarUnit _allowedUnits; NSFormattingContext _formattingContext; NSDateComponentsFormatterUnitsStyle _unitsStyle; NSDateComponentsFormatterZeroFormattingBehavior _zeroFormattingBehavior; NSInteger _maximumUnitCount; BOOL _allowsFractionalUnits; BOOL _collapsesLargestUnit; BOOL _includesApproximationPhrase; BOOL _includesTimeRemainingPhrase; void *_reserved; }; // - (nullable NSString *)stringForObjectValue:(nullable id)obj; // - (nullable NSString *)stringFromDateComponents:(NSDateComponents *)components; // - (nullable NSString *)stringFromDate:(NSDate *)startDate toDate:(NSDate *)endDate; // - (nullable NSString *)stringFromTimeInterval:(NSTimeInterval)ti; // + (nullable NSString *)localizedStringFromDateComponents:(NSDateComponents *)components unitsStyle:(NSDateComponentsFormatterUnitsStyle) unitsStyle; // @property NSDateComponentsFormatterUnitsStyle unitsStyle; // @property NSCalendarUnit allowedUnits; // @property NSDateComponentsFormatterZeroFormattingBehavior zeroFormattingBehavior; // @property (nullable, copy) NSCalendar *calendar; // @property (nullable, copy) NSDate *referenceDate __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property BOOL allowsFractionalUnits; // @property NSInteger maximumUnitCount; // @property BOOL collapsesLargestUnit; // @property BOOL includesApproximationPhrase; // @property BOOL includesTimeRemainingPhrase; // @property NSFormattingContext formattingContext; // - (BOOL)getObjectValue:(out id _Nullable * _Nullable)obj forString:(NSString *)string errorDescription:(out NSString * _Nullable * _Nullable)error; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSMutableDictionary; #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif // @class NSPredicate; #ifndef _REWRITER_typedef_NSPredicate #define _REWRITER_typedef_NSPredicate typedef struct objc_object NSPredicate; typedef struct {} _objc_exc_NSPredicate; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSExpressionType; enum { NSConstantValueExpressionType = 0, NSEvaluatedObjectExpressionType, NSVariableExpressionType, NSKeyPathExpressionType, NSFunctionExpressionType, NSUnionSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSIntersectSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSMinusSetExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSSubqueryExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 13, NSAggregateExpressionType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 14, NSAnyKeyExpressionType __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 15, NSBlockExpressionType = 19, NSConditionalExpressionType __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 20 }; __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSExpression #define _REWRITER_typedef_NSExpression typedef struct objc_object NSExpression; typedef struct {} _objc_exc_NSExpression; #endif struct _expressionFlags { unsigned int _evaluationBlocked : 1; unsigned int _reservedExpressionFlags : 31; } ; struct NSExpression_IMPL { struct NSObject_IMPL NSObject_IVARS; struct _expressionFlags _expressionFlags; uint32_t reserved; NSExpressionType _expressionType; }; // + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat argumentArray:(NSArray *)arguments __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat, ... __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionWithFormat:(NSString *)expressionFormat arguments:(va_list)argList __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForConstantValue:(nullable id)obj; // + (NSExpression *)expressionForEvaluatedObject; // + (NSExpression *)expressionForVariable:(NSString *)string; // + (NSExpression *)expressionForKeyPath:(NSString *)keyPath; // + (NSExpression *)expressionForFunction:(NSString *)name arguments:(NSArray *)parameters; // + (NSExpression *)expressionForAggregate:(NSArray<NSExpression *> *)subexpressions __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForUnionSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForIntersectSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForMinusSet:(NSExpression *)left with:(NSExpression *)right __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForSubquery:(NSExpression *)expression usingIteratorVariable:(NSString *)variable predicate:(NSPredicate *)predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForFunction:(NSExpression *)target selectorName:(NSString *)name arguments:(nullable NSArray *)parameters __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForAnyKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForBlock:(id (^)(id _Nullable evaluatedObject, NSArray<NSExpression *> *expressions, NSMutableDictionary * _Nullable context))block arguments:(nullable NSArray<NSExpression *> *)arguments __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (NSExpression *)expressionForConditional:(NSPredicate *)predicate trueExpression:(NSExpression *)trueExpression falseExpression:(NSExpression *)falseExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initWithExpressionType:(NSExpressionType)type __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (readonly) NSExpressionType expressionType; // @property (nullable, readonly, retain) id constantValue; // @property (readonly, copy) NSString *keyPath; // @property (readonly, copy) NSString *function; // @property (readonly, copy) NSString *variable; // @property (readonly, copy) NSExpression *operand; // @property (nullable, readonly, copy) NSArray<NSExpression *> *arguments; // @property (readonly, retain) id collection __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSPredicate *predicate __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSExpression *leftExpression __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSExpression *rightExpression __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSExpression *trueExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSExpression *falseExpression __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) id (^expressionBlock)(id _Nullable, NSArray<NSExpression *> *, NSMutableDictionary * _Nullable) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable id)expressionValueWithObject:(nullable id)object context:(nullable NSMutableDictionary *)context; // - (void)allowEvaluation __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSExtensionContext #define _REWRITER_typedef_NSExtensionContext typedef struct objc_object NSExtensionContext; typedef struct {} _objc_exc_NSExtensionContext; #endif struct NSExtensionContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(readonly, copy, nonatomic) NSArray *inputItems; // - (void)completeRequestReturningItems:(nullable NSArray *)items completionHandler:(void(^ _Nullable)(BOOL expired))completionHandler; // - (void)cancelRequestWithError:(NSError *)error; // - (void)openURL:(NSURL *)URL completionHandler:(void (^ _Nullable)(BOOL success))completionHandler; /* @end */ extern "C" NSString * _Null_unspecified const NSExtensionItemsAndErrorsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * _Null_unspecified const NSExtensionHostWillEnterForegroundNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSString * _Null_unspecified const NSExtensionHostDidEnterBackgroundNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSString * _Null_unspecified const NSExtensionHostWillResignActiveNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); extern "C" NSString * _Null_unspecified const NSExtensionHostDidBecomeActiveNotification __attribute__((availability(ios,introduced=8.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSExtensionItem #define _REWRITER_typedef_NSExtensionItem typedef struct objc_object NSExtensionItem; typedef struct {} _objc_exc_NSExtensionItem; #endif struct NSExtensionItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nullable, copy, nonatomic) NSAttributedString *attributedTitle; // @property(nullable, copy, nonatomic) NSAttributedString *attributedContentText; // @property(nullable, copy, nonatomic) NSArray<NSItemProvider *> *attachments; // @property(nullable, copy, nonatomic) NSDictionary *userInfo; /* @end */ extern "C" NSString * _Null_unspecified const NSExtensionItemAttributedTitleKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * _Null_unspecified const NSExtensionItemAttributedContentTextKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * _Null_unspecified const NSExtensionItemAttachmentsKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSExtensionContext; #ifndef _REWRITER_typedef_NSExtensionContext #define _REWRITER_typedef_NSExtensionContext typedef struct objc_object NSExtensionContext; typedef struct {} _objc_exc_NSExtensionContext; #endif // @protocol NSExtensionRequestHandling <NSObject> /* @required */ // - (void)beginRequestWithExtensionContext:(NSExtensionContext *)context; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif // @protocol NSFilePresenter; #pragma clang assume_nonnull begin typedef NSUInteger NSFileCoordinatorReadingOptions; enum { NSFileCoordinatorReadingWithoutChanges = 1 << 0, NSFileCoordinatorReadingResolvesSymbolicLink = 1 << 1, NSFileCoordinatorReadingImmediatelyAvailableMetadataOnly __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 2, NSFileCoordinatorReadingForUploading __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 3, }; typedef NSUInteger NSFileCoordinatorWritingOptions; enum { NSFileCoordinatorWritingForDeleting = 1 << 0, NSFileCoordinatorWritingForMoving = 1 << 1, NSFileCoordinatorWritingForMerging = 1 << 2, NSFileCoordinatorWritingForReplacing = 1 << 3, NSFileCoordinatorWritingContentIndependentMetadataOnly __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1 << 4 }; __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSFileAccessIntent #define _REWRITER_typedef_NSFileAccessIntent typedef struct objc_object NSFileAccessIntent; typedef struct {} _objc_exc_NSFileAccessIntent; #endif struct NSFileAccessIntent_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURL *_url; BOOL _isRead; NSInteger _options; }; // + (instancetype)readingIntentWithURL:(NSURL *)url options:(NSFileCoordinatorReadingOptions)options; // + (instancetype)writingIntentWithURL:(NSURL *)url options:(NSFileCoordinatorWritingOptions)options; // @property (readonly, copy) NSURL *URL; /* @end */ __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSFileCoordinator #define _REWRITER_typedef_NSFileCoordinator typedef struct objc_object NSFileCoordinator; typedef struct {} _objc_exc_NSFileCoordinator; #endif struct NSFileCoordinator_IMPL { struct NSObject_IMPL NSObject_IVARS; id _accessArbiter; id _fileReactor; id _purposeID; NSURL *_recentFilePresenterURL; id _accessClaimIDOrIDs; BOOL _isCancelled; NSMutableDictionary *_movedItems; }; // + (void)addFilePresenter:(id<NSFilePresenter>)filePresenter; // + (void)removeFilePresenter:(id<NSFilePresenter>)filePresenter; @property (class, readonly, copy) NSArray<id<NSFilePresenter>> *filePresenters; // - (instancetype)initWithFilePresenter:(nullable id<NSFilePresenter>)filePresenterOrNil __attribute__((objc_designated_initializer)); // @property (copy) NSString *purposeIdentifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)coordinateAccessWithIntents:(NSArray<NSFileAccessIntent *> *)intents queue:(NSOperationQueue *)queue byAccessor:(void (^)(NSError * _Nullable error))accessor __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)coordinateReadingItemAtURL:(NSURL *)url options:(NSFileCoordinatorReadingOptions)options error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL))reader; // - (void)coordinateWritingItemAtURL:(NSURL *)url options:(NSFileCoordinatorWritingOptions)options error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL))writer; // - (void)coordinateReadingItemAtURL:(NSURL *)readingURL options:(NSFileCoordinatorReadingOptions)readingOptions writingItemAtURL:(NSURL *)writingURL options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newReadingURL, NSURL *newWritingURL))readerWriter; // - (void)coordinateWritingItemAtURL:(NSURL *)url1 options:(NSFileCoordinatorWritingOptions)options1 writingItemAtURL:(NSURL *)url2 options:(NSFileCoordinatorWritingOptions)options2 error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(NSURL *newURL1, NSURL *newURL2))writer; // - (void)prepareForReadingItemsAtURLs:(NSArray<NSURL *> *)readingURLs options:(NSFileCoordinatorReadingOptions)readingOptions writingItemsAtURLs:(NSArray<NSURL *> *)writingURLs options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (__attribute__((noescape)) ^)(void (^completionHandler)(void)))batchAccessor; // - (void)itemAtURL:(NSURL *)oldURL willMoveToURL:(NSURL *)newURL __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)itemAtURL:(NSURL *)oldURL didMoveToURL:(NSURL *)newURL; // - (void)itemAtURL:(NSURL *)url didChangeUbiquityAttributes:(NSSet <NSURLResourceKey> *)attributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)cancel; /* @end */ #pragma clang assume_nonnull end // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSFileVersion #define _REWRITER_typedef_NSFileVersion typedef struct objc_object NSFileVersion; typedef struct {} _objc_exc_NSFileVersion; #endif #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #pragma clang assume_nonnull begin // @protocol NSFilePresenter<NSObject> /* @required */ // @property (nullable, readonly, copy) NSURL *presentedItemURL; // @property (readonly, retain) NSOperationQueue *presentedItemOperationQueue; /* @optional */ // @property (nullable, readonly, copy) NSURL *primaryPresentedItemURL __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)relinquishPresentedItemToReader:(void (^)(void (^ _Nullable reacquirer)(void)))reader; // - (void)relinquishPresentedItemToWriter:(void (^)(void (^ _Nullable reacquirer)(void)))writer; // - (void)savePresentedItemChangesWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler; // - (void)accommodatePresentedItemDeletionWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler; // - (void)presentedItemDidMoveToURL:(NSURL *)newURL; // - (void)presentedItemDidChange; // - (void)presentedItemDidChangeUbiquityAttributes:(NSSet<NSURLResourceKey> *)attributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, strong) NSSet<NSURLResourceKey> *observedPresentedItemUbiquityAttributes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)presentedItemDidGainVersion:(NSFileVersion *)version; // - (void)presentedItemDidLoseVersion:(NSFileVersion *)version; // - (void)presentedItemDidResolveConflictVersion:(NSFileVersion *)version; // - (void)accommodatePresentedSubitemDeletionAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler; // - (void)presentedSubitemDidAppearAtURL:(NSURL *)url; // - (void)presentedSubitemAtURL:(NSURL *)oldURL didMoveToURL:(NSURL *)newURL; // - (void)presentedSubitemDidChangeAtURL:(NSURL *)url; // - (void)presentedSubitemAtURL:(NSURL *)url didGainVersion:(NSFileVersion *)version; // - (void)presentedSubitemAtURL:(NSURL *)url didLoseVersion:(NSFileVersion *)version; // - (void)presentedSubitemAtURL:(NSURL *)url didResolveConflictVersion:(NSFileVersion *)version; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDate #define _REWRITER_typedef_NSDate typedef struct objc_object NSDate; typedef struct {} _objc_exc_NSDate; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSPersonNameComponents #define _REWRITER_typedef_NSPersonNameComponents typedef struct objc_object NSPersonNameComponents; typedef struct {} _objc_exc_NSPersonNameComponents; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSFileVersionAddingOptions; enum { NSFileVersionAddingByMoving = 1 << 0 }; typedef NSUInteger NSFileVersionReplacingOptions; enum { NSFileVersionReplacingByMoving = 1 << 0 }; __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSFileVersion #define _REWRITER_typedef_NSFileVersion typedef struct objc_object NSFileVersion; typedef struct {} _objc_exc_NSFileVersion; #endif struct NSFileVersion_IMPL { struct NSObject_IMPL NSObject_IVARS; NSURL *_fileURL; id _addition; id _deadVersionIdentifier; id _nonLocalVersion; NSURL *_contentsURL; BOOL _isBackup; NSString *_localizedName; NSString *_localizedComputerName; NSDate *_modificationDate; BOOL _isResolved; BOOL _contentsURLIsAccessed; id _reserved; NSString *_name; }; // + (nullable NSFileVersion *)currentVersionOfItemAtURL:(NSURL *)url; // + (nullable NSArray<NSFileVersion *> *)otherVersionsOfItemAtURL:(NSURL *)url; // + (nullable NSArray<NSFileVersion *> *)unresolvedConflictVersionsOfItemAtURL:(NSURL *)url; // + (void)getNonlocalVersionsOfItemAtURL:(NSURL *)url completionHandler:(void (^)(NSArray<NSFileVersion *> * _Nullable nonlocalFileVersions, NSError * _Nullable error))completionHandler __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // + (nullable NSFileVersion *)versionOfItemAtURL:(NSURL *)url forPersistentIdentifier:(id)persistentIdentifier; // + (nullable NSFileVersion *)addVersionOfItemAtURL:(NSURL *)url withContentsOfURL:(NSURL *)contentsURL options:(NSFileVersionAddingOptions)options error:(NSError **)outError __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (NSURL *)temporaryDirectoryURLForNewVersionOfItemAtURL:(NSURL *)url __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, copy) NSURL *URL; // @property (nullable, readonly, copy) NSString *localizedName; // @property (nullable, readonly, copy) NSString *localizedNameOfSavingComputer; // @property (nullable, readonly, copy) NSPersonNameComponents *originatorNameComponents __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, readonly, copy) NSDate *modificationDate; // @property (readonly, retain) id<NSCoding> persistentIdentifier; // @property (readonly, getter=isConflict) BOOL conflict; // @property (getter=isResolved) BOOL resolved; // @property (getter=isDiscardable) BOOL discardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly) BOOL hasLocalContents __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL hasThumbnail __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable NSURL *)replaceItemAtURL:(NSURL *)url options:(NSFileVersionReplacingOptions)options error:(NSError **)error; // - (BOOL)removeAndReturnError:(NSError **)outError; // + (BOOL)removeOtherVersionsOfItemAtURL:(NSURL *)url error:(NSError **)outError; /* @end */ #pragma clang assume_nonnull end // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #pragma clang assume_nonnull begin typedef NSUInteger NSFileWrapperReadingOptions; enum { NSFileWrapperReadingImmediate = 1 << 0, NSFileWrapperReadingWithoutMapping = 1 << 1 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSFileWrapperWritingOptions; enum { NSFileWrapperWritingAtomic = 1 << 0, NSFileWrapperWritingWithNameUpdating = 1 << 1 } __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSFileWrapper #define _REWRITER_typedef_NSFileWrapper typedef struct objc_object NSFileWrapper; typedef struct {} _objc_exc_NSFileWrapper; #endif struct NSFileWrapper_IMPL { struct NSObject_IMPL NSObject_IVARS; NSDictionary *_fileAttributes; NSString *_preferredFileName; NSString *_fileName; id _contents; id _icon; id _moreVars; }; // - (nullable instancetype)initWithURL:(NSURL *)url options:(NSFileWrapperReadingOptions)options error:(NSError **)outError __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)initDirectoryWithFileWrappers:(NSDictionary<NSString *, NSFileWrapper *> *)childrenByPreferredName __attribute__((objc_designated_initializer)); // - (instancetype)initRegularFileWithContents:(NSData *)contents __attribute__((objc_designated_initializer)); // - (instancetype)initSymbolicLinkWithDestinationURL:(NSURL *)url __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (nullable instancetype)initWithSerializedRepresentation:(NSData *)serializeRepresentation __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)inCoder __attribute__((objc_designated_initializer)); // @property (readonly, getter=isDirectory) BOOL directory; // @property (readonly, getter=isRegularFile) BOOL regularFile; // @property (readonly, getter=isSymbolicLink) BOOL symbolicLink; // @property (nullable, copy) NSString *preferredFilename; // @property (nullable, copy) NSString *filename; // @property (copy) NSDictionary<NSString *, id> *fileAttributes; // - (BOOL)matchesContentsOfURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)readFromURL:(NSURL *)url options:(NSFileWrapperReadingOptions)options error:(NSError **)outError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)writeToURL:(NSURL *)url options:(NSFileWrapperWritingOptions)options originalContentsURL:(nullable NSURL *)originalContentsURL error:(NSError **)outError __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSData *serializedRepresentation; // - (NSString *)addFileWrapper:(NSFileWrapper *)child; // - (NSString *)addRegularFileWithContents:(NSData *)data preferredFilename:(NSString *)fileName; // - (void)removeFileWrapper:(NSFileWrapper *)child; // @property (nullable, readonly, copy) NSDictionary<NSString *, NSFileWrapper *> *fileWrappers; // - (nullable NSString *)keyForFileWrapper:(NSFileWrapper *)child; // @property (nullable, readonly, copy) NSData *regularFileContents; // @property (nullable, readonly, copy) NSURL *symbolicLinkDestinationURL __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSOrthography #define _REWRITER_typedef_NSOrthography typedef struct objc_object NSOrthography; typedef struct {} _objc_exc_NSOrthography; #endif #ifndef _REWRITER_typedef_NSValue #define _REWRITER_typedef_NSValue typedef struct objc_object NSValue; typedef struct {} _objc_exc_NSValue; #endif #pragma clang assume_nonnull begin typedef NSString *NSLinguisticTagScheme __attribute__((swift_wrapper(struct))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeTokenType __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLexicalClass __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeNameType __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeNameTypeOrLexicalClass __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLemma __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeLanguage __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTagScheme const NSLinguisticTagSchemeScript __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); typedef NSString *NSLinguisticTag __attribute__((swift_wrapper(struct))); extern "C" NSLinguisticTag const NSLinguisticTagWord __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagPunctuation __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagWhitespace __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOther __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagNoun __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagVerb __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagAdjective __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagAdverb __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagPronoun __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagDeterminer __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagParticle __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagPreposition __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagNumber __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagConjunction __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagInterjection __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagClassifier __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagIdiom __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOtherWord __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagSentenceTerminator __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOpenQuote __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagCloseQuote __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOpenParenthesis __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagCloseParenthesis __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagWordJoiner __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagDash __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOtherPunctuation __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagParagraphBreak __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOtherWhitespace __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagPersonalName __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagPlaceName __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); extern "C" NSLinguisticTag const NSLinguisticTagOrganizationName __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); typedef NSInteger NSLinguisticTaggerUnit; enum { NSLinguisticTaggerUnitWord, NSLinguisticTaggerUnitSentence, NSLinguisticTaggerUnitParagraph, NSLinguisticTaggerUnitDocument }; typedef NSUInteger NSLinguisticTaggerOptions; enum { NSLinguisticTaggerOmitWords = 1 << 0, NSLinguisticTaggerOmitPunctuation = 1 << 1, NSLinguisticTaggerOmitWhitespace = 1 << 2, NSLinguisticTaggerOmitOther = 1 << 3, NSLinguisticTaggerJoinNames = 1 << 4 }; __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) #ifndef _REWRITER_typedef_NSLinguisticTagger #define _REWRITER_typedef_NSLinguisticTagger typedef struct objc_object NSLinguisticTagger; typedef struct {} _objc_exc_NSLinguisticTagger; #endif struct NSLinguisticTagger_IMPL { struct NSObject_IMPL NSObject_IVARS; NSArray *_schemes; NSUInteger _options; NSString *_string; id _orthographyArray; id _tokenArray; void *_reserved; }; // - (instancetype)initWithTagSchemes:(NSArray<NSLinguisticTagScheme> *)tagSchemes options:(NSUInteger)opts __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // @property (readonly, copy) NSArray<NSLinguisticTagScheme> *tagSchemes __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // @property (nullable, retain) NSString *string __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (NSArray<NSLinguisticTagScheme> *)availableTagSchemesForUnit:(NSLinguisticTaggerUnit)unit language:(NSString *)language __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (NSArray<NSLinguisticTagScheme> *)availableTagSchemesForLanguage:(NSString *)language __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (void)setOrthography:(nullable NSOrthography *)orthography range:(NSRange)range __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (nullable NSOrthography *)orthographyAtIndex:(NSUInteger)charIndex effectiveRange:(nullable NSRangePointer)effectiveRange __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (void)stringEditedInRange:(NSRange)newRange changeInLength:(NSInteger)delta __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (NSRange)tokenRangeAtIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (NSRange)sentenceRangeForRange:(NSRange)range __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (void)enumerateTagsInRange:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (nullable NSLinguisticTag)tagAtIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme tokenRange:(nullable NSRangePointer)tokenRange __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (NSArray<NSLinguisticTag> *)tagsInRange:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (void)enumerateTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)tagScheme options:(NSLinguisticTaggerOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (nullable NSLinguisticTag)tagAtIndex:(NSUInteger)charIndex scheme:(NSLinguisticTagScheme)scheme tokenRange:(nullable NSRangePointer)tokenRange sentenceRange:(nullable NSRangePointer)sentenceRange __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (NSArray<NSString *> *)tagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // @property (nullable, readonly, copy) NSString *dominantLanguage __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (nullable NSString *)dominantLanguageForString:(NSString *)string __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (nullable NSLinguisticTag)tagForString:(NSString *)string atIndex:(NSUInteger)charIndex unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme orthography:(nullable NSOrthography *)orthography tokenRange:(nullable NSRangePointer)tokenRange __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (NSArray<NSLinguisticTag> *)tagsForString:(NSString *)string range:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // + (void)enumerateTagsForString:(NSString *)string range:(NSRange)range unit:(NSLinguisticTaggerUnit)unit scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.13,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=4.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=11.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (nullable NSArray<NSString *> *)possibleTagsAtIndex:(NSUInteger)charIndex scheme:(NSString *)tagScheme tokenRange:(nullable NSRangePointer)tokenRange sentenceRange:(nullable NSRangePointer)sentenceRange scores:(NSArray<NSValue *> * _Nullable * _Nullable)scores __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); /* @end */ // @interface NSString (NSLinguisticAnalysis) // - (NSArray<NSLinguisticTag> *)linguisticTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography tokenRanges:(NSArray<NSValue *> * _Nullable * _Nullable)tokenRanges __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); // - (void)enumerateLinguisticTagsInRange:(NSRange)range scheme:(NSLinguisticTagScheme)scheme options:(NSLinguisticTaggerOptions)options orthography:(nullable NSOrthography *)orthography usingBlock:(void (__attribute__((noescape)) ^)(NSLinguisticTag _Nullable tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.7,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(ios,introduced=5.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,message="All NSLinguisticTagger API should be replaced with NaturalLanguage.framework API"))); /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin extern "C" NSString * const NSMetadataItemFSNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemDisplayNameKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemURLKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemPathKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemFSSizeKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemFSCreationDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemFSContentChangeDateKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemContentTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemContentTypeTreeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataItemIsUbiquitousKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemHasUnresolvedConflictsKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsDownloadedKey __attribute__((availability(macos,introduced=10.7,deprecated=10.9,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Use NSMetadataUbiquitousItemDownloadingStatusKey instead"))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusNotDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusDownloaded __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadingStatusCurrent __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsDownloadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsUploadingKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemPercentDownloadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemPercentUploadedKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemUploadingErrorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemDownloadRequestedKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsExternalDocumentKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemContainerDisplayNameKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemURLInLocalContainerKey __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataUbiquitousItemIsSharedKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemCurrentUserRoleKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemCurrentUserPermissionsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemOwnerNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemMostRecentEditorNameComponentsKey __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemRoleOwner __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemRoleParticipant __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemPermissionsReadOnly __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataUbiquitousSharedItemPermissionsReadWrite __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAttributeChangeDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemKeywordsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTitleKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAuthorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemEditorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemParticipantsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemProjectsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDownloadedDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemWhereFromsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCommentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCopyrightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLastUsedDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemContentCreationDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemContentModificationDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDateAddedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDurationSecondsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemContactKeywordsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPixelHeightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPixelWidthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPixelCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemColorSpaceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemBitsPerSampleKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFlashOnOffKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFocalLengthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAcquisitionMakeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAcquisitionModelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemISOSpeedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemOrientationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLayerNamesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemWhiteBalanceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemApertureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemProfileNameKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemResolutionWidthDPIKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemResolutionHeightDPIKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExposureModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExposureTimeSecondsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemEXIFVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCameraOwnerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFocalLength35mmKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLensModelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemEXIFGPSVersionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAltitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLatitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLongitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemSpeedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTimestampKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSTrackKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemImageDirectionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemNamedLocationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSStatusKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSMeasureModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDOPKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSMapDatumKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDestLatitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDestLongitudeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDestBearingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDestDistanceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSProcessingMethodKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSAreaInformationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDateStampKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGPSDifferentalKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCodecsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMediaTypesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemStreamableKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTotalBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemVideoBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudioBitRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDeliveryTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAlbumKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemHasAlphaChannelKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRedEyeOnOffKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMeteringModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMaxApertureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFNumberKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExposureProgramKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExposureTimeStringKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemHeadlineKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemInstructionsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCityKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemStateOrProvinceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCountryKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTextContentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudioSampleRateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudioChannelCountKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTempoKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemKeySignatureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemTimeSignatureKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudioEncodingApplicationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemComposerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLyricistKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudioTrackNumberKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRecordingDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMusicalGenreKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemIsGeneralMIDISequenceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRecordingYearKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemOrganizationsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemLanguagesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRightsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPublishersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemContributorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCoverageKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemSubjectKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemThemeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDescriptionKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemIdentifierKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAudiencesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemNumberOfPagesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPageWidthKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPageHeightKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemSecurityMethodKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCreatorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemEncodingApplicationsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDueDateKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemStarRatingKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPhoneNumbersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemInstantMessageAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemKindKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRecipientsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFinderCommentKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemFontsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAppleLoopsRootKeyKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAppleLoopsKeyFilterTypeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAppleLoopsLoopModeKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAppleLoopDescriptorsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMusicalInstrumentCategoryKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemMusicalInstrumentNameKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemCFBundleIdentifierKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemInformationKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemDirectorKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemProducerKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemGenreKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemPerformersKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemOriginalFormatKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemOriginalSourceKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAuthorEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRecipientEmailAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemAuthorAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemRecipientAddressesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemIsLikelyJunkKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExecutableArchitecturesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemExecutablePlatformKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemApplicationCategoriesKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataItemIsApplicationManagedKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSPredicate #define _REWRITER_typedef_NSPredicate typedef struct objc_object NSPredicate; typedef struct {} _objc_exc_NSPredicate; #endif #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif #ifndef _REWRITER_typedef_NSSortDescriptor #define _REWRITER_typedef_NSSortDescriptor typedef struct objc_object NSSortDescriptor; typedef struct {} _objc_exc_NSSortDescriptor; #endif // @class NSMetadataItem; #ifndef _REWRITER_typedef_NSMetadataItem #define _REWRITER_typedef_NSMetadataItem typedef struct objc_object NSMetadataItem; typedef struct {} _objc_exc_NSMetadataItem; #endif #ifndef _REWRITER_typedef_NSMetadataQueryAttributeValueTuple #define _REWRITER_typedef_NSMetadataQueryAttributeValueTuple typedef struct objc_object NSMetadataQueryAttributeValueTuple; typedef struct {} _objc_exc_NSMetadataQueryAttributeValueTuple; #endif #ifndef _REWRITER_typedef_NSMetadataQueryResultGroup #define _REWRITER_typedef_NSMetadataQueryResultGroup typedef struct objc_object NSMetadataQueryResultGroup; typedef struct {} _objc_exc_NSMetadataQueryResultGroup; #endif // @protocol NSMetadataQueryDelegate; #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMetadataQuery #define _REWRITER_typedef_NSMetadataQuery typedef struct objc_object NSMetadataQuery; typedef struct {} _objc_exc_NSMetadataQuery; #endif struct NSMetadataQuery_IMPL { struct NSObject_IMPL NSObject_IVARS; NSUInteger _flags; NSTimeInterval _interval; id _private[11]; void *_reserved; }; // @property (nullable, assign) id<NSMetadataQueryDelegate> delegate; // @property (nullable, copy) NSPredicate *predicate; // @property (copy) NSArray<NSSortDescriptor *> *sortDescriptors; // @property (copy) NSArray<NSString *> *valueListAttributes; // @property (nullable, copy) NSArray<NSString *> *groupingAttributes; // @property NSTimeInterval notificationBatchingInterval; // @property (copy) NSArray *searchScopes; // @property (nullable, copy) NSArray *searchItems __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, retain) NSOperationQueue *operationQueue __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)startQuery; // - (void)stopQuery; // @property (readonly, getter=isStarted) BOOL started; // @property (readonly, getter=isGathering) BOOL gathering; // @property (readonly, getter=isStopped) BOOL stopped; // - (void)disableUpdates; // - (void)enableUpdates; // @property (readonly) NSUInteger resultCount; // - (id)resultAtIndex:(NSUInteger)idx; // - (void)enumerateResultsUsingBlock:(void (__attribute__((noescape)) ^)(id result, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)enumerateResultsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (__attribute__((noescape)) ^)(id result, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSArray *results; // - (NSUInteger)indexOfResult:(id)result; // @property (readonly, copy) NSDictionary<NSString *, NSArray<NSMetadataQueryAttributeValueTuple *> *> *valueLists; // @property (readonly, copy) NSArray<NSMetadataQueryResultGroup *> *groupedResults; // - (nullable id)valueOfAttribute:(NSString *)attrName forResultAtIndex:(NSUInteger)idx; /* @end */ // @protocol NSMetadataQueryDelegate <NSObject> /* @optional */ // - (id)metadataQuery:(NSMetadataQuery *)query replacementObjectForResultObject:(NSMetadataItem *)result; // - (id)metadataQuery:(NSMetadataQuery *)query replacementValueForAttribute:(NSString *)attrName value:(id)attrValue; /* @end */ extern "C" NSNotificationName const NSMetadataQueryDidStartGatheringNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSMetadataQueryGatheringProgressNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSMetadataQueryDidFinishGatheringNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSMetadataQueryDidUpdateNotification __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryUpdateAddedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryUpdateChangedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryUpdateRemovedItemsKey __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryResultContentRelevanceAttribute __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryUserHomeScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataQueryLocalComputerScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataQueryNetworkScope __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataQueryIndexedLocalComputerScope __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataQueryIndexedNetworkScope __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSString * const NSMetadataQueryUbiquitousDocumentsScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryUbiquitousDataScope __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMetadataItem #define _REWRITER_typedef_NSMetadataItem typedef struct objc_object NSMetadataItem; typedef struct {} _objc_exc_NSMetadataItem; #endif struct NSMetadataItem_IMPL { struct NSObject_IMPL NSObject_IVARS; id _item; void *_reserved; }; // - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable id)valueForAttribute:(NSString *)key; // - (nullable NSDictionary<NSString *, id> *)valuesForAttributes:(NSArray<NSString *> *)keys; // @property (readonly, copy) NSArray<NSString *> *attributes; /* @end */ __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMetadataQueryAttributeValueTuple #define _REWRITER_typedef_NSMetadataQueryAttributeValueTuple typedef struct objc_object NSMetadataQueryAttributeValueTuple; typedef struct {} _objc_exc_NSMetadataQueryAttributeValueTuple; #endif struct NSMetadataQueryAttributeValueTuple_IMPL { struct NSObject_IMPL NSObject_IVARS; id _attr; id _value; NSUInteger _count; void *_reserved; }; // @property (readonly, copy) NSString *attribute; // @property (nullable, readonly, retain) id value; // @property (readonly) NSUInteger count; /* @end */ __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSMetadataQueryResultGroup #define _REWRITER_typedef_NSMetadataQueryResultGroup typedef struct objc_object NSMetadataQueryResultGroup; typedef struct {} _objc_exc_NSMetadataQueryResultGroup; #endif struct NSMetadataQueryResultGroup_IMPL { struct NSObject_IMPL NSObject_IVARS; id _private[9]; NSUInteger _private2[1]; void *_reserved; }; // @property (readonly, copy) NSString *attribute; // @property (readonly, retain) id value; // @property (nullable, readonly, copy) NSArray<NSMetadataQueryResultGroup *> *subgroups; // @property (readonly) NSUInteger resultCount; // - (id)resultAtIndex:(NSUInteger)idx; // @property (readonly, copy) NSArray *results; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSNumber #define _REWRITER_typedef_NSNumber typedef struct objc_object NSNumber; typedef struct {} _objc_exc_NSNumber; #endif #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @protocol NSNetServiceDelegate, NSNetServiceBrowserDelegate; #pragma clang assume_nonnull begin extern "C" NSString * const NSNetServicesErrorCode __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); extern "C" NSErrorDomain const NSNetServicesErrorDomain __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); typedef NSInteger NSNetServicesError; enum { NSNetServicesUnknownError = -72000L, NSNetServicesCollisionError = -72001L, NSNetServicesNotFoundError = -72002L, NSNetServicesActivityInProgress = -72003L, NSNetServicesBadArgumentError = -72004L, NSNetServicesCancelledError = -72005L, NSNetServicesInvalidError = -72006L, NSNetServicesTimeoutError = -72007L, NSNetServicesMissingRequiredConfigurationError __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,unavailable))) = -72008L, }; typedef NSUInteger NSNetServiceOptions; enum { NSNetServiceNoAutoRename = 1UL << 0, NSNetServiceListenForConnections __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 1UL << 1 }; __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_NSNetService #define _REWRITER_typedef_NSNetService typedef struct objc_object NSNetService; typedef struct {} _objc_exc_NSNetService; #endif struct NSNetService_IMPL { struct NSObject_IMPL NSObject_IVARS; id _netService; id _delegate; id _reserved; }; // - (instancetype)initWithDomain:(NSString *)domain type:(NSString *)type name:(NSString *)name port:(int)port __attribute__((objc_designated_initializer)); // - (instancetype)initWithDomain:(NSString *)domain type:(NSString *)type name:(NSString *)name; // - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // @property (nullable, assign) id <NSNetServiceDelegate> delegate; // @property BOOL includesPeerToPeer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *name; // @property (readonly, copy) NSString *type; // @property (readonly, copy) NSString *domain; // @property (nullable, readonly, copy) NSString *hostName; // @property (nullable, readonly, copy) NSArray<NSData *> *addresses; // @property (readonly) NSInteger port __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)publish; // - (void)publishWithOptions:(NSNetServiceOptions)options __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)resolve __attribute__((availability(macos,introduced=10.2,deprecated=10.4,message="Not supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,message="Not supported"))); // - (void)stop; // + (NSDictionary<NSString *, NSData *> *)dictionaryFromTXTRecordData:(NSData *)txtData; // + (NSData *)dataFromTXTRecordDictionary:(NSDictionary<NSString *, NSData *> *)txtDictionary; // - (void)resolveWithTimeout:(NSTimeInterval)timeout; // - (BOOL)getInputStream:(out __attribute__((objc_ownership(strong))) NSInputStream * _Nullable * _Nullable)inputStream outputStream:(out __attribute__((objc_ownership(strong))) NSOutputStream * _Nullable * _Nullable)outputStream; // - (BOOL)setTXTRecordData:(nullable NSData *)recordData; // - (nullable NSData *)TXTRecordData; // - (void)startMonitoring; // - (void)stopMonitoring; /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_NSNetServiceBrowser #define _REWRITER_typedef_NSNetServiceBrowser typedef struct objc_object NSNetServiceBrowser; typedef struct {} _objc_exc_NSNetServiceBrowser; #endif struct NSNetServiceBrowser_IMPL { struct NSObject_IMPL NSObject_IVARS; id _netServiceBrowser; id _delegate; void *_reserved; }; // - (instancetype)init; // @property (nullable, assign) id <NSNetServiceBrowserDelegate> delegate; // @property BOOL includesPeerToPeer __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)aRunLoop forMode:(NSRunLoopMode)mode; // - (void)searchForBrowsableDomains; // - (void)searchForRegistrationDomains; // - (void)searchForServicesOfType:(NSString *)type inDomain:(NSString *)domainString; // - (void)stop; /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))) // @protocol NSNetServiceDelegate <NSObject> /* @optional */ // - (void)netServiceWillPublish:(NSNetService *)sender; // - (void)netServiceDidPublish:(NSNetService *)sender; // - (void)netService:(NSNetService *)sender didNotPublish:(NSDictionary<NSString *, NSNumber *> *)errorDict; // - (void)netServiceWillResolve:(NSNetService *)sender; // - (void)netServiceDidResolveAddress:(NSNetService *)sender; // - (void)netService:(NSNetService *)sender didNotResolve:(NSDictionary<NSString *, NSNumber *> *)errorDict; // - (void)netServiceDidStop:(NSNetService *)sender; // - (void)netService:(NSNetService *)sender didUpdateTXTRecordData:(NSData *)data; // - (void)netService:(NSNetService *)sender didAcceptConnectionWithInputStream:(NSInputStream *)inputStream outputStream:(NSOutputStream *)outputStream __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))) // @protocol NSNetServiceBrowserDelegate <NSObject> /* @optional */ // - (void)netServiceBrowserWillSearch:(NSNetServiceBrowser *)browser; // - (void)netServiceBrowserDidStopSearch:(NSNetServiceBrowser *)browser; // - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didNotSearch:(NSDictionary<NSString *, NSNumber *> *)errorDict; // - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didFindDomain:(NSString *)domainString moreComing:(BOOL)moreComing; // - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didFindService:(NSNetService *)service moreComing:(BOOL)moreComing; // - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didRemoveDomain:(NSString *)domainString moreComing:(BOOL)moreComing; // - (void)netServiceBrowser:(NSNetServiceBrowser *)browser didRemoveService:(NSNetService *)service moreComing:(BOOL)moreComing; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_NSUbiquitousKeyValueStore #define _REWRITER_typedef_NSUbiquitousKeyValueStore typedef struct objc_object NSUbiquitousKeyValueStore; typedef struct {} _objc_exc_NSUbiquitousKeyValueStore; #endif struct NSUbiquitousKeyValueStore_IMPL { struct NSObject_IMPL NSObject_IVARS; id _private1; id _private2; id _private3; void *_private4; void *_reserved[3]; int _daemonWakeToken; }; @property (class, readonly, strong) NSUbiquitousKeyValueStore *defaultStore; // - (nullable id)objectForKey:(NSString *)aKey; // - (void)setObject:(nullable id)anObject forKey:(NSString *)aKey; // - (void)removeObjectForKey:(NSString *)aKey; // - (nullable NSString *)stringForKey:(NSString *)aKey; // - (nullable NSArray *)arrayForKey:(NSString *)aKey; // - (nullable NSDictionary<NSString *, id> *)dictionaryForKey:(NSString *)aKey; // - (nullable NSData *)dataForKey:(NSString *)aKey; // - (long long)longLongForKey:(NSString *)aKey; // - (double)doubleForKey:(NSString *)aKey; // - (BOOL)boolForKey:(NSString *)aKey; // - (void)setString:(nullable NSString *)aString forKey:(NSString *)aKey; // - (void)setData:(nullable NSData *)aData forKey:(NSString *)aKey; // - (void)setArray:(nullable NSArray *)anArray forKey:(NSString *)aKey; // - (void)setDictionary:(nullable NSDictionary<NSString *, id> *)aDictionary forKey:(NSString *)aKey; // - (void)setLongLong:(long long)value forKey:(NSString *)aKey; // - (void)setDouble:(double)value forKey:(NSString *)aKey; // - (void)setBool:(BOOL)value forKey:(NSString *)aKey; // @property (readonly, copy) NSDictionary<NSString *, id> *dictionaryRepresentation; // - (BOOL)synchronize; /* @end */ extern "C" NSNotificationName const NSUbiquitousKeyValueStoreDidChangeExternallyNotification __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSUbiquitousKeyValueStoreChangeReasonKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSUbiquitousKeyValueStoreChangedKeysKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); enum { NSUbiquitousKeyValueStoreServerChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSUbiquitousKeyValueStoreInitialSyncChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSUbiquitousKeyValueStoreQuotaViolationChange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))), NSUbiquitousKeyValueStoreAccountChange __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) }; #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin static const NSUInteger NSUndoCloseGroupingRunLoopOrdering = 350000; __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSUndoManager #define _REWRITER_typedef_NSUndoManager typedef struct objc_object NSUndoManager; typedef struct {} _objc_exc_NSUndoManager; #endif struct NSUndoManager_IMPL { struct NSObject_IMPL NSObject_IVARS; id _undoStack; id _redoStack; NSArray *_runLoopModes; uint64_t _NSUndoManagerPrivate1; id _target; id _proxy; void *_NSUndoManagerPrivate2; void *_NSUndoManagerPrivate3; }; // - (void)beginUndoGrouping; // - (void)endUndoGrouping; // @property (readonly) NSInteger groupingLevel; // - (void)disableUndoRegistration; // - (void)enableUndoRegistration; // @property (readonly, getter=isUndoRegistrationEnabled) BOOL undoRegistrationEnabled; // @property BOOL groupsByEvent; // @property NSUInteger levelsOfUndo; // @property (copy) NSArray<NSRunLoopMode> *runLoopModes; // - (void)undo; // - (void)redo; // - (void)undoNestedGroup; // @property (readonly) BOOL canUndo; // @property (readonly) BOOL canRedo; // @property (readonly, getter=isUndoing) BOOL undoing; // @property (readonly, getter=isRedoing) BOOL redoing; // - (void)removeAllActions; // - (void)removeAllActionsWithTarget:(id)target; // - (void)registerUndoWithTarget:(id)target selector:(SEL)selector object:(nullable id)anObject; // - (id)prepareWithInvocationTarget:(id)target; // - (void)registerUndoWithTarget:(id)target handler:(void (^)(id target))undoHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((swift_private)); // - (void)setActionIsDiscardable:(BOOL)discardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSString * const NSUndoManagerGroupIsDiscardableKey __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL undoActionIsDiscardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly) BOOL redoActionIsDiscardable __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (readonly, copy) NSString *undoActionName; // @property (readonly, copy) NSString *redoActionName; // - (void)setActionName:(NSString *)actionName; // @property (readonly, copy) NSString *undoMenuItemTitle; // @property (readonly, copy) NSString *redoMenuItemTitle; // - (NSString *)undoMenuTitleForUndoActionName:(NSString *)actionName; // - (NSString *)redoMenuTitleForUndoActionName:(NSString *)actionName; /* @end */ extern "C" NSNotificationName const NSUndoManagerCheckpointNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerWillUndoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerWillRedoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerDidUndoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerDidRedoChangeNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerDidOpenUndoGroupNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerWillCloseUndoGroupNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" NSNotificationName const NSUndoManagerDidCloseUndoGroupNotification __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end extern "C" { #pragma clang assume_nonnull begin struct SSLContext; typedef struct __attribute__((objc_bridge(id))) SSLContext *SSLContextRef; typedef const void *SSLConnectionRef; typedef int SSLSessionOption; enum { kSSLSessionOptionBreakOnServerAuth __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 0, kSSLSessionOptionBreakOnCertRequested __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 1, kSSLSessionOptionBreakOnClientAuth __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 2, kSSLSessionOptionFalseStart __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 3, kSSLSessionOptionSendOneByteRecord __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 4, kSSLSessionOptionAllowServerIdentityChange __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 5, kSSLSessionOptionFallback __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 6, kSSLSessionOptionBreakOnClientHello __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 7, kSSLSessionOptionAllowRenegotiation __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 8, kSSLSessionOptionEnableSessionTickets __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) = 9, }; typedef int SSLSessionState; enum { kSSLIdle __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLHandshake __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLConnected __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLClosed __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLAborted __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) }; typedef int SSLClientCertificateState; enum { kSSLClientCertNone __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLClientCertRequested __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLClientCertSent __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLClientCertRejected __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) }; typedef OSStatus (*SSLReadFunc) (SSLConnectionRef connection, void *data, size_t *dataLength); typedef OSStatus (*SSLWriteFunc) (SSLConnectionRef connection, const void *data, size_t *dataLength); typedef int SSLProtocolSide; enum { kSSLServerSide __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLClientSide __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) }; typedef int SSLConnectionType; enum { kSSLStreamType __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))), kSSLDatagramType __attribute__((availability(ios,introduced=2_0,deprecated=13_0,message="" ))) }; extern const CFStringRef kSSLSessionConfig_default __attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_ATSv1 __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_ATSv1_noPFS __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_standard __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_RC4_fallback __attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_TLSv1_fallback __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_TLSv1_RC4_fallback __attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_legacy __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_legacy_DHE __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_anonymous __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_3DES_fallback __attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework."))); extern const CFStringRef kSSLSessionConfig_TLSv1_3DES_fallback __attribute__((availability(macos,introduced=10.2,deprecated=10.13,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=11.0,message="No longer supported. Use Network.framework."))); CFTypeID SSLContextGetTypeID(void) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); _Nullable SSLContextRef SSLCreateContext(CFAllocatorRef _Nullable alloc, SSLProtocolSide protocolSide, SSLConnectionType connectionType) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetSessionState (SSLContextRef context, SSLSessionState *state) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetSessionOption (SSLContextRef context, SSLSessionOption option, Boolean value) __attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetSessionOption (SSLContextRef context, SSLSessionOption option, Boolean *value) __attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetIOFuncs (SSLContextRef context, SSLReadFunc readFunc, SSLWriteFunc writeFunc) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetSessionConfig(SSLContextRef context, CFStringRef config) __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetProtocolVersionMin (SSLContextRef context, SSLProtocol minVersion) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetProtocolVersionMin (SSLContextRef context, SSLProtocol *minVersion) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetProtocolVersionMax (SSLContextRef context, SSLProtocol maxVersion) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetProtocolVersionMax (SSLContextRef context, SSLProtocol *maxVersion) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetCertificate (SSLContextRef context, CFArrayRef _Nullable certRefs) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetConnection (SSLContextRef context, SSLConnectionRef _Nullable connection) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetConnection (SSLContextRef context, SSLConnectionRef * _Nonnull __attribute__((cf_returns_not_retained)) connection) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetPeerDomainName (SSLContextRef context, const char * _Nullable peerName, size_t peerNameLen) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetPeerDomainNameLength (SSLContextRef context, size_t *peerNameLen) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetPeerDomainName (SSLContextRef context, char *peerName, size_t *peerNameLen) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLCopyRequestedPeerNameLength (SSLContextRef ctx, size_t *peerNameLen) __attribute__((availability(macos,introduced=10.11,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=9.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLCopyRequestedPeerName (SSLContextRef context, char *peerName, size_t *peerNameLen) __attribute__((availability(macos,introduced=10.11,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=9.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetDatagramHelloCookie (SSLContextRef dtlsContext, const void * _Nullable cookie, size_t cookieLen) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetMaxDatagramRecordSize (SSLContextRef dtlsContext, size_t maxSize) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetMaxDatagramRecordSize (SSLContextRef dtlsContext, size_t *maxSize) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetNegotiatedProtocolVersion (SSLContextRef context, SSLProtocol *protocol) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetNumberSupportedCiphers (SSLContextRef context, size_t *numCiphers) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetSupportedCiphers (SSLContextRef context, SSLCipherSuite *ciphers, size_t *numCiphers) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetNumberEnabledCiphers (SSLContextRef context, size_t *numCiphers) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetEnabledCiphers (SSLContextRef context, const SSLCipherSuite *ciphers, size_t numCiphers) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetEnabledCiphers (SSLContextRef context, SSLCipherSuite *ciphers, size_t *numCiphers) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetSessionTicketsEnabled (SSLContextRef context, Boolean enabled) __attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLCopyPeerTrust (SSLContextRef context, SecTrustRef * _Nonnull __attribute__((cf_returns_retained)) trust) __attribute__((availability(macos,introduced=10.6,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetPeerID (SSLContextRef context, const void * _Nullable peerID, size_t peerIDLen) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetPeerID (SSLContextRef context, const void * _Nullable * _Nonnull peerID, size_t *peerIDLen) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetNegotiatedCipher (SSLContextRef context, SSLCipherSuite *cipherSuite) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetALPNProtocols (SSLContextRef context, CFArrayRef protocols) __attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLCopyALPNProtocols (SSLContextRef context, CFArrayRef _Nullable * _Nonnull protocols) __attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetOCSPResponse (SSLContextRef context, CFDataRef _Nonnull response) __attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetEncryptionCertificate (SSLContextRef context, CFArrayRef certRefs) __attribute__((availability(macos,introduced=10.2,deprecated=10.11,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="No longer supported. Use Network.framework."))); typedef int SSLAuthenticate; enum { kNeverAuthenticate, kAlwaysAuthenticate, kTryAuthenticate }; OSStatus SSLSetClientSideAuthenticate (SSLContextRef context, SSLAuthenticate auth) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLAddDistinguishedName (SSLContextRef context, const void * _Nullable derDN, size_t derDNLen) __attribute__((availability(macos,introduced=10.4,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLCopyDistinguishedNames (SSLContextRef context, CFArrayRef * _Nonnull __attribute__((cf_returns_retained)) names) __attribute__((availability(macos,introduced=10.5,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetClientCertificateState (SSLContextRef context, SSLClientCertificateState *clientState) __attribute__((availability(macos,introduced=10.3,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLHandshake (SSLContextRef context) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLReHandshake (SSLContextRef context) __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLWrite (SSLContextRef context, const void * _Nullable data, size_t dataLength, size_t *processed) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLRead (SSLContextRef context, void * data, size_t dataLength, size_t *processed) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetBufferedReadSize (SSLContextRef context, size_t *bufferSize) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLGetDatagramWriteSize (SSLContextRef dtlsContext, size_t *bufSize) __attribute__((availability(macos,introduced=10.8,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLClose (SSLContextRef context) __attribute__((availability(macos,introduced=10.2,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=5.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); OSStatus SSLSetError (SSLContextRef context, OSStatus status) __attribute__((availability(macos,introduced=10.13,deprecated=10.15,message="No longer supported. Use Network.framework."))) __attribute__((availability(ios,introduced=11.0,deprecated=13.0,message="No longer supported. Use Network.framework."))); #pragma clang assume_nonnull end } // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSError; #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSInputStream; #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif // @class NSOutputStream; #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif // @class NSOperationQueue; #ifndef _REWRITER_typedef_NSOperationQueue #define _REWRITER_typedef_NSOperationQueue typedef struct objc_object NSOperationQueue; typedef struct {} _objc_exc_NSOperationQueue; #endif // @class NSURLCache; #ifndef _REWRITER_typedef_NSURLCache #define _REWRITER_typedef_NSURLCache typedef struct objc_object NSURLCache; typedef struct {} _objc_exc_NSURLCache; #endif // @class NSURLResponse; #ifndef _REWRITER_typedef_NSURLResponse #define _REWRITER_typedef_NSURLResponse typedef struct objc_object NSURLResponse; typedef struct {} _objc_exc_NSURLResponse; #endif // @class NSHTTPURLResponse; #ifndef _REWRITER_typedef_NSHTTPURLResponse #define _REWRITER_typedef_NSHTTPURLResponse typedef struct objc_object NSHTTPURLResponse; typedef struct {} _objc_exc_NSHTTPURLResponse; #endif // @class NSHTTPCookie; #ifndef _REWRITER_typedef_NSHTTPCookie #define _REWRITER_typedef_NSHTTPCookie typedef struct objc_object NSHTTPCookie; typedef struct {} _objc_exc_NSHTTPCookie; #endif // @class NSCachedURLResponse; #ifndef _REWRITER_typedef_NSCachedURLResponse #define _REWRITER_typedef_NSCachedURLResponse typedef struct objc_object NSCachedURLResponse; typedef struct {} _objc_exc_NSCachedURLResponse; #endif // @class NSURLAuthenticationChallenge; #ifndef _REWRITER_typedef_NSURLAuthenticationChallenge #define _REWRITER_typedef_NSURLAuthenticationChallenge typedef struct objc_object NSURLAuthenticationChallenge; typedef struct {} _objc_exc_NSURLAuthenticationChallenge; #endif // @class NSURLProtectionSpace; #ifndef _REWRITER_typedef_NSURLProtectionSpace #define _REWRITER_typedef_NSURLProtectionSpace typedef struct objc_object NSURLProtectionSpace; typedef struct {} _objc_exc_NSURLProtectionSpace; #endif // @class NSURLCredential; #ifndef _REWRITER_typedef_NSURLCredential #define _REWRITER_typedef_NSURLCredential typedef struct objc_object NSURLCredential; typedef struct {} _objc_exc_NSURLCredential; #endif // @class NSURLCredentialStorage; #ifndef _REWRITER_typedef_NSURLCredentialStorage #define _REWRITER_typedef_NSURLCredentialStorage typedef struct objc_object NSURLCredentialStorage; typedef struct {} _objc_exc_NSURLCredentialStorage; #endif // @class NSURLSessionDataTask; #ifndef _REWRITER_typedef_NSURLSessionDataTask #define _REWRITER_typedef_NSURLSessionDataTask typedef struct objc_object NSURLSessionDataTask; typedef struct {} _objc_exc_NSURLSessionDataTask; #endif // @class NSURLSessionUploadTask; #ifndef _REWRITER_typedef_NSURLSessionUploadTask #define _REWRITER_typedef_NSURLSessionUploadTask typedef struct objc_object NSURLSessionUploadTask; typedef struct {} _objc_exc_NSURLSessionUploadTask; #endif // @class NSURLSessionDownloadTask; #ifndef _REWRITER_typedef_NSURLSessionDownloadTask #define _REWRITER_typedef_NSURLSessionDownloadTask typedef struct objc_object NSURLSessionDownloadTask; typedef struct {} _objc_exc_NSURLSessionDownloadTask; #endif // @class NSNetService; #ifndef _REWRITER_typedef_NSNetService #define _REWRITER_typedef_NSNetService typedef struct objc_object NSNetService; typedef struct {} _objc_exc_NSNetService; #endif // @class NSURLSession; #ifndef _REWRITER_typedef_NSURLSession #define _REWRITER_typedef_NSURLSession typedef struct objc_object NSURLSession; typedef struct {} _objc_exc_NSURLSession; #endif // @class NSURLSessionDataTask; #ifndef _REWRITER_typedef_NSURLSessionDataTask #define _REWRITER_typedef_NSURLSessionDataTask typedef struct objc_object NSURLSessionDataTask; typedef struct {} _objc_exc_NSURLSessionDataTask; #endif // @class NSURLSessionUploadTask; #ifndef _REWRITER_typedef_NSURLSessionUploadTask #define _REWRITER_typedef_NSURLSessionUploadTask typedef struct objc_object NSURLSessionUploadTask; typedef struct {} _objc_exc_NSURLSessionUploadTask; #endif // @class NSURLSessionDownloadTask; #ifndef _REWRITER_typedef_NSURLSessionDownloadTask #define _REWRITER_typedef_NSURLSessionDownloadTask typedef struct objc_object NSURLSessionDownloadTask; typedef struct {} _objc_exc_NSURLSessionDownloadTask; #endif // @class NSURLSessionStreamTask; #ifndef _REWRITER_typedef_NSURLSessionStreamTask #define _REWRITER_typedef_NSURLSessionStreamTask typedef struct objc_object NSURLSessionStreamTask; typedef struct {} _objc_exc_NSURLSessionStreamTask; #endif // @class NSURLSessionWebSocketTask; #ifndef _REWRITER_typedef_NSURLSessionWebSocketTask #define _REWRITER_typedef_NSURLSessionWebSocketTask typedef struct objc_object NSURLSessionWebSocketTask; typedef struct {} _objc_exc_NSURLSessionWebSocketTask; #endif // @class NSURLSessionConfiguration; #ifndef _REWRITER_typedef_NSURLSessionConfiguration #define _REWRITER_typedef_NSURLSessionConfiguration typedef struct objc_object NSURLSessionConfiguration; typedef struct {} _objc_exc_NSURLSessionConfiguration; #endif // @protocol NSURLSessionDelegate; // @class NSURLSessionTaskMetrics; #ifndef _REWRITER_typedef_NSURLSessionTaskMetrics #define _REWRITER_typedef_NSURLSessionTaskMetrics typedef struct objc_object NSURLSessionTaskMetrics; typedef struct {} _objc_exc_NSURLSessionTaskMetrics; #endif // @class NSDateInterval; #ifndef _REWRITER_typedef_NSDateInterval #define _REWRITER_typedef_NSDateInterval typedef struct objc_object NSDateInterval; typedef struct {} _objc_exc_NSDateInterval; #endif #pragma clang assume_nonnull begin extern "C" const int64_t NSURLSessionTransferSizeUnknown __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSession #define _REWRITER_typedef_NSURLSession typedef struct objc_object NSURLSession; typedef struct {} _objc_exc_NSURLSession; #endif struct NSURLSession_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, strong) NSURLSession *sharedSession; // + (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration; // + (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration delegate:(nullable id <NSURLSessionDelegate>)delegate delegateQueue:(nullable NSOperationQueue *)queue; // @property (readonly, retain) NSOperationQueue *delegateQueue; // @property (nullable, readonly, retain) id <NSURLSessionDelegate> delegate; // @property (readonly, copy) NSURLSessionConfiguration *configuration; // @property (nullable, copy) NSString *sessionDescription; // - (void)finishTasksAndInvalidate; // - (void)invalidateAndCancel; // - (void)resetWithCompletionHandler:(void (^)(void))completionHandler; // - (void)flushWithCompletionHandler:(void (^)(void))completionHandler; // - (void)getTasksWithCompletionHandler:(void (^)(NSArray<NSURLSessionDataTask *> *dataTasks, NSArray<NSURLSessionUploadTask *> *uploadTasks, NSArray<NSURLSessionDownloadTask *> *downloadTasks))completionHandler; // - (void)getAllTasksWithCompletionHandler:(void (^)(NSArray<__kindof NSURLSessionTask *> *tasks))completionHandler __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request; // - (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url; // - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL; // - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(NSData *)bodyData; // - (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request; // - (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request; // - (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url; // - (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData; // - (NSURLSessionStreamTask *)streamTaskWithHostName:(NSString *)hostname port:(NSInteger)port __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSURLSessionStreamTask *)streamTaskWithNetService:(NSNetService *)service __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); // - (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (NSURLSessionWebSocketTask *)webSocketTaskWithURL:(NSURL *)url protocols:(NSArray<NSString *>*)protocols __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (NSURLSessionWebSocketTask *)webSocketTaskWithRequest:(NSURLRequest *)request __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use +[NSURLSession sessionWithConfiguration:] or other class methods to create instances"))); /* @end */ // @interface NSURLSession (NSURLSessionAsynchronousConvenience) // - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(nullable NSData *)bodyData completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; // - (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler; /* @end */ typedef NSInteger NSURLSessionTaskState; enum { NSURLSessionTaskStateRunning = 0, NSURLSessionTaskStateSuspended = 1, NSURLSessionTaskStateCanceling = 2, NSURLSessionTaskStateCompleted = 3, } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionTask #define _REWRITER_typedef_NSURLSessionTask typedef struct objc_object NSURLSessionTask; typedef struct {} _objc_exc_NSURLSessionTask; #endif struct NSURLSessionTask_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) NSUInteger taskIdentifier; // @property (nullable, readonly, copy) NSURLRequest *originalRequest; // @property (nullable, readonly, copy) NSURLRequest *currentRequest; // @property (nullable, readonly, copy) NSURLResponse *response; // @property (readonly, strong) NSProgress *progress __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, copy) NSDate *earliestBeginDate __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property int64_t countOfBytesClientExpectsToSend __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property int64_t countOfBytesClientExpectsToReceive __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (readonly) int64_t countOfBytesReceived; // @property (readonly) int64_t countOfBytesSent; // @property (readonly) int64_t countOfBytesExpectedToSend; // @property (readonly) int64_t countOfBytesExpectedToReceive; // @property (nullable, copy) NSString *taskDescription; // - (void)cancel; // @property (readonly) NSURLSessionTaskState state; // @property (nullable, readonly, copy) NSError *error; // - (void)suspend; // - (void)resume; // @property float priority __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Not supported"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Not supported"))); /* @end */ extern "C" const float NSURLSessionTaskPriorityDefault __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" const float NSURLSessionTaskPriorityLow __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" const float NSURLSessionTaskPriorityHigh __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionDataTask #define _REWRITER_typedef_NSURLSessionDataTask typedef struct objc_object NSURLSessionDataTask; typedef struct {} _objc_exc_NSURLSessionDataTask; #endif struct NSURLSessionDataTask_IMPL { struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS; }; // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession dataTaskWithRequest:] or other NSURLSession methods to create instances"))); /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionUploadTask #define _REWRITER_typedef_NSURLSessionUploadTask typedef struct objc_object NSURLSessionUploadTask; typedef struct {} _objc_exc_NSURLSessionUploadTask; #endif struct NSURLSessionUploadTask_IMPL { struct NSURLSessionDataTask_IMPL NSURLSessionDataTask_IVARS; }; // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances"))); /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionDownloadTask #define _REWRITER_typedef_NSURLSessionDownloadTask typedef struct objc_object NSURLSessionDownloadTask; typedef struct {} _objc_exc_NSURLSessionDownloadTask; #endif struct NSURLSessionDownloadTask_IMPL { struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS; }; // - (void)cancelByProducingResumeData:(void (^)(NSData * _Nullable resumeData))completionHandler; // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession downloadTaskWithRequest:] or other NSURLSession methods to create instances"))); /* @end */ __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionStreamTask #define _REWRITER_typedef_NSURLSessionStreamTask typedef struct objc_object NSURLSessionStreamTask; typedef struct {} _objc_exc_NSURLSessionStreamTask; #endif struct NSURLSessionStreamTask_IMPL { struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS; }; // - (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable data, BOOL atEOF, NSError * _Nullable error))completionHandler; // - (void)writeData:(NSData *)data timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSError * _Nullable error))completionHandler; // - (void)captureStreams; // - (void)closeWrite; // - (void)closeRead; // - (void)startSecureConnection; // - (void)stopSecureConnection __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="TLS cannot be disabled once it is enabled"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="TLS cannot be disabled once it is enabled"))); // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use -[NSURLSession streamTaskWithHostName:port:] or other NSURLSession methods to create instances"))); /* @end */ typedef NSInteger NSURLSessionWebSocketMessageType; enum { NSURLSessionWebSocketMessageTypeData = 0, NSURLSessionWebSocketMessageTypeString = 1, } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSURLSessionWebSocketMessage #define _REWRITER_typedef_NSURLSessionWebSocketMessage typedef struct objc_object NSURLSessionWebSocketMessage; typedef struct {} _objc_exc_NSURLSessionWebSocketMessage; #endif struct NSURLSessionWebSocketMessage_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithData:(NSData *)data __attribute__((objc_designated_initializer)); // - (instancetype)initWithString:(NSString *)string __attribute__((objc_designated_initializer)); // @property (readonly) NSURLSessionWebSocketMessageType type; // @property (nullable, readonly, copy) NSData *data; // @property (nullable, readonly, copy) NSString *string; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ typedef NSInteger NSURLSessionWebSocketCloseCode; enum { NSURLSessionWebSocketCloseCodeInvalid = 0, NSURLSessionWebSocketCloseCodeNormalClosure = 1000, NSURLSessionWebSocketCloseCodeGoingAway = 1001, NSURLSessionWebSocketCloseCodeProtocolError = 1002, NSURLSessionWebSocketCloseCodeUnsupportedData = 1003, NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005, NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006, NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007, NSURLSessionWebSocketCloseCodePolicyViolation = 1008, NSURLSessionWebSocketCloseCodeMessageTooBig = 1009, NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = 1010, NSURLSessionWebSocketCloseCodeInternalServerError = 1011, NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015, } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_NSURLSessionWebSocketTask #define _REWRITER_typedef_NSURLSessionWebSocketTask typedef struct objc_object NSURLSessionWebSocketTask; typedef struct {} _objc_exc_NSURLSessionWebSocketTask; #endif struct NSURLSessionWebSocketTask_IMPL { struct NSURLSessionTask_IMPL NSURLSessionTask_IVARS; }; // - (void)sendMessage:(NSURLSessionWebSocketMessage *)message completionHandler:(void (^)(NSError * _Nullable error))completionHandler; // - (void)receiveMessageWithCompletionHandler:(void (^)(NSURLSessionWebSocketMessage* _Nullable message, NSError * _Nullable error))completionHandler; // - (void)sendPingWithPongReceiveHandler:(void (^)(NSError* _Nullable error))pongReceiveHandler; // - (void)cancelWithCloseCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData * _Nullable)reason; // @property NSInteger maximumMessageSize; // @property (readonly) NSURLSessionWebSocketCloseCode closeCode; // @property (nullable, readonly, copy) NSData *closeReason; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ typedef NSInteger NSURLSessionMultipathServiceType; enum { NSURLSessionMultipathServiceTypeNone = 0, NSURLSessionMultipathServiceTypeHandover = 1, NSURLSessionMultipathServiceTypeInteractive = 2, NSURLSessionMultipathServiceTypeAggregate = 3 } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_name("URLSessionConfiguration.MultipathServiceType"))); __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSURLSessionConfiguration #define _REWRITER_typedef_NSURLSessionConfiguration typedef struct objc_object NSURLSessionConfiguration; typedef struct {} _objc_exc_NSURLSessionConfiguration; #endif struct NSURLSessionConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, strong) NSURLSessionConfiguration *defaultSessionConfiguration; @property (class, readonly, strong) NSURLSessionConfiguration *ephemeralSessionConfiguration; // + (NSURLSessionConfiguration *)backgroundSessionConfigurationWithIdentifier:(NSString *)identifier __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, readonly, copy) NSString *identifier; // @property NSURLRequestCachePolicy requestCachePolicy; // @property NSTimeInterval timeoutIntervalForRequest; // @property NSTimeInterval timeoutIntervalForResource; // @property NSURLRequestNetworkServiceType networkServiceType; // @property BOOL allowsCellularAccess; // @property BOOL allowsExpensiveNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property BOOL allowsConstrainedNetworkAccess __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property BOOL waitsForConnectivity __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (getter=isDiscretionary) BOOL discretionary __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSString *sharedContainerIdentifier __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property BOOL sessionSendsLaunchEvents __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSDictionary *connectionProxyDictionary; // @property SSLProtocol TLSMinimumSupportedProtocol __attribute__((availability(macos,introduced=10.9,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(ios,introduced=7.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="TLSMinimumSupportedProtocolVersion"))); // @property SSLProtocol TLSMaximumSupportedProtocol __attribute__((availability(macos,introduced=10.9,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(ios,introduced=7.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(watchos,introduced=2.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))) __attribute__((availability(tvos,introduced=9.0,deprecated=100000,replacement="TLSMaximumSupportedProtocolVersion"))); // @property tls_protocol_version_t TLSMinimumSupportedProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property tls_protocol_version_t TLSMaximumSupportedProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property BOOL HTTPShouldUsePipelining; // @property BOOL HTTPShouldSetCookies; // @property NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy; // @property (nullable, copy) NSDictionary *HTTPAdditionalHeaders; // @property NSInteger HTTPMaximumConnectionsPerHost; // @property (nullable, retain) NSHTTPCookieStorage *HTTPCookieStorage; // @property (nullable, retain) NSURLCredentialStorage *URLCredentialStorage; // @property (nullable, retain) NSURLCache *URLCache; // @property BOOL shouldUseExtendedBackgroundIdleMode __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property (nullable, copy) NSArray<Class> *protocolClasses; // @property NSURLSessionMultipathServiceType multipathServiceType __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (instancetype)init __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.9,deprecated=10.15,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances"))); /* @end */ typedef NSInteger NSURLSessionDelayedRequestDisposition; enum { NSURLSessionDelayedRequestContinueLoading = 0, NSURLSessionDelayedRequestUseNewRequest = 1, NSURLSessionDelayedRequestCancel = 2, } __attribute__((swift_name("URLSession.DelayedRequestDisposition"))) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef NSInteger NSURLSessionAuthChallengeDisposition; enum { NSURLSessionAuthChallengeUseCredential = 0, NSURLSessionAuthChallengePerformDefaultHandling = 1, NSURLSessionAuthChallengeCancelAuthenticationChallenge = 2, NSURLSessionAuthChallengeRejectProtectionSpace = 3, } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSURLSessionResponseDisposition; enum { NSURLSessionResponseCancel = 0, NSURLSessionResponseAllow = 1, NSURLSessionResponseBecomeDownload = 2, NSURLSessionResponseBecomeStream __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) = 3, } __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLSessionDelegate <NSObject> /* @optional */ // - (void)URLSession:(NSURLSession *)session didBecomeInvalidWithError:(nullable NSError *)error; #if 0 - (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler; #endif // - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession *)session __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLSessionTaskDelegate <NSURLSessionDelegate> /* @optional */ #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURLSessionDelayedRequestDisposition disposition, NSURLRequest * _Nullable newRequest))completionHandler __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (void)URLSession:(NSURLSession *)session taskIsWaitingForConnectivity:(NSURLSessionTask *)task __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willPerformHTTPRedirection:(NSHTTPURLResponse *)response newRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURLRequest * _Nullable))completionHandler; #endif #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler; #endif #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task needNewBodyStream:(void (^)(NSInputStream * _Nullable bodyStream))completionHandler; #endif #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend; #endif // - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); #if 0 - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(nullable NSError *)error; #endif /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate> /* @optional */ #if 0 - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveResponse:(NSURLResponse *)response completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler; #endif #if 0 - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask; #endif #if 0 - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didBecomeStreamTask:(NSURLSessionStreamTask *)streamTask __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #endif #if 0 - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask didReceiveData:(NSData *)data; #endif #if 0 - (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask willCacheResponse:(NSCachedURLResponse *)proposedResponse completionHandler:(void (^)(NSCachedURLResponse * _Nullable cachedResponse))completionHandler; #endif /* @end */ __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLSessionDownloadDelegate <NSURLSessionTaskDelegate> #if 0 - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didFinishDownloadingToURL:(NSURL *)location; #endif /* @optional */ #if 0 - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite; #endif #if 0 - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTask *)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes; #endif /* @end */ __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSURLSessionStreamDelegate <NSURLSessionTaskDelegate> /* @optional */ // - (void)URLSession:(NSURLSession *)session readClosedForStreamTask:(NSURLSessionStreamTask *)streamTask; // - (void)URLSession:(NSURLSession *)session writeClosedForStreamTask:(NSURLSessionStreamTask *)streamTask; // - (void)URLSession:(NSURLSession *)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask *)streamTask; #if 0 - (void)URLSession:(NSURLSession *)session streamTask:(NSURLSessionStreamTask *)streamTask didBecomeInputStream:(NSInputStream *)inputStream outputStream:(NSOutputStream *)outputStream; #endif /* @end */ __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) // @protocol NSURLSessionWebSocketDelegate <NSURLSessionTaskDelegate> /* @optional */ // - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didOpenWithProtocol:(NSString * _Nullable) protocol; // - (void)URLSession:(NSURLSession *)session webSocketTask:(NSURLSessionWebSocketTask *)webSocketTask didCloseWithCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData * _Nullable)reason; /* @end */ extern "C" NSString * const NSURLSessionDownloadTaskResumeData __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @interface NSURLSessionConfiguration (NSURLSessionDeprecated) // + (NSURLSessionConfiguration *)backgroundSessionConfiguration:(NSString *)identifier __attribute__((availability(macos,introduced=10.9,deprecated=10.10,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(ios,introduced=7.0,deprecated=8.0,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=2.0,replacement="-backgroundSessionConfigurationWithIdentifier:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=9.0,replacement="-backgroundSessionConfigurationWithIdentifier:"))); /* @end */ typedef NSInteger NSURLSessionTaskMetricsResourceFetchType; enum { NSURLSessionTaskMetricsResourceFetchTypeUnknown, NSURLSessionTaskMetricsResourceFetchTypeNetworkLoad, NSURLSessionTaskMetricsResourceFetchTypeServerPush, NSURLSessionTaskMetricsResourceFetchTypeLocalCache, } __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); typedef NSInteger NSURLSessionTaskMetricsDomainResolutionProtocol; enum { NSURLSessionTaskMetricsDomainResolutionProtocolUnknown, NSURLSessionTaskMetricsDomainResolutionProtocolUDP, NSURLSessionTaskMetricsDomainResolutionProtocolTCP, NSURLSessionTaskMetricsDomainResolutionProtocolTLS, NSURLSessionTaskMetricsDomainResolutionProtocolHTTPS, } __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSURLSessionTaskTransactionMetrics #define _REWRITER_typedef_NSURLSessionTaskTransactionMetrics typedef struct objc_object NSURLSessionTaskTransactionMetrics; typedef struct {} _objc_exc_NSURLSessionTaskTransactionMetrics; #endif struct NSURLSessionTaskTransactionMetrics_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (copy, readonly) NSURLRequest *request; // @property (nullable, copy, readonly) NSURLResponse *response; // @property (nullable, copy, readonly) NSDate *fetchStartDate; // @property (nullable, copy, readonly) NSDate *domainLookupStartDate; // @property (nullable, copy, readonly) NSDate *domainLookupEndDate; // @property (nullable, copy, readonly) NSDate *connectStartDate; // @property (nullable, copy, readonly) NSDate *secureConnectionStartDate; // @property (nullable, copy, readonly) NSDate *secureConnectionEndDate; // @property (nullable, copy, readonly) NSDate *connectEndDate; // @property (nullable, copy, readonly) NSDate *requestStartDate; // @property (nullable, copy, readonly) NSDate *requestEndDate; // @property (nullable, copy, readonly) NSDate *responseStartDate; // @property (nullable, copy, readonly) NSDate *responseEndDate; // @property (nullable, copy, readonly) NSString *networkProtocolName; // @property (assign, readonly, getter=isProxyConnection) BOOL proxyConnection; // @property (assign, readonly, getter=isReusedConnection) BOOL reusedConnection; // @property (assign, readonly) NSURLSessionTaskMetricsResourceFetchType resourceFetchType; // @property (readonly) int64_t countOfRequestHeaderBytesSent __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) int64_t countOfRequestBodyBytesSent __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) int64_t countOfRequestBodyBytesBeforeEncoding __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) int64_t countOfResponseHeaderBytesReceived __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) int64_t countOfResponseBodyBytesReceived __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) int64_t countOfResponseBodyBytesAfterDecoding __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSString *localAddress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSNumber *localPort __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSString *remoteAddress __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSNumber *remotePort __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSNumber *negotiatedTLSProtocolVersion __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nullable, copy, readonly) NSNumber *negotiatedTLSCipherSuite __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly, getter=isCellular) BOOL cellular __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly, getter=isExpensive) BOOL expensive __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly, getter=isConstrained) BOOL constrained __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly, getter=isMultipath) BOOL multipath __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (readonly) NSURLSessionTaskMetricsDomainResolutionProtocol domainResolutionProtocol __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=14.0))); // - (instancetype)init __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported"))); /* @end */ __attribute__((availability(macosx,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))) #ifndef _REWRITER_typedef_NSURLSessionTaskMetrics #define _REWRITER_typedef_NSURLSessionTaskMetrics typedef struct objc_object NSURLSessionTaskMetrics; typedef struct {} _objc_exc_NSURLSessionTaskMetrics; #endif struct NSURLSessionTaskMetrics_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (copy, readonly) NSArray<NSURLSessionTaskTransactionMetrics *> *transactionMetrics; // @property (copy, readonly) NSDateInterval *taskInterval; // @property (assign, readonly) NSUInteger redirectCount; // - (instancetype)init __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported"))); // + (instancetype)new __attribute__((availability(macos,introduced=10.12,deprecated=10.15,message="Not supported"))) __attribute__((availability(ios,introduced=10.0,deprecated=13.0,message="Not supported"))) __attribute__((availability(watchos,introduced=3.0,deprecated=6.0,message="Not supported"))) __attribute__((availability(tvos,introduced=10.0,deprecated=13.0,message="Not supported"))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #ifndef _REWRITER_typedef_NSInputStream #define _REWRITER_typedef_NSInputStream typedef struct objc_object NSInputStream; typedef struct {} _objc_exc_NSInputStream; #endif #ifndef _REWRITER_typedef_NSOutputStream #define _REWRITER_typedef_NSOutputStream typedef struct objc_object NSOutputStream; typedef struct {} _objc_exc_NSOutputStream; #endif #ifndef _REWRITER_typedef_NSError #define _REWRITER_typedef_NSError typedef struct objc_object NSError; typedef struct {} _objc_exc_NSError; #endif // @protocol NSUserActivityDelegate; typedef NSString* NSUserActivityPersistentIdentifier __attribute__((swift_bridged_typedef)); __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSUserActivity #define _REWRITER_typedef_NSUserActivity typedef struct objc_object NSUserActivity; typedef struct {} _objc_exc_NSUserActivity; #endif struct NSUserActivity_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithActivityType:(NSString *)activityType __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((availability(macosx,introduced=10.10,deprecated=10.12,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="Use initWithActivityType: with a specific activity type string"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="Use initWithActivityType: with a specific activity type string"))); // @property (readonly, copy) NSString *activityType; // @property (nullable, copy) NSString *title; // @property (nullable, copy) NSDictionary *userInfo; // - (void)addUserInfoEntriesFromDictionary:(NSDictionary *)otherDictionary; // @property (nullable, copy) NSSet<NSString *> *requiredUserInfoKeys __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (assign) BOOL needsSave; // @property (nullable, copy) NSURL *webpageURL; // @property (nullable, copy) NSURL *referrerURL __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, copy) NSDate *expirationDate __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (copy) NSSet<NSString *> *keywords __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property BOOL supportsContinuationStreams; // @property (nullable, weak) id<NSUserActivityDelegate> delegate; // @property (nullable, copy) NSString* targetContentIdentifier __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (void)becomeCurrent; // - (void)resignCurrent __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // - (void)invalidate; // - (void)getContinuationStreamsWithCompletionHandler:(void (^)(NSInputStream * _Nullable inputStream, NSOutputStream * _Nullable outputStream, NSError * _Nullable error))completionHandler; // @property (getter=isEligibleForHandoff) BOOL eligibleForHandoff __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (getter=isEligibleForSearch) BOOL eligibleForSearch __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (getter=isEligibleForPublicIndexing) BOOL eligibleForPublicIndexing __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property (getter=isEligibleForPrediction) BOOL eligibleForPrediction __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (copy, nullable) NSUserActivityPersistentIdentifier persistentIdentifier __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // +(void) deleteSavedUserActivitiesWithPersistentIdentifiers:(NSArray<NSUserActivityPersistentIdentifier>*) persistentIdentifiers completionHandler:(void(^)(void))handler __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // +(void) deleteAllSavedUserActivitiesWithCompletionHandler:(void(^)(void))handler __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" NSString * const NSUserActivityTypeBrowsingWeb; __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=9.0))) // @protocol NSUserActivityDelegate <NSObject> /* @optional */ // - (void)userActivityWillSave:(NSUserActivity *)userActivity; // - (void)userActivityWasContinued:(NSUserActivity *)userActivity; // - (void)userActivity:(NSUserActivity *)userActivity didReceiveInputStream:(NSInputStream *) inputStream outputStream:(NSOutputStream *)outputStream; /* @end */ #pragma clang assume_nonnull end typedef __darwin_uuid_string_t uuid_string_t; static const uuid_t UUID_NULL __attribute__ ((unused)) = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; extern "C" { void uuid_clear(uuid_t uu); int uuid_compare(const uuid_t uu1, const uuid_t uu2); void uuid_copy(uuid_t dst, const uuid_t src); void uuid_generate(uuid_t out); void uuid_generate_random(uuid_t out); void uuid_generate_time(uuid_t out); void uuid_generate_early_random(uuid_t out); int uuid_is_null(const uuid_t uu); int uuid_parse(const uuid_string_t in, uuid_t uu); void uuid_unparse(const uuid_t uu, uuid_string_t out); void uuid_unparse_lower(const uuid_t uu, uuid_string_t out); void uuid_unparse_upper(const uuid_t uu, uuid_string_t out); } #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSUUID #define _REWRITER_typedef_NSUUID typedef struct objc_object NSUUID; typedef struct {} _objc_exc_NSUUID; #endif struct NSUUID_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)UUID; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithUUIDString:(NSString *)string; // - (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes; // - (void)getUUIDBytes:(uuid_t _Nonnull)uuid; // @property (readonly, copy) NSString *UUIDString; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef uint64_t UIAccessibilityTraits __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitNone; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitButton; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitLink; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitHeader __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitSearchField; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitImage; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitSelected; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitPlaysSound; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitKeyboardKey; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitStaticText; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitSummaryElement; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitNotEnabled; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitUpdatesFrequently; extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitStartsMediaSession __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitAdjustable __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitAllowsDirectInteraction __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitCausesPageTurn __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTraits UIAccessibilityTraitTabBar __attribute__((availability(ios,introduced=10.0))); typedef uint32_t UIAccessibilityNotifications __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityScreenChangedNotification; extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityLayoutChangedNotification; extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityAnnouncementNotification __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityPageScrolledNotification __attribute__((availability(ios,introduced=4.2))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityPauseAssistiveTechnologyNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityNotifications UIAccessibilityResumeAssistiveTechnologyNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityAnnouncementDidFinishNotification __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityAnnouncementKeyStringValue __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityAnnouncementKeyWasSuccessful __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityElementFocusedNotification __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityFocusedElementKey __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityUnfocusedElementKey __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityAssistiveTechnologyKey __attribute__((availability(ios,introduced=9.0))); typedef NSString * UIAccessibilityAssistiveTechnologyIdentifier __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityAssistiveTechnologyIdentifier const UIAccessibilityNotificationSwitchControlIdentifier __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityAssistiveTechnologyIdentifier const UIAccessibilityNotificationVoiceOverIdentifier __attribute__((availability(ios,introduced=9.0))); typedef NSInteger UIAccessibilityNavigationStyle; enum { UIAccessibilityNavigationStyleAutomatic = 0, UIAccessibilityNavigationStyleSeparate = 1, UIAccessibilityNavigationStyleCombined = 2, } __attribute__((availability(ios,introduced=8.0))); typedef NSInteger UIAccessibilityContainerType; enum { UIAccessibilityContainerTypeNone = 0, UIAccessibilityContainerTypeDataTable, UIAccessibilityContainerTypeList, UIAccessibilityContainerTypeLandmark, UIAccessibilityContainerTypeSemanticGroup __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) } __attribute__((availability(ios,introduced=11.0))); typedef NSString * UIAccessibilityTextualContext __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextWordProcessing __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextNarrative __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextMessaging __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextSpreadsheet __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextFileSystem __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextSourceCode __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityTextualContext const UIAccessibilityTextualContextConsole __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributePunctuation __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributeLanguage __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributePitch __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributeQueueAnnouncement __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributeIPANotation __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilitySpeechAttributeSpellOut __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilityTextAttributeHeadingLevel __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilityTextAttributeCustom __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const UIAccessibilityTextAttributeContext __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); #pragma clang assume_nonnull end typedef double CGFloat; typedef struct __attribute__((objc_bridge(id))) __attribute__((objc_bridge_mutable(IOSurface))) __IOSurface *IOSurfaceRef __attribute__((swift_name("IOSurfaceRef"))) ; typedef struct CGAffineTransform CGAffineTransform; #pragma clang assume_nonnull begin struct CGPoint { CGFloat x; CGFloat y; }; typedef struct __attribute__((objc_boxable)) CGPoint CGPoint; struct CGSize { CGFloat width; CGFloat height; }; typedef struct __attribute__((objc_boxable)) CGSize CGSize; struct CGVector { CGFloat dx; CGFloat dy; }; typedef struct __attribute__((objc_boxable)) CGVector CGVector; struct CGRect { CGPoint origin; CGSize size; }; typedef struct __attribute__((objc_boxable)) CGRect CGRect; typedef uint32_t CGRectEdge; enum { CGRectMinXEdge, CGRectMinYEdge, CGRectMaxXEdge, CGRectMaxYEdge }; extern "C" __attribute__((visibility("default"))) const CGPoint CGPointZero __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGSize CGSizeZero __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGRect CGRectZero __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGRect CGRectNull __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGRect CGRectInfinite __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); static inline CGPoint CGPointMake(CGFloat x, CGFloat y); static inline CGSize CGSizeMake(CGFloat width, CGFloat height); static inline CGVector CGVectorMake(CGFloat dx, CGFloat dy); static inline CGRect CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMinX(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMidX(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMaxX(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMinY(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMidY(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetMaxY(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetWidth(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGRectGetHeight(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPointEqualToPoint(CGPoint point1, CGPoint point2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGSizeEqualToSize(CGSize size1, CGSize size2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectEqualToRect(CGRect rect1, CGRect rect2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectStandardize(CGRect rect) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectIsEmpty(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectIsNull(CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectIsInfinite(CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectInset(CGRect rect, CGFloat dx, CGFloat dy) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectIntegral(CGRect rect) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectUnion(CGRect r1, CGRect r2) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectIntersection(CGRect r1, CGRect r2) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectOffset(CGRect rect, CGFloat dx, CGFloat dy) __attribute__ ((warn_unused_result)) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGRectDivide(CGRect rect, CGRect * slice, CGRect * remainder, CGFloat amount, CGRectEdge edge) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectContainsPoint(CGRect rect, CGPoint point) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectContainsRect(CGRect rect1, CGRect rect2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectIntersectsRect(CGRect rect1, CGRect rect2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef CGPointCreateDictionaryRepresentation( CGPoint point) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPointMakeWithDictionaryRepresentation( CFDictionaryRef _Nullable dict, CGPoint * _Nullable point) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef CGSizeCreateDictionaryRepresentation(CGSize size) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGSizeMakeWithDictionaryRepresentation( CFDictionaryRef _Nullable dict, CGSize * _Nullable size) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef CGRectCreateDictionaryRepresentation(CGRect) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGRectMakeWithDictionaryRepresentation( CFDictionaryRef _Nullable dict, CGRect * _Nullable rect) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); static inline CGPoint CGPointMake(CGFloat x, CGFloat y) { CGPoint p; p.x = x; p.y = y; return p; } static inline CGSize CGSizeMake(CGFloat width, CGFloat height) { CGSize size; size.width = width; size.height = height; return size; } static inline CGVector CGVectorMake(CGFloat dx, CGFloat dy) { CGVector vector; vector.dx = dx; vector.dy = dy; return vector; } static inline CGRect CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height) { CGRect rect; rect.origin.x = x; rect.origin.y = y; rect.size.width = width; rect.size.height = height; return rect; } static inline bool __CGPointEqualToPoint(CGPoint point1, CGPoint point2) { return point1.x == point2.x && point1.y == point2.y; } static inline bool __CGSizeEqualToSize(CGSize size1, CGSize size2) { return size1.width == size2.width && size1.height == size2.height; } #pragma clang assume_nonnull end struct CGAffineTransform { CGFloat a, b, c, d; CGFloat tx, ty; }; extern "C" __attribute__((visibility("default"))) const CGAffineTransform CGAffineTransformIdentity __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d, CGFloat tx, CGFloat ty) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformMakeTranslation(CGFloat tx, CGFloat ty) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformMakeScale(CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformMakeRotation(CGFloat angle) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGAffineTransformIsIdentity(CGAffineTransform t) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformTranslate(CGAffineTransform t, CGFloat tx, CGFloat ty) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformScale(CGAffineTransform t, CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformRotate(CGAffineTransform t, CGFloat angle) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformInvert(CGAffineTransform t) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGAffineTransformConcat(CGAffineTransform t1, CGAffineTransform t2) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGAffineTransformEqualToTransform(CGAffineTransform t1, CGAffineTransform t2) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGSize CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); static inline CGAffineTransform __CGAffineTransformMake(CGFloat a, CGFloat b, CGFloat c, CGFloat d, CGFloat tx, CGFloat ty) { CGAffineTransform t; t.a = a; t.b = b; t.c = c; t.d = d; t.tx = tx; t.ty = ty; return t; } static inline CGPoint __CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t) { CGPoint p; p.x = (CGFloat)((double)t.a * point.x + (double)t.c * point.y + t.tx); p.y = (CGFloat)((double)t.b * point.x + (double)t.d * point.y + t.ty); return p; } static inline CGSize __CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t) { CGSize s; s.width = (CGFloat)((double)t.a * size.width + (double)t.c * size.height); s.height = (CGFloat)((double)t.b * size.width + (double)t.d * size.height); return s; } typedef struct __attribute__((objc_bridge(id))) CGContext *CGContextRef; typedef struct __attribute__((objc_bridge(id))) CGColor *CGColorRef; typedef struct __attribute__((objc_bridge(id))) CGColorSpace *CGColorSpaceRef; typedef struct __attribute__((objc_bridge(id))) CGDataProvider *CGDataProviderRef; #pragma clang assume_nonnull begin typedef size_t (*CGDataProviderGetBytesCallback)(void * _Nullable info, void * buffer, size_t count); typedef off_t (*CGDataProviderSkipForwardCallback)(void * _Nullable info, off_t count); typedef void (*CGDataProviderRewindCallback)(void * _Nullable info); typedef void (*CGDataProviderReleaseInfoCallback)(void * _Nullable info); struct CGDataProviderSequentialCallbacks { unsigned int version; CGDataProviderGetBytesCallback _Nullable getBytes; CGDataProviderSkipForwardCallback _Nullable skipForward; CGDataProviderRewindCallback _Nullable rewind; CGDataProviderReleaseInfoCallback _Nullable releaseInfo; }; typedef struct CGDataProviderSequentialCallbacks CGDataProviderSequentialCallbacks; typedef const void * _Nullable(*CGDataProviderGetBytePointerCallback)( void * _Nullable info); typedef void (*CGDataProviderReleaseBytePointerCallback)( void * _Nullable info, const void * pointer); typedef size_t (*CGDataProviderGetBytesAtPositionCallback)( void * _Nullable info, void * buffer, off_t pos, size_t cnt); struct CGDataProviderDirectCallbacks { unsigned int version; CGDataProviderGetBytePointerCallback _Nullable getBytePointer; CGDataProviderReleaseBytePointerCallback _Nullable releaseBytePointer; CGDataProviderGetBytesAtPositionCallback _Nullable getBytesAtPosition; CGDataProviderReleaseInfoCallback _Nullable releaseInfo; }; typedef struct CGDataProviderDirectCallbacks CGDataProviderDirectCallbacks; extern "C" __attribute__((visibility("default"))) CFTypeID CGDataProviderGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateSequential( void * _Nullable info, const CGDataProviderSequentialCallbacks * _Nullable callbacks) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateDirect( void * _Nullable info, off_t size, const CGDataProviderDirectCallbacks * _Nullable callbacks) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); typedef void (*CGDataProviderReleaseDataCallback)(void * _Nullable info, const void * data, size_t size); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateWithData( void * _Nullable info, const void * _Nullable data, size_t size, CGDataProviderReleaseDataCallback _Nullable releaseData) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateWithCFData( CFDataRef _Nullable data) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderCreateWithFilename( const char * _Nullable filename) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGDataProviderRetain( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGDataProviderRelease(CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGDataProviderCopyData( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void* _Nullable CGDataProviderGetInfo(CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); #pragma clang assume_nonnull end typedef int32_t CGColorRenderingIntent; enum { kCGRenderingIntentDefault, kCGRenderingIntentAbsoluteColorimetric, kCGRenderingIntentRelativeColorimetric, kCGRenderingIntentPerceptual, kCGRenderingIntentSaturation }; typedef int32_t CGColorSpaceModel; enum { kCGColorSpaceModelUnknown = -1, kCGColorSpaceModelMonochrome, kCGColorSpaceModelRGB, kCGColorSpaceModelCMYK, kCGColorSpaceModelLab, kCGColorSpaceModelDeviceN, kCGColorSpaceModelIndexed, kCGColorSpaceModelPattern, kCGColorSpaceModelXYZ }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericGray __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericRGB __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericCMYK __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceDisplayP3 __attribute__((availability(macos,introduced=10.11.2))) __attribute__((availability(ios,introduced=9.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericRGBLinear __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceAdobeRGB1998 __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceSRGB __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericGrayGamma2_2 __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericXYZ __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceGenericLab __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceACESCGLinear __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_709 __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2020 __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceROMMRGB __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceDCIP3 __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedITUR_2020 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedLinearITUR_2020 __attribute__((availability(macos,introduced=10.14.3))) __attribute__((availability(ios,introduced=12.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedDisplayP3 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedLinearDisplayP3 __attribute__((availability(macos,introduced=10.14.3))) __attribute__((availability(ios,introduced=12.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2100_PQ __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2100_HLG __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceDisplayP3_PQ __attribute__((availability(macos,introduced=10.15.4))) __attribute__((availability(ios,introduced=13.4))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceDisplayP3_HLG __attribute__((availability(macos,introduced=10.14.6))) __attribute__((availability(ios,introduced=12.6))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2020_PQ __attribute__((availability(macos,introduced=10.15.4,deprecated=11.0,message="No longer supported"))) __attribute__((availability(ios,introduced=13.4,deprecated=14.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2020_HLG __attribute__((availability(macos,introduced=10.15.6,deprecated=11.0,message="No longer supported"))) __attribute__((availability(ios,introduced=12.6,deprecated=14.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF __attribute__((availability(macos,introduced=10.14.6,deprecated=10.15.4,message="No longer supported"))) __attribute__((availability(ios,introduced=12.6,deprecated=13.4,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF __attribute__((availability(macos,introduced=10.14.6,deprecated=10.15.4,message="No longer supported"))) __attribute__((availability(ios,introduced=12.6,deprecated=13.4,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedSRGB __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceLinearSRGB __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedLinearSRGB __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedGray __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceLinearGray __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorSpaceExtendedLinearGray __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateDeviceGray(void) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateDeviceRGB(void) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateDeviceCMYK(void) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedGray(const CGFloat whitePoint[_Nonnull 3], const CGFloat blackPoint[_Nullable 3], CGFloat gamma) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateCalibratedRGB(const CGFloat whitePoint[_Nonnull 3], const CGFloat blackPoint[_Nullable 3], const CGFloat gamma[_Nullable 3], const CGFloat matrix[_Nullable 9]) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateLab(const CGFloat whitePoint[_Nonnull 3], const CGFloat blackPoint[_Nullable 3], const CGFloat range[_Nullable 4]) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateWithICCData(CFTypeRef _Nullable data) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateICCBased(size_t nComponents, const CGFloat * _Nullable range, CGDataProviderRef _Nullable profile, CGColorSpaceRef _Nullable alternate) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateIndexed(CGColorSpaceRef _Nullable baseSpace, size_t lastIndex, const unsigned char * _Nullable colorTable) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreatePattern(CGColorSpaceRef _Nullable baseSpace) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateWithPlatformColorSpace(const void * _Nullable ref) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateWithName(CFStringRef _Nullable name) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceRetain(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGColorSpaceRelease(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGColorSpaceGetName(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGColorSpaceCopyName(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGColorSpaceGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGColorSpaceGetNumberOfComponents(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceModel CGColorSpaceGetModel(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceGetBaseColorSpace(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGColorSpaceGetColorTableCount(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGColorSpaceGetColorTable(CGColorSpaceRef _Nullable space, uint8_t * _Nullable table) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGColorSpaceCopyICCData(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) bool CGColorSpaceIsWideGamutRGB(CGColorSpaceRef) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) bool CGColorSpaceIsHDR(CGColorSpaceRef) __attribute__((availability(macos,introduced=10.15,deprecated=10.15.4,message="No longer supported"))) __attribute__((availability(ios,introduced=13.0,deprecated=13.4,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) bool CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) bool CGColorSpaceSupportsOutput(CGColorSpaceRef space) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CFPropertyListRef _Nullable CGColorSpaceCopyPropertyList(CGColorSpaceRef space) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateWithPropertyList(CFPropertyListRef plist) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) bool CGColorSpaceUsesExtendedRange(CGColorSpaceRef space) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateLinearized(CGColorSpaceRef space) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateExtended(CGColorSpaceRef space) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateExtendedLinearized(CGColorSpaceRef space) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorSpaceCreateWithICCProfile(CFDataRef _Nullable data) __attribute__((availability(macos,introduced=10.5,deprecated=10.13,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGColorSpaceCopyICCProfile(CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.5,deprecated=10.13,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=11.0,message="No longer supported"))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGPattern *CGPatternRef; #pragma clang assume_nonnull begin typedef int32_t CGPatternTiling; enum { kCGPatternTilingNoDistortion, kCGPatternTilingConstantSpacingMinimalDistortion, kCGPatternTilingConstantSpacing }; typedef void (*CGPatternDrawPatternCallback)(void * _Nullable info, CGContextRef _Nullable context); typedef void (*CGPatternReleaseInfoCallback)(void * _Nullable info); struct CGPatternCallbacks { unsigned int version; CGPatternDrawPatternCallback _Nullable drawPattern; CGPatternReleaseInfoCallback _Nullable releaseInfo; }; typedef struct CGPatternCallbacks CGPatternCallbacks; extern "C" __attribute__((visibility("default"))) CFTypeID CGPatternGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPatternRef _Nullable CGPatternCreate(void * _Nullable info, CGRect bounds, CGAffineTransform matrix, CGFloat xStep, CGFloat yStep, CGPatternTiling tiling, bool isColored, const CGPatternCallbacks * _Nullable callbacks) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPatternRef _Nullable CGPatternRetain(CGPatternRef _Nullable pattern) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPatternRelease(CGPatternRef _Nullable pattern) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorCreate(CGColorSpaceRef _Nullable space, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorRef CGColorCreateGenericGray(CGFloat gray, CGFloat alpha) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) CGColorRef CGColorCreateGenericRGB(CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) CGColorRef CGColorCreateGenericCMYK(CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) CGColorRef CGColorCreateGenericGrayGamma2_2(CGFloat gray, CGFloat alpha) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) CGColorRef CGColorCreateSRGB(CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorGetConstantColor(CFStringRef _Nullable colorName) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorCreateWithPattern(CGColorSpaceRef _Nullable space, CGPatternRef _Nullable pattern, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorCreateCopy(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorCreateCopyWithAlpha(CGColorRef _Nullable color, CGFloat alpha) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorCreateCopyByMatchingToColorSpace(_Nullable CGColorSpaceRef, CGColorRenderingIntent intent, CGColorRef _Nullable color, _Nullable CFDictionaryRef options) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) CGColorRef _Nullable CGColorRetain(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGColorRelease(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGColorEqualToColor(CGColorRef _Nullable color1, CGColorRef _Nullable color2) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGColorGetNumberOfComponents(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGFloat * _Nullable CGColorGetComponents(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGColorGetAlpha(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGColorGetColorSpace(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPatternRef _Nullable CGColorGetPattern(CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGColorGetTypeID(void) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorWhite __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorBlack __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorClear __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=14.0))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGFont *CGFontRef; typedef unsigned short CGFontIndex; typedef CGFontIndex CGGlyph; typedef int32_t CGFontPostScriptFormat; enum { kCGFontPostScriptFormatType1 = 1, kCGFontPostScriptFormatType3 = 3, kCGFontPostScriptFormatType42 = 42 }; #pragma clang assume_nonnull begin static const CGFontIndex kCGFontIndexMax = ((1 << 16) - 2); static const CGFontIndex kCGFontIndexInvalid = ((1 << 16) - 1); static const CGFontIndex kCGGlyphMax = kCGFontIndexMax; extern "C" __attribute__((visibility("default"))) CFTypeID CGFontGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFontRef _Nullable CGFontCreateWithPlatformFont( void * _Nullable platformFontReference) __attribute__((availability(macos,introduced=10.0,deprecated=10.6,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) CGFontRef _Nullable CGFontCreateWithDataProvider( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFontRef _Nullable CGFontCreateWithFontName( CFStringRef _Nullable name) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFontRef _Nullable CGFontCreateCopyWithVariations( CGFontRef _Nullable font, CFDictionaryRef _Nullable variations) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFontRef _Nullable CGFontRetain(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGFontRelease(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGFontGetNumberOfGlyphs(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetUnitsPerEm(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGFontCopyPostScriptName(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGFontCopyFullName(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetAscent(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetDescent(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetLeading(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetCapHeight(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGFontGetXHeight(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGFontGetFontBBox(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGFontGetItalicAngle(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFloat CGFontGetStemV(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nullable CGFontCopyVariationAxes(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef _Nullable CGFontCopyVariations(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGFontGetGlyphAdvances(CGFontRef _Nullable font, const CGGlyph * glyphs, size_t count, int * advances) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGFontGetGlyphBBoxes(CGFontRef _Nullable font, const CGGlyph * glyphs, size_t count, CGRect * bboxes) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGGlyph CGFontGetGlyphWithGlyphName( CGFontRef _Nullable font, CFStringRef _Nullable name) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGFontCopyGlyphNameForGlyph( CGFontRef _Nullable font, CGGlyph glyph) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGFontCanCreatePostScriptSubset(CGFontRef _Nullable font, CGFontPostScriptFormat format) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGFontCreatePostScriptSubset( CGFontRef _Nullable font, CFStringRef _Nullable subsetName, CGFontPostScriptFormat format, const CGGlyph * _Nullable glyphs, size_t count, const CGGlyph encoding[_Nullable 256]) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGFontCreatePostScriptEncoding( CGFontRef _Nullable font, const CGGlyph encoding[_Nullable 256]) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nullable CGFontCopyTableTags(CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGFontCopyTableForTag( CGFontRef _Nullable font, uint32_t tag) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGFontVariationAxisName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGFontVariationAxisMinValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGFontVariationAxisMaxValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGFontVariationAxisDefaultValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); typedef int32_t CGGlyphDeprecatedEnum; enum { CGGlyphMin __attribute__((deprecated)), CGGlyphMax __attribute__((deprecated)) }; #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGGradient *CGGradientRef; typedef uint32_t CGGradientDrawingOptions; enum { kCGGradientDrawsBeforeStartLocation = (1 << 0), kCGGradientDrawsAfterEndLocation = (1 << 1) }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CFTypeID CGGradientGetTypeID(void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGGradientRef _Nullable CGGradientCreateWithColorComponents( CGColorSpaceRef _Nullable space, const CGFloat * _Nullable components, const CGFloat * _Nullable locations, size_t count) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGGradientRef _Nullable CGGradientCreateWithColors( CGColorSpaceRef _Nullable space, CFArrayRef _Nullable colors, const CGFloat * _Nullable locations) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGGradientRef _Nullable CGGradientRetain( CGGradientRef _Nullable gradient) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGGradientRelease(CGGradientRef _Nullable gradient) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGImage *CGImageRef; #pragma clang assume_nonnull begin typedef uint32_t CGImageAlphaInfo; enum { kCGImageAlphaNone, kCGImageAlphaPremultipliedLast, kCGImageAlphaPremultipliedFirst, kCGImageAlphaLast, kCGImageAlphaFirst, kCGImageAlphaNoneSkipLast, kCGImageAlphaNoneSkipFirst, kCGImageAlphaOnly }; typedef uint32_t CGImageByteOrderInfo; enum { kCGImageByteOrderMask = 0x7000, kCGImageByteOrderDefault = (0 << 12), kCGImageByteOrder16Little = (1 << 12), kCGImageByteOrder32Little = (2 << 12), kCGImageByteOrder16Big = (3 << 12), kCGImageByteOrder32Big = (4 << 12) } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); typedef uint32_t CGImagePixelFormatInfo; enum { kCGImagePixelFormatMask = 0xF0000, kCGImagePixelFormatPacked = (0 << 16), kCGImagePixelFormatRGB555 = (1 << 16), kCGImagePixelFormatRGB565 = (2 << 16), kCGImagePixelFormatRGB101010 = (3 << 16), kCGImagePixelFormatRGBCIF10 = (4 << 16), } __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); typedef uint32_t CGBitmapInfo; enum { kCGBitmapAlphaInfoMask = 0x1F, kCGBitmapFloatInfoMask = 0xF00, kCGBitmapFloatComponents = (1 << 8), kCGBitmapByteOrderMask = kCGImageByteOrderMask, kCGBitmapByteOrderDefault = kCGImageByteOrderDefault, kCGBitmapByteOrder16Little = kCGImageByteOrder16Little, kCGBitmapByteOrder32Little = kCGImageByteOrder32Little, kCGBitmapByteOrder16Big = kCGImageByteOrder16Big, kCGBitmapByteOrder32Big = kCGImageByteOrder32Big } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGImageGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreate(size_t width, size_t height, size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGColorSpaceRef _Nullable space, CGBitmapInfo bitmapInfo, CGDataProviderRef _Nullable provider, const CGFloat * _Nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageMaskCreate(size_t width, size_t height, size_t bitsPerComponent, size_t bitsPerPixel, size_t bytesPerRow, CGDataProviderRef _Nullable provider, const CGFloat * _Nullable decode, bool shouldInterpolate) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateCopy(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateWithJPEGDataProvider( CGDataProviderRef _Nullable source, const CGFloat * _Nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent) __attribute__((availability(macos,introduced=10.1))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateWithPNGDataProvider( CGDataProviderRef _Nullable source, const CGFloat * _Nullable decode, bool shouldInterpolate, CGColorRenderingIntent intent) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateWithImageInRect( CGImageRef _Nullable image, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateWithMask( CGImageRef _Nullable image, CGImageRef _Nullable mask) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateWithMaskingColors( CGImageRef _Nullable image, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageCreateCopyWithColorSpace( CGImageRef _Nullable image, CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageRetain(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGImageRelease(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGImageIsMask(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageGetWidth(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageGetHeight(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageGetBitsPerComponent(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageGetBitsPerPixel(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageGetBytesPerRow(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGImageGetColorSpace(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageAlphaInfo CGImageGetAlphaInfo(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataProviderRef _Nullable CGImageGetDataProvider(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CGFloat * _Nullable CGImageGetDecode(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGImageGetShouldInterpolate(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorRenderingIntent CGImageGetRenderingIntent(_Nullable CGImageRef image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGBitmapInfo CGImageGetBitmapInfo(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageByteOrderInfo CGImageGetByteOrderInfo(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) CGImagePixelFormatInfo CGImageGetPixelFormatInfo(CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageGetUTType(_Nullable CGImageRef image) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGPath *CGMutablePathRef; typedef const struct __attribute__((objc_bridge(id))) CGPath *CGPathRef; #pragma clang assume_nonnull begin typedef int32_t CGLineJoin; enum { kCGLineJoinMiter, kCGLineJoinRound, kCGLineJoinBevel }; typedef int32_t CGLineCap; enum { kCGLineCapButt, kCGLineCapRound, kCGLineCapSquare }; extern "C" __attribute__((visibility("default"))) CFTypeID CGPathGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGMutablePathRef CGPathCreateMutable(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGPathCreateCopy(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGPathCreateCopyByTransformingPath( CGPathRef _Nullable path, const CGAffineTransform * _Nullable transform) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) CGMutablePathRef _Nullable CGPathCreateMutableCopy( CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGMutablePathRef _Nullable CGPathCreateMutableCopyByTransformingPath( CGPathRef _Nullable path, const CGAffineTransform * _Nullable transform) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) CGPathRef CGPathCreateWithRect(CGRect rect, const CGAffineTransform * _Nullable transform) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGPathRef CGPathCreateWithEllipseInRect(CGRect rect, const CGAffineTransform * _Nullable transform) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) CGPathRef CGPathCreateWithRoundedRect(CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight, const CGAffineTransform * _Nullable transform) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddRoundedRect(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable transform, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGPathCreateCopyByDashingPath( CGPathRef _Nullable path, const CGAffineTransform * _Nullable transform, CGFloat phase, const CGFloat * _Nullable lengths, size_t count) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGPathCreateCopyByStrokingPath( CGPathRef _Nullable path, const CGAffineTransform * _Nullable transform, CGFloat lineWidth, CGLineCap lineCap, CGLineJoin lineJoin, CGFloat miterLimit) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGPathRetain(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathRelease(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPathEqualToPath(CGPathRef _Nullable path1, CGPathRef _Nullable path2) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathMoveToPoint(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddLineToPoint(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddQuadCurveToPoint(CGMutablePathRef _Nullable path, const CGAffineTransform *_Nullable m, CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddCurveToPoint(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGFloat cp1x, CGFloat cp1y, CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathCloseSubpath(CGMutablePathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddRect(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGRect rect) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddRects(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, const CGRect * _Nullable rects, size_t count) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddLines(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, const CGPoint * _Nullable points, size_t count) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddEllipseInRect(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddRelativeArc(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable matrix, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat delta) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddArc(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, bool clockwise) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddArcToPoint(CGMutablePathRef _Nullable path, const CGAffineTransform * _Nullable m, CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2, CGFloat radius) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPathAddPath(CGMutablePathRef _Nullable path1, const CGAffineTransform * _Nullable m, CGPathRef _Nullable path2) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPathIsEmpty(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPathIsRect(CGPathRef _Nullable path, CGRect * _Nullable rect) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGPathGetCurrentPoint(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGPathGetBoundingBox(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGPathGetPathBoundingBox(CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) bool CGPathContainsPoint(CGPathRef _Nullable path, const CGAffineTransform * _Nullable m, CGPoint point, bool eoFill) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); typedef int32_t CGPathElementType; enum { kCGPathElementMoveToPoint, kCGPathElementAddLineToPoint, kCGPathElementAddQuadCurveToPoint, kCGPathElementAddCurveToPoint, kCGPathElementCloseSubpath }; struct CGPathElement { CGPathElementType type; CGPoint * points; }; typedef struct CGPathElement CGPathElement; typedef void (*CGPathApplierFunction)(void * _Nullable info, const CGPathElement * element); extern "C" __attribute__((visibility("default"))) void CGPathApply(CGPathRef _Nullable path, void * _Nullable info, CGPathApplierFunction _Nullable function) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); typedef void (*CGPathApplyBlock)(const CGPathElement * element); extern "C" __attribute__((visibility("default"))) void CGPathApplyWithBlock(CGPathRef path, CGPathApplyBlock __attribute__((noescape)) block) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGPDFDocument *CGPDFDocumentRef; typedef struct __attribute__((objc_bridge(id))) CGPDFPage *CGPDFPageRef; typedef struct CGPDFDictionary *CGPDFDictionaryRef; typedef struct CGPDFArray *CGPDFArrayRef; #pragma clang assume_nonnull begin typedef unsigned char CGPDFBoolean; typedef long int CGPDFInteger; typedef CGFloat CGPDFReal; typedef struct CGPDFObject *CGPDFObjectRef; typedef int32_t CGPDFObjectType; enum { kCGPDFObjectTypeNull = 1, kCGPDFObjectTypeBoolean, kCGPDFObjectTypeInteger, kCGPDFObjectTypeReal, kCGPDFObjectTypeName, kCGPDFObjectTypeString, kCGPDFObjectTypeArray, kCGPDFObjectTypeDictionary, kCGPDFObjectTypeStream }; extern "C" __attribute__((visibility("default"))) CGPDFObjectType CGPDFObjectGetType(CGPDFObjectRef _Nullable object) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFObjectGetValue(CGPDFObjectRef _Nullable object, CGPDFObjectType type, void * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef struct CGPDFStream *CGPDFStreamRef; typedef int32_t CGPDFDataFormat; enum { CGPDFDataFormatRaw, CGPDFDataFormatJPEGEncoded, CGPDFDataFormatJPEG2000 }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGPDFDictionaryRef _Nullable CGPDFStreamGetDictionary( CGPDFStreamRef _Nullable stream) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGPDFStreamCopyData( CGPDFStreamRef _Nullable stream, CGPDFDataFormat * _Nullable format) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef struct CGPDFString *CGPDFStringRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) size_t CGPDFStringGetLength(CGPDFStringRef _Nullable string) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const unsigned char * _Nullable CGPDFStringGetBytePtr( CGPDFStringRef _Nullable string) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGPDFStringCopyTextString( CGPDFStringRef _Nullable string) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFDateRef _Nullable CGPDFStringCopyDate( CGPDFStringRef _Nullable string) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) size_t CGPDFArrayGetCount(CGPDFArrayRef _Nullable array) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetObject(CGPDFArrayRef _Nullable array, size_t index, CGPDFObjectRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetNull(CGPDFArrayRef _Nullable array, size_t index) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetBoolean(CGPDFArrayRef _Nullable array, size_t index, CGPDFBoolean * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetInteger(CGPDFArrayRef _Nullable array, size_t index, CGPDFInteger * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetNumber(CGPDFArrayRef _Nullable array, size_t index, CGPDFReal * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetName(CGPDFArrayRef _Nullable array, size_t index, const char * _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetString(CGPDFArrayRef _Nullable array, size_t index, CGPDFStringRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetArray(CGPDFArrayRef _Nullable array, size_t index, CGPDFArrayRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetDictionary(CGPDFArrayRef _Nullable array, size_t index, CGPDFDictionaryRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFArrayGetStream(CGPDFArrayRef _Nullable array, size_t index, CGPDFStreamRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); typedef bool (*CGPDFArrayApplierBlock)(size_t index, CGPDFObjectRef value, void * _Nullable info); extern "C" __attribute__((visibility("default"))) void CGPDFArrayApplyBlock(CGPDFArrayRef _Nullable array, CGPDFArrayApplierBlock _Nullable block, void * _Nullable info) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) size_t CGPDFDictionaryGetCount(CGPDFDictionaryRef _Nullable dict) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetObject(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFObjectRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetBoolean(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFBoolean * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetInteger(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFInteger * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetNumber(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFReal * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetName(CGPDFDictionaryRef _Nullable dict, const char * key, const char * _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetString(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFStringRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetArray(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFArrayRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetDictionary(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFDictionaryRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDictionaryGetStream(CGPDFDictionaryRef _Nullable dict, const char * key, CGPDFStreamRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); typedef void (*CGPDFDictionaryApplierFunction)(const char * key, CGPDFObjectRef value, void * _Nullable info); extern "C" __attribute__((visibility("default"))) void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef _Nullable dict, CGPDFDictionaryApplierFunction _Nullable function, void * _Nullable info) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); typedef bool (*CGPDFDictionaryApplierBlock)(const char * key, CGPDFObjectRef value, void * _Nullable info); extern "C" __attribute__((visibility("default"))) void CGPDFDictionaryApplyBlock(CGPDFDictionaryRef _Nullable dict, CGPDFDictionaryApplierBlock _Nullable block, void * _Nullable info) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef int32_t CGPDFBox; enum { kCGPDFMediaBox = 0, kCGPDFCropBox = 1, kCGPDFBleedBox = 2, kCGPDFTrimBox = 3, kCGPDFArtBox = 4 }; extern "C" __attribute__((visibility("default"))) CGPDFPageRef _Nullable CGPDFPageRetain(CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFPageRelease(CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDocumentRef _Nullable CGPDFPageGetDocument( CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGPDFPageGetPageNumber(CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFPageGetBoxRect(CGPDFPageRef _Nullable page, CGPDFBox box) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) int CGPDFPageGetRotationAngle(CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGPDFPageGetDrawingTransform( CGPDFPageRef _Nullable page, CGPDFBox box, CGRect rect, int rotate, bool preserveAspectRatio) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDictionaryRef _Nullable CGPDFPageGetDictionary( CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGPDFPageGetTypeID(void) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef uint32_t CGPDFAccessPermissions; enum { kCGPDFAllowsLowQualityPrinting = (1 << 0), kCGPDFAllowsHighQualityPrinting = (1 << 1), kCGPDFAllowsDocumentChanges = (1 << 2), kCGPDFAllowsDocumentAssembly = (1 << 3), kCGPDFAllowsContentCopying = (1 << 4), kCGPDFAllowsContentAccessibility = (1 << 5), kCGPDFAllowsCommenting = (1 << 6), kCGPDFAllowsFormFieldEntry = (1 << 7) }; extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFOutlineTitle __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFOutlineChildren __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFOutlineDestination __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFOutlineDestinationRect __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithProvider( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDocumentRef _Nullable CGPDFDocumentRetain( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFDocumentRelease(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFDocumentGetVersion(CGPDFDocumentRef _Nullable document, int * majorVersion, int * minorVersion) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDocumentIsEncrypted(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDocumentUnlockWithPassword( CGPDFDocumentRef _Nullable document, const char * password) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDocumentIsUnlocked(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDocumentAllowsPrinting(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFDocumentAllowsCopying(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGPDFDocumentGetNumberOfPages( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFPageRef _Nullable CGPDFDocumentGetPage( CGPDFDocumentRef _Nullable document, size_t pageNumber) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDictionaryRef _Nullable CGPDFDocumentGetCatalog( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFDictionaryRef _Nullable CGPDFDocumentGetInfo( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFArrayRef _Nullable CGPDFDocumentGetID( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGPDFDocumentGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) _Nullable CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) CGPDFAccessPermissions CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFDocumentGetMediaBox(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFDocumentGetCropBox(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFDocumentGetBleedBox(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFDocumentGetTrimBox(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) CGRect CGPDFDocumentGetArtBox(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility("default"))) int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGShading *CGShadingRef; typedef struct __attribute__((objc_bridge(id))) CGFunction *CGFunctionRef; #pragma clang assume_nonnull begin typedef void (*CGFunctionEvaluateCallback)(void * _Nullable info, const CGFloat * in, CGFloat * out); typedef void (*CGFunctionReleaseInfoCallback)(void * _Nullable info); struct CGFunctionCallbacks { unsigned int version; CGFunctionEvaluateCallback _Nullable evaluate; CGFunctionReleaseInfoCallback _Nullable releaseInfo; }; typedef struct CGFunctionCallbacks CGFunctionCallbacks; extern "C" __attribute__((visibility("default"))) CFTypeID CGFunctionGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFunctionRef _Nullable CGFunctionCreate(void * _Nullable info, size_t domainDimension, const CGFloat *_Nullable domain, size_t rangeDimension, const CGFloat * _Nullable range, const CGFunctionCallbacks * _Nullable callbacks) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGFunctionRef _Nullable CGFunctionRetain( CGFunctionRef _Nullable function) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGFunctionRelease(CGFunctionRef _Nullable function) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CFTypeID CGShadingGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGShadingRef _Nullable CGShadingCreateAxial( CGColorSpaceRef _Nullable space, CGPoint start, CGPoint end, CGFunctionRef _Nullable function, bool extendStart, bool extendEnd) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGShadingRef _Nullable CGShadingCreateRadial( CGColorSpaceRef _Nullable space, CGPoint start, CGFloat startRadius, CGPoint end, CGFloat endRadius, CGFunctionRef _Nullable function, bool extendStart, bool extendEnd) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGShadingRef _Nullable CGShadingRetain(CGShadingRef _Nullable shading) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGShadingRelease(CGShadingRef _Nullable shading) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef int32_t CGPathDrawingMode; enum { kCGPathFill, kCGPathEOFill, kCGPathStroke, kCGPathFillStroke, kCGPathEOFillStroke }; typedef int32_t CGTextDrawingMode; enum { kCGTextFill, kCGTextStroke, kCGTextFillStroke, kCGTextInvisible, kCGTextFillClip, kCGTextStrokeClip, kCGTextFillStrokeClip, kCGTextClip }; typedef int32_t CGTextEncoding; enum { kCGEncodingFontSpecific, kCGEncodingMacRoman } __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); typedef int32_t CGInterpolationQuality; enum { kCGInterpolationDefault = 0, kCGInterpolationNone = 1, kCGInterpolationLow = 2, kCGInterpolationMedium = 4, kCGInterpolationHigh = 3 }; typedef int32_t CGBlendMode; enum { kCGBlendModeNormal, kCGBlendModeMultiply, kCGBlendModeScreen, kCGBlendModeOverlay, kCGBlendModeDarken, kCGBlendModeLighten, kCGBlendModeColorDodge, kCGBlendModeColorBurn, kCGBlendModeSoftLight, kCGBlendModeHardLight, kCGBlendModeDifference, kCGBlendModeExclusion, kCGBlendModeHue, kCGBlendModeSaturation, kCGBlendModeColor, kCGBlendModeLuminosity, kCGBlendModeClear, kCGBlendModeCopy, kCGBlendModeSourceIn, kCGBlendModeSourceOut, kCGBlendModeSourceAtop, kCGBlendModeDestinationOver, kCGBlendModeDestinationIn, kCGBlendModeDestinationOut, kCGBlendModeDestinationAtop, kCGBlendModeXOR, kCGBlendModePlusDarker, kCGBlendModePlusLighter }; extern "C" __attribute__((visibility("default"))) CFTypeID CGContextGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSaveGState(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextRestoreGState(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextScaleCTM(CGContextRef _Nullable c, CGFloat sx, CGFloat sy) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextTranslateCTM(CGContextRef _Nullable c, CGFloat tx, CGFloat ty) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextRotateCTM(CGContextRef _Nullable c, CGFloat angle) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextConcatCTM(CGContextRef _Nullable c, CGAffineTransform transform) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGContextGetCTM(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetLineWidth(CGContextRef _Nullable c, CGFloat width) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetLineCap(CGContextRef _Nullable c, CGLineCap cap) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetLineJoin(CGContextRef _Nullable c, CGLineJoin join) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetMiterLimit(CGContextRef _Nullable c, CGFloat limit) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetLineDash(CGContextRef _Nullable c, CGFloat phase, const CGFloat * _Nullable lengths, size_t count) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFlatness(CGContextRef _Nullable c, CGFloat flatness) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetAlpha(CGContextRef _Nullable c, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetBlendMode(CGContextRef _Nullable c, CGBlendMode mode) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextBeginPath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextMoveToPoint(CGContextRef _Nullable c, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddLineToPoint(CGContextRef _Nullable c, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddCurveToPoint(CGContextRef _Nullable c, CGFloat cp1x, CGFloat cp1y, CGFloat cp2x, CGFloat cp2y, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddQuadCurveToPoint(CGContextRef _Nullable c, CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextClosePath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddRects(CGContextRef _Nullable c, const CGRect * _Nullable rects, size_t count) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddLines(CGContextRef _Nullable c, const CGPoint * _Nullable points, size_t count) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddEllipseInRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddArc(CGContextRef _Nullable c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clockwise) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddArcToPoint(CGContextRef _Nullable c, CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2, CGFloat radius) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextAddPath(CGContextRef _Nullable c, CGPathRef _Nullable path) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextReplacePathWithStrokedPath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGContextIsPathEmpty(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGContextGetPathCurrentPoint(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGContextGetPathBoundingBox(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPathRef _Nullable CGContextCopyPath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGContextPathContainsPoint(CGContextRef _Nullable c, CGPoint point, CGPathDrawingMode mode) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawPath(CGContextRef _Nullable c, CGPathDrawingMode mode) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextFillPath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextEOFillPath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextStrokePath(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextFillRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextFillRects(CGContextRef _Nullable c, const CGRect * _Nullable rects, size_t count) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextStrokeRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextStrokeRectWithWidth(CGContextRef _Nullable c, CGRect rect, CGFloat width) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextClearRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextFillEllipseInRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextStrokeEllipseInRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextStrokeLineSegments(CGContextRef _Nullable c, const CGPoint * _Nullable points, size_t count) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextClip(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextEOClip(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextResetClip(CGContextRef c); extern "C" __attribute__((visibility("default"))) void CGContextClipToMask(CGContextRef _Nullable c, CGRect rect, CGImageRef _Nullable mask) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGContextGetClipBoundingBox(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextClipToRect(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextClipToRects(CGContextRef _Nullable c, const CGRect * rects, size_t count) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFillColorWithColor(CGContextRef _Nullable c, CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetStrokeColorWithColor(CGContextRef _Nullable c, CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFillColorSpace(CGContextRef _Nullable c, CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetStrokeColorSpace(CGContextRef _Nullable c, CGColorSpaceRef _Nullable space) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFillColor(CGContextRef _Nullable c, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetStrokeColor(CGContextRef _Nullable c, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFillPattern(CGContextRef _Nullable c, CGPatternRef _Nullable pattern, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetStrokePattern(CGContextRef _Nullable c, CGPatternRef _Nullable pattern, const CGFloat * _Nullable components) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetPatternPhase(CGContextRef _Nullable c, CGSize phase) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetGrayFillColor(CGContextRef _Nullable c, CGFloat gray, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetGrayStrokeColor(CGContextRef _Nullable c, CGFloat gray, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetRGBFillColor(CGContextRef _Nullable c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetRGBStrokeColor(CGContextRef _Nullable c, CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetCMYKFillColor(CGContextRef _Nullable c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetCMYKStrokeColor(CGContextRef _Nullable c, CGFloat cyan, CGFloat magenta, CGFloat yellow, CGFloat black, CGFloat alpha) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetRenderingIntent(CGContextRef _Nullable c, CGColorRenderingIntent intent) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawImage(CGContextRef _Nullable c, CGRect rect, CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawTiledImage(CGContextRef _Nullable c, CGRect rect, CGImageRef _Nullable image) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGInterpolationQuality CGContextGetInterpolationQuality(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetInterpolationQuality(CGContextRef _Nullable c, CGInterpolationQuality quality) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShadowWithColor(CGContextRef _Nullable c, CGSize offset, CGFloat blur, CGColorRef _Nullable color) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShadow(CGContextRef _Nullable c, CGSize offset, CGFloat blur) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawLinearGradient(CGContextRef _Nullable c, CGGradientRef _Nullable gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawRadialGradient(CGContextRef _Nullable c, CGGradientRef _Nullable gradient, CGPoint startCenter, CGFloat startRadius, CGPoint endCenter, CGFloat endRadius, CGGradientDrawingOptions options) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawShading(CGContextRef _Nullable c, _Nullable CGShadingRef shading) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetCharacterSpacing(CGContextRef _Nullable c, CGFloat spacing) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetTextPosition(CGContextRef _Nullable c, CGFloat x, CGFloat y) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGContextGetTextPosition(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetTextMatrix(CGContextRef _Nullable c, CGAffineTransform t) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGContextGetTextMatrix(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetTextDrawingMode(CGContextRef _Nullable c, CGTextDrawingMode mode) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFont(CGContextRef _Nullable c, CGFontRef _Nullable font) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetFontSize(CGContextRef _Nullable c, CGFloat size) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextShowGlyphsAtPositions(CGContextRef _Nullable c, const CGGlyph * _Nullable glyphs, const CGPoint * _Nullable Lpositions, size_t count) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawPDFPage(CGContextRef _Nullable c, CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextBeginPage(CGContextRef _Nullable c, const CGRect * _Nullable mediaBox) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextEndPage(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGContextRetain(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextRelease(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextFlush(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSynchronize(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShouldAntialias(CGContextRef _Nullable c, bool shouldAntialias) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetAllowsAntialiasing(CGContextRef _Nullable c, bool allowsAntialiasing) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShouldSmoothFonts(CGContextRef _Nullable c, bool shouldSmoothFonts) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetAllowsFontSmoothing(CGContextRef _Nullable c, bool allowsFontSmoothing) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShouldSubpixelPositionFonts( CGContextRef _Nullable c, bool shouldSubpixelPositionFonts) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetAllowsFontSubpixelPositioning( CGContextRef _Nullable c, bool allowsFontSubpixelPositioning) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetShouldSubpixelQuantizeFonts( CGContextRef _Nullable c, bool shouldSubpixelQuantizeFonts) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSetAllowsFontSubpixelQuantization( CGContextRef _Nullable c, bool allowsFontSubpixelQuantization) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextBeginTransparencyLayer(CGContextRef _Nullable c, CFDictionaryRef _Nullable auxiliaryInfo) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextBeginTransparencyLayerWithRect( CGContextRef _Nullable c, CGRect rect, CFDictionaryRef _Nullable auxInfo) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextEndTransparencyLayer(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.3))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef _Nullable c) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGContextConvertPointToDeviceSpace(CGContextRef _Nullable c, CGPoint point) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPoint CGContextConvertPointToUserSpace(CGContextRef _Nullable c, CGPoint point) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGSize CGContextConvertSizeToDeviceSpace(CGContextRef _Nullable c, CGSize size) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGSize CGContextConvertSizeToUserSpace(CGContextRef _Nullable c, CGSize size) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGContextConvertRectToDeviceSpace(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGRect CGContextConvertRectToUserSpace(CGContextRef _Nullable c, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextSelectFont(CGContextRef _Nullable c, const char * _Nullable name, CGFloat size, CGTextEncoding textEncoding) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextShowText(CGContextRef _Nullable c, const char * _Nullable string, size_t length) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextShowTextAtPoint(CGContextRef _Nullable c, CGFloat x, CGFloat y, const char * _Nullable string, size_t length) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextShowGlyphs(CGContextRef _Nullable c, const CGGlyph * _Nullable g, size_t count) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextShowGlyphsAtPoint(CGContextRef _Nullable c, CGFloat x, CGFloat y, const CGGlyph * _Nullable glyphs, size_t count) __attribute__((availability(macos,introduced=10.0,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextShowGlyphsWithAdvances(CGContextRef _Nullable c, const CGGlyph * _Nullable glyphs, const CGSize * _Nullable advances, size_t count) __attribute__((availability(macos,introduced=10.3,deprecated=10.9,message="No longer supported"))) __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) void CGContextDrawPDFDocument(CGContextRef _Nullable c, CGRect rect, CGPDFDocumentRef _Nullable document, int page) __attribute__((availability(macos,introduced=10.0,deprecated=10.5,message="No longer supported"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef void (*CGBitmapContextReleaseDataCallback)(void * _Nullable releaseInfo, void * _Nullable data); extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGBitmapContextCreateWithData( void * _Nullable data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef _Nullable space, uint32_t bitmapInfo, CGBitmapContextReleaseDataCallback _Nullable releaseCallback, void * _Nullable releaseInfo) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGBitmapContextCreate(void * _Nullable data, size_t width, size_t height, size_t bitsPerComponent, size_t bytesPerRow, CGColorSpaceRef _Nullable space, uint32_t bitmapInfo) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void * _Nullable CGBitmapContextGetData(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGBitmapContextGetWidth(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGBitmapContextGetHeight(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGBitmapContextGetBitsPerComponent(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGBitmapContextGetBitsPerPixel(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) size_t CGBitmapContextGetBytesPerRow(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGColorSpaceRef _Nullable CGBitmapContextGetColorSpace( CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageAlphaInfo CGBitmapContextGetAlphaInfo( CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGBitmapInfo CGBitmapContextGetBitmapInfo( CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGBitmapContextCreateImage( CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef const struct __attribute__((objc_bridge(id))) CGColorConversionInfo* CGColorConversionInfoRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CFTypeID CGColorConversionInfoGetTypeID(void); typedef uint32_t CGColorConversionInfoTransformType; enum { kCGColorConversionTransformFromSpace = 0, kCGColorConversionTransformToSpace, kCGColorConversionTransformApplySpace }; extern "C" __attribute__((visibility("default"))) CGColorConversionInfoRef _Nullable CGColorConversionInfoCreate(_Nullable CGColorSpaceRef src, _Nullable CGColorSpaceRef dst) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorConversionInfoRef _Nullable CGColorConversionInfoCreateWithOptions(_Nonnull CGColorSpaceRef src, _Nonnull CGColorSpaceRef dst, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.14.6))) __attribute__((availability(ios,introduced=13))); extern "C" __attribute__((visibility("default"))) CGColorConversionInfoRef _Nullable CGColorConversionInfoCreateFromList (CFDictionaryRef _Nullable options, _Nullable CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent, ...) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) CGColorConversionInfoRef _Nullable CGColorConversionInfoCreateFromListWithArguments (CFDictionaryRef _Nullable options, _Nullable CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent, va_list) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorConversionBlackPointCompensation __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGColorConversionTRCSize __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); #pragma clang assume_nonnull end typedef struct __attribute__((objc_bridge(id))) CGDataConsumer *CGDataConsumerRef; #pragma clang assume_nonnull begin typedef size_t (*CGDataConsumerPutBytesCallback)(void * _Nullable info, const void * buffer, size_t count); typedef void (*CGDataConsumerReleaseInfoCallback)(void * _Nullable info); struct CGDataConsumerCallbacks { CGDataConsumerPutBytesCallback _Nullable putBytes; CGDataConsumerReleaseInfoCallback _Nullable releaseConsumer; }; typedef struct CGDataConsumerCallbacks CGDataConsumerCallbacks; extern "C" __attribute__((visibility("default"))) CFTypeID CGDataConsumerGetTypeID(void) __attribute__((availability(macos,introduced=10.2))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataConsumerRef _Nullable CGDataConsumerCreate( void * _Nullable info, const CGDataConsumerCallbacks * _Nullable cbks) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataConsumerRef _Nullable CGDataConsumerCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataConsumerRef _Nullable CGDataConsumerCreateWithCFData( CFMutableDataRef _Nullable data) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGDataConsumerRef _Nullable CGDataConsumerRetain( CGDataConsumerRef _Nullable consumer) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGDataConsumerRelease(_Nullable CGDataConsumerRef consumer) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef int32_t CGError; enum { kCGErrorSuccess = 0, kCGErrorFailure = 1000, kCGErrorIllegalArgument = 1001, kCGErrorInvalidConnection = 1002, kCGErrorInvalidContext = 1003, kCGErrorCannotComplete = 1004, kCGErrorNotImplemented = 1006, kCGErrorRangeCheck = 1007, kCGErrorTypeCheck = 1008, kCGErrorInvalidOperation = 1010, kCGErrorNoneAvailable = 1011, }; typedef struct __attribute__((objc_bridge(id))) CGLayer *CGLayerRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGLayerRef _Nullable CGLayerCreateWithContext( CGContextRef _Nullable context, CGSize size, CFDictionaryRef _Nullable auxiliaryInfo) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGLayerRef _Nullable CGLayerRetain(CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGLayerRelease(CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGSize CGLayerGetSize(CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGLayerGetContext(CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawLayerInRect(CGContextRef _Nullable context, CGRect rect, CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGContextDrawLayerAtPoint(CGContextRef _Nullable context, CGPoint point, CGLayerRef _Nullable layer) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFTypeID CGLayerGetTypeID(void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end typedef struct CGPDFContentStream *CGPDFContentStreamRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGPDFContentStreamRef CGPDFContentStreamCreateWithPage( CGPDFPageRef page) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFContentStreamRef CGPDFContentStreamCreateWithStream( CGPDFStreamRef stream, CGPDFDictionaryRef streamResources, CGPDFContentStreamRef _Nullable parent) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFContentStreamRef CGPDFContentStreamRetain( CGPDFContentStreamRef cs) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContentStreamRelease(CGPDFContentStreamRef cs) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nullable CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFObjectRef _Nullable CGPDFContentStreamGetResource( CGPDFContentStreamRef cs, const char *category, const char *name) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGPDFContextCreate(CGDataConsumerRef _Nullable consumer, const CGRect *_Nullable mediaBox, CFDictionaryRef _Nullable auxiliaryInfo) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGContextRef _Nullable CGPDFContextCreateWithURL(CFURLRef _Nullable url, const CGRect * _Nullable mediaBox, CFDictionaryRef _Nullable auxiliaryInfo) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextClose(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextBeginPage(CGContextRef _Nullable context, CFDictionaryRef _Nullable pageInfo) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextEndPage(CGContextRef _Nullable context) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextAddDocumentMetadata(CGContextRef _Nullable context, CFDataRef _Nullable metadata) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextSetURLForRect(CGContextRef _Nullable context, CFURLRef url, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextAddDestinationAtPoint(CGContextRef _Nullable context, CFStringRef name, CGPoint point) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextSetDestinationForRect(CGContextRef _Nullable context, CFStringRef name, CGRect rect) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextMediaBox __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextCropBox __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextBleedBox __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextTrimBox __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextArtBox __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextTitle __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextAuthor __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextSubject __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextKeywords __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextCreator __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextOwnerPassword __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextUserPassword __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextEncryptionKeyLength __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextAllowsPrinting __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextAllowsCopying __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextOutputIntent __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXOutputIntentSubtype __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXOutputConditionIdentifier __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXOutputCondition __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXRegistryName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXInfo __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFXDestinationOutputProfile __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextOutputIntents __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextAccessPermissions __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextSetOutline(CGContextRef context, _Nullable CFDictionaryRef outline) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextCreateLinearizedPDF __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGPDFContextCreatePDFA __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); typedef int32_t CGPDFTagType; enum { CGPDFTagTypeDocument = 100, CGPDFTagTypePart, CGPDFTagTypeArt, CGPDFTagTypeSection, CGPDFTagTypeDiv, CGPDFTagTypeBlockQuote, CGPDFTagTypeCaption, CGPDFTagTypeTOC, CGPDFTagTypeTOCI, CGPDFTagTypeIndex, CGPDFTagTypeNonStructure, CGPDFTagTypePrivate, CGPDFTagTypeParagraph = 200, CGPDFTagTypeHeader, CGPDFTagTypeHeader1, CGPDFTagTypeHeader2, CGPDFTagTypeHeader3, CGPDFTagTypeHeader4, CGPDFTagTypeHeader5, CGPDFTagTypeHeader6, CGPDFTagTypeList = 300, CGPDFTagTypeListItem, CGPDFTagTypeLabel, CGPDFTagTypeListBody, CGPDFTagTypeTable = 400, CGPDFTagTypeTableRow, CGPDFTagTypeTableHeaderCell, CGPDFTagTypeTableDataCell, CGPDFTagTypeTableHeader, CGPDFTagTypeTableBody, CGPDFTagTypeTableFooter, CGPDFTagTypeSpan = 500, CGPDFTagTypeQuote, CGPDFTagTypeNote, CGPDFTagTypeReference, CGPDFTagTypeBibliography, CGPDFTagTypeCode, CGPDFTagTypeLink, CGPDFTagTypeAnnotation, CGPDFTagTypeRuby = 600, CGPDFTagTypeRubyBaseText, CGPDFTagTypeRubyAnnotationText, CGPDFTagTypeRubyPunctuation, CGPDFTagTypeWarichu, CGPDFTagTypeWarichuText, CGPDFTagTypeWarichuPunctiation, CGPDFTagTypeFigure = 700, CGPDFTagTypeFormula, CGPDFTagTypeForm, } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const char* _Nullable CGPDFTagTypeGetName(CGPDFTagType tagType) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); typedef CFStringRef CGPDFTagProperty __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility("default"))) const CGPDFTagProperty _Nonnull kCGPDFTagPropertyActualText __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CGPDFTagProperty _Nonnull kCGPDFTagPropertyAlternativeText __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CGPDFTagProperty _Nonnull kCGPDFTagPropertyTitleText __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CGPDFTagProperty _Nonnull kCGPDFTagPropertyLanguageText __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextBeginTag(CGContextRef _Nonnull context, CGPDFTagType tagType, CFDictionaryRef _Nullable tagProperties) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) void CGPDFContextEndTag(CGContextRef _Nonnull context) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull end typedef struct CGPDFOperatorTable *CGPDFOperatorTableRef; typedef struct CGPDFScanner *CGPDFScannerRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) CGPDFScannerRef CGPDFScannerCreate( CGPDFContentStreamRef cs, CGPDFOperatorTableRef _Nullable table, void * _Nullable info) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFScannerRef _Nullable CGPDFScannerRetain( CGPDFScannerRef _Nullable scanner) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFScannerRelease(CGPDFScannerRef _Nullable scanner) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerScan(CGPDFScannerRef _Nullable scanner) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFContentStreamRef CGPDFScannerGetContentStream( CGPDFScannerRef scanner) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopObject(CGPDFScannerRef scanner, CGPDFObjectRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopBoolean(CGPDFScannerRef scanner, CGPDFBoolean * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopInteger(CGPDFScannerRef scanner, CGPDFInteger * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopNumber(CGPDFScannerRef scanner, CGPDFReal * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopName(CGPDFScannerRef scanner, const char * _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopString(CGPDFScannerRef scanner, CGPDFStringRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopArray(CGPDFScannerRef scanner, CGPDFArrayRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopDictionary(CGPDFScannerRef scanner, CGPDFDictionaryRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) bool CGPDFScannerPopStream(CGPDFScannerRef scanner, CGPDFStreamRef _Nullable * _Nullable value) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef void (*CGPDFOperatorCallback)(CGPDFScannerRef scanner, void * _Nullable info); extern "C" __attribute__((visibility("default"))) CGPDFOperatorTableRef _Nullable CGPDFOperatorTableCreate(void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) CGPDFOperatorTableRef _Nullable CGPDFOperatorTableRetain( CGPDFOperatorTableRef _Nullable table) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFOperatorTableRelease( CGPDFOperatorTableRef _Nullable table) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); extern "C" __attribute__((visibility("default"))) void CGPDFOperatorTableSetCallback( CGPDFOperatorTableRef _Nullable table, const char * _Nullable name, CGPDFOperatorCallback _Nullable callback) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=2.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef struct __attribute__((objc_boxable)) UIEdgeInsets { CGFloat top, left, bottom, right; } UIEdgeInsets; typedef struct __attribute__((objc_boxable)) NSDirectionalEdgeInsets { CGFloat top, leading, bottom, trailing; } NSDirectionalEdgeInsets __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); typedef struct __attribute__((objc_boxable)) UIOffset { CGFloat horizontal, vertical; } UIOffset; typedef NSUInteger UIRectEdge; enum { UIRectEdgeNone = 0, UIRectEdgeTop = 1 << 0, UIRectEdgeLeft = 1 << 1, UIRectEdgeBottom = 1 << 2, UIRectEdgeRight = 1 << 3, UIRectEdgeAll = UIRectEdgeTop | UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight } __attribute__((availability(ios,introduced=7.0))); typedef NSUInteger UIRectCorner; enum { UIRectCornerTopLeft = 1 << 0, UIRectCornerTopRight = 1 << 1, UIRectCornerBottomLeft = 1 << 2, UIRectCornerBottomRight = 1 << 3, UIRectCornerAllCorners = ~0UL }; typedef NSUInteger UIAxis; enum { UIAxisNeither = 0, UIAxisHorizontal = 1 << 0, UIAxisVertical = 1 << 1, UIAxisBoth = (UIAxisHorizontal | UIAxisVertical), } __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); typedef NSUInteger NSDirectionalRectEdge; enum { NSDirectionalRectEdgeNone = 0, NSDirectionalRectEdgeTop = 1 << 0, NSDirectionalRectEdgeLeading = 1 << 1, NSDirectionalRectEdgeBottom = 1 << 2, NSDirectionalRectEdgeTrailing = 1 << 3, NSDirectionalRectEdgeAll = NSDirectionalRectEdgeTop | NSDirectionalRectEdgeLeading | NSDirectionalRectEdgeBottom | NSDirectionalRectEdgeTrailing } __attribute__((availability(ios,introduced=13.0))); typedef NSUInteger UIDirectionalRectEdge; enum { UIDirectionalRectEdgeNone = 0, UIDirectionalRectEdgeTop = 1 << 0, UIDirectionalRectEdgeLeading = 1 << 1, UIDirectionalRectEdgeBottom = 1 << 2, UIDirectionalRectEdgeTrailing = 1 << 3, UIDirectionalRectEdgeAll = UIDirectionalRectEdgeTop | UIDirectionalRectEdgeLeading | UIDirectionalRectEdgeBottom | UIDirectionalRectEdgeTrailing } __attribute__((availability(ios,introduced=13.0,deprecated=13.0,replacement="NSDirectionalRectEdge"))) __attribute__((availability(watchos,introduced=6.0,deprecated=6.0,replacement="NSDirectionalRectEdge"))) __attribute__((availability(tvos,introduced=13.0,deprecated=13.0,replacement="NSDirectionalRectEdge"))); typedef NSInteger NSRectAlignment; enum { NSRectAlignmentNone = 0, NSRectAlignmentTop, NSRectAlignmentTopLeading, NSRectAlignmentLeading, NSRectAlignmentBottomLeading, NSRectAlignmentBottom, NSRectAlignmentBottomTrailing, NSRectAlignmentTrailing, NSRectAlignmentTopTrailing, } __attribute__((availability(ios,introduced=13.0))); static inline UIEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) { UIEdgeInsets insets = {top, left, bottom, right}; return insets; } static inline NSDirectionalEdgeInsets NSDirectionalEdgeInsetsMake(CGFloat top, CGFloat leading, CGFloat bottom, CGFloat trailing) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) { NSDirectionalEdgeInsets insets = {top, leading, bottom, trailing}; return insets; } static inline CGRect UIEdgeInsetsInsetRect(CGRect rect, UIEdgeInsets insets) { rect.origin.x += insets.left; rect.origin.y += insets.top; rect.size.width -= (insets.left + insets.right); rect.size.height -= (insets.top + insets.bottom); return rect; } static inline UIOffset UIOffsetMake(CGFloat horizontal, CGFloat vertical) { UIOffset offset = {horizontal, vertical}; return offset; } static inline BOOL UIEdgeInsetsEqualToEdgeInsets(UIEdgeInsets insets1, UIEdgeInsets insets2) { return insets1.left == insets2.left && insets1.top == insets2.top && insets1.right == insets2.right && insets1.bottom == insets2.bottom; } static inline BOOL NSDirectionalEdgeInsetsEqualToDirectionalEdgeInsets(NSDirectionalEdgeInsets insets1, NSDirectionalEdgeInsets insets2) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) { return insets1.leading == insets2.leading && insets1.top == insets2.top && insets1.trailing == insets2.trailing && insets1.bottom == insets2.bottom; } static inline BOOL UIOffsetEqualToOffset(UIOffset offset1, UIOffset offset2) { return offset1.horizontal == offset2.horizontal && offset1.vertical == offset2.vertical; } extern "C" __attribute__((visibility ("default"))) const UIEdgeInsets UIEdgeInsetsZero; extern "C" __attribute__((visibility ("default"))) const NSDirectionalEdgeInsets NSDirectionalEdgeInsetsZero __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) const UIOffset UIOffsetZero; extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromCGPoint(CGPoint point); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromCGVector(CGVector vector); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromCGSize(CGSize size); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromCGRect(CGRect rect); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromCGAffineTransform(CGAffineTransform transform); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromUIEdgeInsets(UIEdgeInsets insets); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromDirectionalEdgeInsets(NSDirectionalEdgeInsets insets) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) NSString *NSStringFromUIOffset(UIOffset offset); extern "C" __attribute__((visibility ("default"))) CGPoint CGPointFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) CGVector CGVectorFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) CGSize CGSizeFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) CGRect CGRectFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) CGAffineTransform CGAffineTransformFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) UIEdgeInsets UIEdgeInsetsFromString(NSString *string); extern "C" __attribute__((visibility ("default"))) NSDirectionalEdgeInsets NSDirectionalEdgeInsetsFromString(NSString *string) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIOffset UIOffsetFromString(NSString *string); // @interface NSValue (NSValueUIGeometryExtensions) // + (NSValue *)valueWithCGPoint:(CGPoint)point; // + (NSValue *)valueWithCGVector:(CGVector)vector; // + (NSValue *)valueWithCGSize:(CGSize)size; // + (NSValue *)valueWithCGRect:(CGRect)rect; // + (NSValue *)valueWithCGAffineTransform:(CGAffineTransform)transform; // + (NSValue *)valueWithUIEdgeInsets:(UIEdgeInsets)insets; // + (NSValue *)valueWithDirectionalEdgeInsets:(NSDirectionalEdgeInsets)insets __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); // + (NSValue *)valueWithUIOffset:(UIOffset)insets __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly) CGPoint CGPointValue; // @property(nonatomic, readonly) CGVector CGVectorValue; // @property(nonatomic, readonly) CGSize CGSizeValue; // @property(nonatomic, readonly) CGRect CGRectValue; // @property(nonatomic, readonly) CGAffineTransform CGAffineTransformValue; // @property(nonatomic, readonly) UIEdgeInsets UIEdgeInsetsValue; // @property(nonatomic, readonly) NSDirectionalEdgeInsets directionalEdgeInsetsValue __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); // @property(nonatomic, readonly) UIOffset UIOffsetValue __attribute__((availability(ios,introduced=5.0))); /* @end */ // @interface NSCoder (UIGeometryKeyedCoding) // - (void)encodeCGPoint:(CGPoint)point forKey:(NSString *)key; // - (void)encodeCGVector:(CGVector)vector forKey:(NSString *)key; // - (void)encodeCGSize:(CGSize)size forKey:(NSString *)key; // - (void)encodeCGRect:(CGRect)rect forKey:(NSString *)key; // - (void)encodeCGAffineTransform:(CGAffineTransform)transform forKey:(NSString *)key; // - (void)encodeUIEdgeInsets:(UIEdgeInsets)insets forKey:(NSString *)key; // - (void)encodeDirectionalEdgeInsets:(NSDirectionalEdgeInsets)insets forKey:(NSString *)key __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); // - (void)encodeUIOffset:(UIOffset)offset forKey:(NSString *)key __attribute__((availability(ios,introduced=5.0))); // - (CGPoint)decodeCGPointForKey:(NSString *)key; // - (CGVector)decodeCGVectorForKey:(NSString *)key; // - (CGSize)decodeCGSizeForKey:(NSString *)key; // - (CGRect)decodeCGRectForKey:(NSString *)key; // - (CGAffineTransform)decodeCGAffineTransformForKey:(NSString *)key; // - (UIEdgeInsets)decodeUIEdgeInsetsForKey:(NSString *)key; // - (NSDirectionalEdgeInsets)decodeDirectionalEdgeInsetsForKey:(NSString *)key __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); // - (UIOffset)decodeUIOffsetForKey:(NSString *)key __attribute__((availability(ios,introduced=5.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif struct UIBezierPath_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)bezierPath; // + (instancetype)bezierPathWithRect:(CGRect)rect; // + (instancetype)bezierPathWithOvalInRect:(CGRect)rect; // + (instancetype)bezierPathWithRoundedRect:(CGRect)rect cornerRadius:(CGFloat)cornerRadius; // + (instancetype)bezierPathWithRoundedRect:(CGRect)rect byRoundingCorners:(UIRectCorner)corners cornerRadii:(CGSize)cornerRadii; // + (instancetype)bezierPathWithArcCenter:(CGPoint)center radius:(CGFloat)radius startAngle:(CGFloat)startAngle endAngle:(CGFloat)endAngle clockwise:(BOOL)clockwise; // + (instancetype)bezierPathWithCGPath:(CGPathRef)CGPath; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic) CGPathRef CGPath; // - (CGPathRef)CGPath __attribute__((objc_returns_inner_pointer)) __attribute__((cf_returns_not_retained)); // - (void)moveToPoint:(CGPoint)point; // - (void)addLineToPoint:(CGPoint)point; // - (void)addCurveToPoint:(CGPoint)endPoint controlPoint1:(CGPoint)controlPoint1 controlPoint2:(CGPoint)controlPoint2; // - (void)addQuadCurveToPoint:(CGPoint)endPoint controlPoint:(CGPoint)controlPoint; // - (void)addArcWithCenter:(CGPoint)center radius:(CGFloat)radius startAngle:(CGFloat)startAngle endAngle:(CGFloat)endAngle clockwise:(BOOL)clockwise __attribute__((availability(ios,introduced=4.0))); // - (void)closePath; // - (void)removeAllPoints; // - (void)appendPath:(UIBezierPath *)bezierPath; // - (UIBezierPath *)bezierPathByReversingPath __attribute__((availability(ios,introduced=6.0))); // - (void)applyTransform:(CGAffineTransform)transform; // @property(readonly,getter=isEmpty) BOOL empty; // @property(nonatomic,readonly) CGRect bounds; // @property(nonatomic,readonly) CGPoint currentPoint; // - (BOOL)containsPoint:(CGPoint)point; // @property(nonatomic) CGFloat lineWidth; // @property(nonatomic) CGLineCap lineCapStyle; // @property(nonatomic) CGLineJoin lineJoinStyle; // @property(nonatomic) CGFloat miterLimit; // @property(nonatomic) CGFloat flatness; // @property(nonatomic) BOOL usesEvenOddFillRule; // - (void)setLineDash:(nullable const CGFloat *)pattern count:(NSInteger)count phase:(CGFloat)phase; // - (void)getLineDash:(nullable CGFloat *)pattern count:(nullable NSInteger *)count phase:(nullable CGFloat *)phase; // - (void)fill; // - (void)stroke; // - (void)fillWithBlendMode:(CGBlendMode)blendMode alpha:(CGFloat)alpha; // - (void)strokeWithBlendMode:(CGBlendMode)blendMode alpha:(CGFloat)alpha; // - (void)addClip; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIVector #define _REWRITER_typedef_CIVector typedef struct objc_object CIVector; typedef struct {} _objc_exc_CIVector; #endif struct CIVector_IMPL { struct NSObject_IMPL NSObject_IVARS; size_t _count; union { CGFloat vec[4]; CGFloat * _Nonnull ptr; } _u; }; // + (instancetype)vectorWithValues:(const CGFloat *)values count:(size_t)count; // + (instancetype)vectorWithX:(CGFloat)x; // + (instancetype)vectorWithX:(CGFloat)x Y:(CGFloat)y; // + (instancetype)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z; // + (instancetype)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w; // + (instancetype)vectorWithCGPoint:(CGPoint)p __attribute__((availability(ios,introduced=5_0))); // + (instancetype)vectorWithCGRect:(CGRect)r __attribute__((availability(ios,introduced=5_0))); // + (instancetype)vectorWithCGAffineTransform:(CGAffineTransform)t __attribute__((availability(ios,introduced=5_0))); // + (instancetype)vectorWithString:(NSString *)representation; // - (instancetype)initWithValues:(const CGFloat *)values count:(size_t)count __attribute__((objc_designated_initializer)); // - (instancetype)initWithX:(CGFloat)x; // - (instancetype)initWithX:(CGFloat)x Y:(CGFloat)y; // - (instancetype)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z; // - (instancetype)initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w; // - (instancetype)initWithCGPoint:(CGPoint)p __attribute__((availability(ios,introduced=5_0))); // - (instancetype)initWithCGRect:(CGRect)r __attribute__((availability(ios,introduced=5_0))); // - (instancetype)initWithCGAffineTransform:(CGAffineTransform)r __attribute__((availability(ios,introduced=5_0))); // - (instancetype)initWithString:(NSString *)representation; // - (CGFloat)valueAtIndex:(size_t)index; // @property (readonly) size_t count; // @property (readonly) CGFloat X; // @property (readonly) CGFloat Y; // @property (readonly) CGFloat Z; // @property (readonly) CGFloat W; // @property (readonly) CGPoint CGPointValue __attribute__((availability(ios,introduced=5_0))); // @property (readonly) CGRect CGRectValue __attribute__((availability(ios,introduced=5_0))); // @property (readonly) CGAffineTransform CGAffineTransformValue __attribute__((availability(ios,introduced=5_0))); // @property (readonly) NSString *stringRepresentation; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIColor #define _REWRITER_typedef_CIColor typedef struct objc_object CIColor; typedef struct {} _objc_exc_CIColor; #endif struct CIColor_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; void *_pad[3]; }; // + (instancetype)colorWithCGColor:(CGColorRef)c; // + (instancetype)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a; // + (instancetype)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b; // + (nullable instancetype)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // + (nullable instancetype)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // + (instancetype)colorWithString:(NSString *)representation; // - (instancetype)initWithCGColor:(CGColorRef)c __attribute__((objc_designated_initializer)); // - (instancetype)initWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a; // - (instancetype)initWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b __attribute__((availability(ios,introduced=9_0))); // - (nullable instancetype)initWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // - (nullable instancetype)initWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // @property (readonly) size_t numberOfComponents; // @property (readonly) const CGFloat *components __attribute__((objc_returns_inner_pointer)); // @property (readonly) CGFloat alpha; // @property (readonly) CGColorSpaceRef colorSpace __attribute__((cf_returns_not_retained)); // @property (readonly) CGFloat red; // @property (readonly) CGFloat green; // @property (readonly) CGFloat blue; // @property (readonly) NSString *stringRepresentation; @property (class, strong, readonly) CIColor *blackColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *whiteColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *grayColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *redColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *greenColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *blueColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *cyanColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *magentaColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *yellowColor __attribute__((availability(ios,introduced=10_0))); @property (class, strong, readonly) CIColor *clearColor __attribute__((availability(ios,introduced=10_0))); /* @end */ #pragma clang assume_nonnull end extern "C" { typedef uint64_t CVOptionFlags; struct CVSMPTETime { SInt16 subframes; SInt16 subframeDivisor; UInt32 counter; UInt32 type; UInt32 flags; SInt16 hours; SInt16 minutes; SInt16 seconds; SInt16 frames; }; typedef struct CVSMPTETime CVSMPTETime; typedef uint32_t CVSMPTETimeType; enum { kCVSMPTETimeType24 = 0, kCVSMPTETimeType25 = 1, kCVSMPTETimeType30Drop = 2, kCVSMPTETimeType30 = 3, kCVSMPTETimeType2997 = 4, kCVSMPTETimeType2997Drop = 5, kCVSMPTETimeType60 = 6, kCVSMPTETimeType5994 = 7 }; typedef uint32_t CVSMPTETimeFlags; enum { kCVSMPTETimeValid = (1L << 0), kCVSMPTETimeRunning = (1L << 1) }; typedef int32_t CVTimeFlags; enum { kCVTimeIsIndefinite = 1 << 0 }; typedef struct { int64_t timeValue; int32_t timeScale; int32_t flags; } CVTime; typedef struct { uint32_t version; int32_t videoTimeScale; int64_t videoTime; uint64_t hostTime; double rateScalar; int64_t videoRefreshPeriod; CVSMPTETime smpteTime; uint64_t flags; uint64_t reserved; } CVTimeStamp; typedef uint64_t CVTimeStampFlags; enum { kCVTimeStampVideoTimeValid = (1L << 0), kCVTimeStampHostTimeValid = (1L << 1), kCVTimeStampSMPTETimeValid = (1L << 2), kCVTimeStampVideoRefreshPeriodValid = (1L << 3), kCVTimeStampRateScalarValid = (1L << 4), kCVTimeStampTopField = (1L << 16), kCVTimeStampBottomField = (1L << 17), kCVTimeStampVideoHostTimeValid = (kCVTimeStampVideoTimeValid | kCVTimeStampHostTimeValid), kCVTimeStampIsInterlaced = (kCVTimeStampTopField | kCVTimeStampBottomField) }; __attribute__((visibility("default"))) extern const CVTime kCVZeroTime; __attribute__((visibility("default"))) extern const CVTime kCVIndefiniteTime; } extern "C" { typedef int32_t CVReturn; enum _CVReturn { kCVReturnSuccess = 0, kCVReturnFirst = -6660, kCVReturnError = kCVReturnFirst, kCVReturnInvalidArgument = -6661, kCVReturnAllocationFailed = -6662, kCVReturnUnsupported = -6663, kCVReturnInvalidDisplay = -6670, kCVReturnDisplayLinkAlreadyRunning = -6671, kCVReturnDisplayLinkNotRunning = -6672, kCVReturnDisplayLinkCallbacksNotSet = -6673, kCVReturnInvalidPixelFormat = -6680, kCVReturnInvalidSize = -6681, kCVReturnInvalidPixelBufferAttributes = -6682, kCVReturnPixelBufferNotOpenGLCompatible = -6683, kCVReturnPixelBufferNotMetalCompatible = -6684, kCVReturnWouldExceedAllocationThreshold = -6689, kCVReturnPoolAllocationFailed = -6690, kCVReturnInvalidPoolAttributes = -6691, kCVReturnRetry = -6692, kCVReturnLast = -6699 }; } extern "C" { __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVBufferPropagatedAttachmentsKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVBufferNonPropagatedAttachmentsKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVBufferMovieTimeKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVBufferTimeValueKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVBufferTimeScaleKey __attribute__((availability(ios,introduced=4.0))); typedef uint32_t CVAttachmentMode; enum { kCVAttachmentMode_ShouldNotPropagate = 0, kCVAttachmentMode_ShouldPropagate = 1 }; typedef struct __attribute__((objc_bridge(id))) __CVBuffer *CVBufferRef; __attribute__((visibility("default"))) extern CVBufferRef _Nullable CVBufferRetain( CVBufferRef _Nullable buffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferRelease( __attribute__((cf_consumed)) CVBufferRef _Nullable buffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferSetAttachment( CVBufferRef _Nonnull buffer, CFStringRef _Nonnull key, CFTypeRef _Nonnull value, CVAttachmentMode attachmentMode ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFTypeRef _Nullable CVBufferGetAttachment( CVBufferRef _Nonnull buffer, CFStringRef _Nonnull key, CVAttachmentMode * _Nullable attachmentMode ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferRemoveAttachment( CVBufferRef _Nonnull buffer, CFStringRef _Nonnull key ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferRemoveAllAttachments( CVBufferRef _Nonnull buffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFDictionaryRef __attribute__((cf_returns_not_retained)) _Nullable CVBufferGetAttachments( CVBufferRef _Nonnull buffer, CVAttachmentMode attachmentMode ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferSetAttachments( CVBufferRef _Nonnull buffer, CFDictionaryRef _Nonnull theAttachments, CVAttachmentMode attachmentMode ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVBufferPropagateAttachments( CVBufferRef _Nonnull sourceBuffer, CVBufferRef _Nonnull destinationBuffer ) __attribute__((availability(ios,introduced=4.0))); } extern "C" { __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCGColorSpaceKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCleanApertureKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCleanApertureWidthKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCleanApertureHeightKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCleanApertureHorizontalOffsetKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferCleanApertureVerticalOffsetKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferPreferredCleanApertureKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldCountKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldDetailKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldDetailTemporalTopFirst __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldDetailTemporalBottomFirst __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldDetailSpatialFirstLineEarly __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferFieldDetailSpatialFirstLineLate __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferPixelAspectRatioKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferPixelAspectRatioHorizontalSpacingKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferPixelAspectRatioVerticalSpacingKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferDisplayDimensionsKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferDisplayWidthKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferDisplayHeightKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferGammaLevelKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferICCProfileKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrixKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_ITU_R_709_2 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_ITU_R_601_4 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_SMPTE_240M_1995 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_DCI_P3 __attribute__((availability(macos,introduced=10.11,deprecated=11.0,message="kCVImageBufferYCbCrMatrix_DCI_P3 no longer supported."))) __attribute__((availability(ios,introduced=9.0,deprecated=14.0,message="kCVImageBufferYCbCrMatrix_DCI_P3 no longer supported."))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_P3_D65 __attribute__((availability(macos,introduced=10.11,deprecated=11.0,message="kCVImageBufferYCbCrMatrix_P3_D65 no longer supported."))) __attribute__((availability(ios,introduced=9.0,deprecated=14.0,message="kCVImageBufferYCbCrMatrix_P3_D65 no longer supported."))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferYCbCrMatrix_ITU_R_2020 __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimariesKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_ITU_R_709_2 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_EBU_3213 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_SMPTE_C __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_P22 __attribute__((availability(ios,introduced=6.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_DCI_P3 __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_P3_D65 __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferColorPrimaries_ITU_R_2020 __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunctionKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_ITU_R_709_2 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_SMPTE_240M_1995 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_UseGamma __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_EBU_3213 __attribute__((availability(ios,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_SMPTE_C __attribute__((availability(ios,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_sRGB __attribute__((availability(ios,introduced=11.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_ITU_R_2020 __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_SMPTE_ST_428_1 __attribute__((availability(ios,introduced=10.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ __attribute__((availability(ios,introduced=11.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_ITU_R_2100_HLG __attribute__((availability(ios,introduced=11.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferTransferFunction_Linear __attribute__((availability(ios,introduced=12.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocationTopFieldKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocationBottomFieldKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_Left __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_Center __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_TopLeft __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_Top __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_BottomLeft __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_Bottom __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaLocation_DV420 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaSubsamplingKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaSubsampling_420 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaSubsampling_422 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferChromaSubsampling_411 __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferAlphaChannelIsOpaque __attribute__((availability(ios,introduced=8.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferAlphaChannelModeKey __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferAlphaChannelMode_StraightAlpha __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferAlphaChannelMode_PremultipliedAlpha __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern int CVYCbCrMatrixGetIntegerCodePointForString( _Nullable CFStringRef yCbCrMatrixString ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern int CVColorPrimariesGetIntegerCodePointForString( _Nullable CFStringRef colorPrimariesString ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern int CVTransferFunctionGetIntegerCodePointForString( _Nullable CFStringRef transferFunctionString ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern _Nullable CFStringRef CVYCbCrMatrixGetStringForIntegerCodePoint( int yCbCrMatrixCodePoint ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern _Nullable CFStringRef CVColorPrimariesGetStringForIntegerCodePoint( int colorPrimariesCodePoint ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern _Nullable CFStringRef CVTransferFunctionGetStringForIntegerCodePoint( int transferFunctionCodePoint ) __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); typedef CVBufferRef CVImageBufferRef; __attribute__((visibility("default"))) extern CGSize CVImageBufferGetEncodedSize( CVImageBufferRef _Nonnull imageBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CGSize CVImageBufferGetDisplaySize( CVImageBufferRef _Nonnull imageBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CGRect CVImageBufferGetCleanRect( CVImageBufferRef _Nonnull imageBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern Boolean CVImageBufferIsFlipped( CVImageBufferRef _Nonnull imageBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CGColorSpaceRef _Nullable CVImageBufferCreateColorSpaceFromAttachments( CFDictionaryRef _Nonnull attachments ) __attribute__((availability(ios,introduced=10.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferMasteringDisplayColorVolumeKey __attribute__((availability(ios,introduced=11.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVImageBufferContentLightLevelInfoKey __attribute__((availability(ios,introduced=11.0))); } extern "C" { enum { kCVPixelFormatType_1Monochrome = 0x00000001, kCVPixelFormatType_2Indexed = 0x00000002, kCVPixelFormatType_4Indexed = 0x00000004, kCVPixelFormatType_8Indexed = 0x00000008, kCVPixelFormatType_1IndexedGray_WhiteIsZero = 0x00000021, kCVPixelFormatType_2IndexedGray_WhiteIsZero = 0x00000022, kCVPixelFormatType_4IndexedGray_WhiteIsZero = 0x00000024, kCVPixelFormatType_8IndexedGray_WhiteIsZero = 0x00000028, kCVPixelFormatType_16BE555 = 0x00000010, kCVPixelFormatType_16LE555 = 'L555', kCVPixelFormatType_16LE5551 = '5551', kCVPixelFormatType_16BE565 = 'B565', kCVPixelFormatType_16LE565 = 'L565', kCVPixelFormatType_24RGB = 0x00000018, kCVPixelFormatType_24BGR = '24BG', kCVPixelFormatType_32ARGB = 0x00000020, kCVPixelFormatType_32BGRA = 'BGRA', kCVPixelFormatType_32ABGR = 'ABGR', kCVPixelFormatType_32RGBA = 'RGBA', kCVPixelFormatType_64ARGB = 'b64a', kCVPixelFormatType_64RGBALE = 'l64r', kCVPixelFormatType_48RGB = 'b48r', kCVPixelFormatType_32AlphaGray = 'b32a', kCVPixelFormatType_16Gray = 'b16g', kCVPixelFormatType_30RGB = 'R10k', kCVPixelFormatType_422YpCbCr8 = '2vuy', kCVPixelFormatType_4444YpCbCrA8 = 'v408', kCVPixelFormatType_4444YpCbCrA8R = 'r408', kCVPixelFormatType_4444AYpCbCr8 = 'y408', kCVPixelFormatType_4444AYpCbCr16 = 'y416', kCVPixelFormatType_444YpCbCr8 = 'v308', kCVPixelFormatType_422YpCbCr16 = 'v216', kCVPixelFormatType_422YpCbCr10 = 'v210', kCVPixelFormatType_444YpCbCr10 = 'v410', kCVPixelFormatType_420YpCbCr8Planar = 'y420', kCVPixelFormatType_420YpCbCr8PlanarFullRange = 'f420', kCVPixelFormatType_422YpCbCr_4A_8BiPlanar = 'a2vy', kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', kCVPixelFormatType_420YpCbCr8BiPlanarFullRange = '420f', kCVPixelFormatType_422YpCbCr8BiPlanarVideoRange = '422v', kCVPixelFormatType_422YpCbCr8BiPlanarFullRange = '422f', kCVPixelFormatType_444YpCbCr8BiPlanarVideoRange = '444v', kCVPixelFormatType_444YpCbCr8BiPlanarFullRange = '444f', kCVPixelFormatType_422YpCbCr8_yuvs = 'yuvs', kCVPixelFormatType_422YpCbCr8FullRange = 'yuvf', kCVPixelFormatType_OneComponent8 = 'L008', kCVPixelFormatType_TwoComponent8 = '2C08', kCVPixelFormatType_30RGBLEPackedWideGamut = 'w30r', kCVPixelFormatType_ARGB2101010LEPacked = 'l10r', kCVPixelFormatType_OneComponent10 = 'L010', kCVPixelFormatType_OneComponent12 = 'L012', kCVPixelFormatType_OneComponent16 = 'L016', kCVPixelFormatType_TwoComponent16 = '2C16', kCVPixelFormatType_OneComponent16Half = 'L00h', kCVPixelFormatType_OneComponent32Float = 'L00f', kCVPixelFormatType_TwoComponent16Half = '2C0h', kCVPixelFormatType_TwoComponent32Float = '2C0f', kCVPixelFormatType_64RGBAHalf = 'RGhA', kCVPixelFormatType_128RGBAFloat = 'RGfA', kCVPixelFormatType_14Bayer_GRBG = 'grb4', kCVPixelFormatType_14Bayer_RGGB = 'rgg4', kCVPixelFormatType_14Bayer_BGGR = 'bgg4', kCVPixelFormatType_14Bayer_GBRG = 'gbr4', kCVPixelFormatType_DisparityFloat16 = 'hdis', kCVPixelFormatType_DisparityFloat32 = 'fdis', kCVPixelFormatType_DepthFloat16 = 'hdep', kCVPixelFormatType_DepthFloat32 = 'fdep', kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420', kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange = 'x422', kCVPixelFormatType_444YpCbCr10BiPlanarVideoRange = 'x444', kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20', kCVPixelFormatType_422YpCbCr10BiPlanarFullRange = 'xf22', kCVPixelFormatType_444YpCbCr10BiPlanarFullRange = 'xf44', kCVPixelFormatType_420YpCbCr8VideoRange_8A_TriPlanar = 'v0a8', kCVPixelFormatType_16VersatileBayer = 'bp16', kCVPixelFormatType_64RGBA_DownscaledProResRAW = 'bp64', }; typedef CVOptionFlags CVPixelBufferLockFlags; enum { kCVPixelBufferLock_ReadOnly = 0x00000001, }; struct CVPlanarComponentInfo { int32_t offset; uint32_t rowBytes; }; typedef struct CVPlanarComponentInfo CVPlanarComponentInfo; struct CVPlanarPixelBufferInfo { CVPlanarComponentInfo componentInfo[1]; }; typedef struct CVPlanarPixelBufferInfo CVPlanarPixelBufferInfo; struct CVPlanarPixelBufferInfo_YCbCrPlanar { CVPlanarComponentInfo componentInfoY; CVPlanarComponentInfo componentInfoCb; CVPlanarComponentInfo componentInfoCr; }; typedef struct CVPlanarPixelBufferInfo_YCbCrPlanar CVPlanarPixelBufferInfo_YCbCrPlanar; struct CVPlanarPixelBufferInfo_YCbCrBiPlanar { CVPlanarComponentInfo componentInfoY; CVPlanarComponentInfo componentInfoCbCr; }; typedef struct CVPlanarPixelBufferInfo_YCbCrBiPlanar CVPlanarPixelBufferInfo_YCbCrBiPlanar; __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPixelFormatTypeKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferMemoryAllocatorKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferWidthKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferHeightKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferExtendedPixelsLeftKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferExtendedPixelsTopKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferExtendedPixelsRightKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferExtendedPixelsBottomKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferBytesPerRowAlignmentKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferCGBitmapContextCompatibilityKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferCGImageCompatibilityKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferOpenGLCompatibilityKey __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPlaneAlignmentKey __attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfacePropertiesKey __attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferOpenGLESCompatibilityKey __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferMetalCompatibilityKey __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferOpenGLTextureCacheCompatibilityKey __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferOpenGLESTextureCacheCompatibilityKey __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferVersatileBayerKey_BayerPattern __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); enum { kCVVersatileBayer_BayerPattern_RGGB = 0, kCVVersatileBayer_BayerPattern_GRBG = 1, kCVVersatileBayer_BayerPattern_GBRG = 2, kCVVersatileBayer_BayerPattern_BGGR = 3, }; __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_SenselSitingOffsets __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_BlackLevel __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_WhiteLevel __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_WhiteBalanceCCT __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_WhiteBalanceRedFactor __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_WhiteBalanceBlueFactor __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_ColorMatrix __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_GainFactor __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferProResRAWKey_RecommendedCrop __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef CVImageBufferRef CVPixelBufferRef; __attribute__((visibility("default"))) extern CFTypeID CVPixelBufferGetTypeID(void) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVPixelBufferRef _Nullable CVPixelBufferRetain( CVPixelBufferRef _Nullable texture ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVPixelBufferRelease( __attribute__((cf_consumed)) CVPixelBufferRef _Nullable texture ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferCreateResolvedAttributesDictionary( CFAllocatorRef _Nullable allocator, CFArrayRef _Nullable attributes, __attribute__((cf_returns_retained)) CFDictionaryRef _Nullable * _Nonnull resolvedDictionaryOut) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferCreate( CFAllocatorRef _Nullable allocator, size_t width, size_t height, OSType pixelFormatType, CFDictionaryRef _Nullable pixelBufferAttributes, __attribute__((cf_returns_retained)) CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut) __attribute__((availability(ios,introduced=4.0))); typedef void (*CVPixelBufferReleaseBytesCallback)( void * _Nullable releaseRefCon, const void * _Nullable baseAddress ); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferCreateWithBytes( CFAllocatorRef _Nullable allocator, size_t width, size_t height, OSType pixelFormatType, void * _Nonnull baseAddress, size_t bytesPerRow, CVPixelBufferReleaseBytesCallback _Nullable releaseCallback, void * _Nullable releaseRefCon, CFDictionaryRef _Nullable pixelBufferAttributes, __attribute__((cf_returns_retained)) CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut) __attribute__((availability(ios,introduced=4.0))); typedef void (*CVPixelBufferReleasePlanarBytesCallback)( void * _Nullable releaseRefCon, const void * _Nullable dataPtr, size_t dataSize, size_t numberOfPlanes, const void * _Nullable planeAddresses[_Nullable ] ); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferCreateWithPlanarBytes( CFAllocatorRef _Nullable allocator, size_t width, size_t height, OSType pixelFormatType, void * _Nullable dataPtr, size_t dataSize, size_t numberOfPlanes, void * _Nullable planeBaseAddress[_Nonnull ], size_t planeWidth[_Nonnull ], size_t planeHeight[_Nonnull ], size_t planeBytesPerRow[_Nonnull ], CVPixelBufferReleasePlanarBytesCallback _Nullable releaseCallback, void * _Nullable releaseRefCon, CFDictionaryRef _Nullable pixelBufferAttributes, __attribute__((cf_returns_retained)) CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferLockBaseAddress( CVPixelBufferRef _Nonnull pixelBuffer, CVPixelBufferLockFlags lockFlags ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferUnlockBaseAddress( CVPixelBufferRef _Nonnull pixelBuffer, CVPixelBufferLockFlags unlockFlags ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetWidth( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetHeight( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern OSType CVPixelBufferGetPixelFormatType( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void * _Nullable CVPixelBufferGetBaseAddress( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetBytesPerRow( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetDataSize( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern Boolean CVPixelBufferIsPlanar( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetPlaneCount( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetWidthOfPlane( CVPixelBufferRef _Nonnull pixelBuffer, size_t planeIndex ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetHeightOfPlane( CVPixelBufferRef _Nonnull pixelBuffer, size_t planeIndex ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void * _Nullable CVPixelBufferGetBaseAddressOfPlane( CVPixelBufferRef _Nonnull pixelBuffer, size_t planeIndex ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern size_t CVPixelBufferGetBytesPerRowOfPlane( CVPixelBufferRef _Nonnull pixelBuffer, size_t planeIndex ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVPixelBufferGetExtendedPixels( CVPixelBufferRef _Nonnull pixelBuffer, size_t * _Nullable extraColumnsOnLeft, size_t * _Nullable extraColumnsOnRight, size_t * _Nullable extraRowsOnTop, size_t * _Nullable extraRowsOnBottom ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferFillExtendedPixels( CVPixelBufferRef _Nonnull pixelBuffer ) __attribute__((availability(ios,introduced=4.0))); } typedef uint32_t IOSurfaceID; typedef uint32_t IOSurfaceLockOptions; enum { kIOSurfaceLockReadOnly = 0x00000001, kIOSurfaceLockAvoidSync = 0x00000002, }; typedef uint32_t IOSurfacePurgeabilityState; enum { kIOSurfacePurgeableNonVolatile = 0, kIOSurfacePurgeableVolatile = 1, kIOSurfacePurgeableEmpty = 2, kIOSurfacePurgeableKeepCurrent = 3, }; enum { kIOSurfaceDefaultCache = 0, kIOSurfaceInhibitCache = 1, kIOSurfaceWriteThruCache = 2, kIOSurfaceCopybackCache = 3, kIOSurfaceWriteCombineCache = 4, kIOSurfaceCopybackInnerCache = 5 }; enum { kIOSurfaceMapCacheShift = 8, kIOSurfaceMapDefaultCache = kIOSurfaceDefaultCache << kIOSurfaceMapCacheShift, kIOSurfaceMapInhibitCache = kIOSurfaceInhibitCache << kIOSurfaceMapCacheShift, kIOSurfaceMapWriteThruCache = kIOSurfaceWriteThruCache << kIOSurfaceMapCacheShift, kIOSurfaceMapCopybackCache = kIOSurfaceCopybackCache << kIOSurfaceMapCacheShift, kIOSurfaceMapWriteCombineCache = kIOSurfaceWriteCombineCache << kIOSurfaceMapCacheShift, kIOSurfaceMapCopybackInnerCache = kIOSurfaceCopybackInnerCache << kIOSurfaceMapCacheShift, }; typedef struct __attribute__((objc_bridge(id))) __attribute__((objc_bridge_mutable(IOSurface))) __IOSurface *IOSurfaceRef __attribute__((swift_name("IOSurfaceRef"))); extern "C" { #pragma clang assume_nonnull begin extern const CFStringRef kIOSurfaceAllocSize __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceWidth __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceHeight __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceBytesPerRow __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceBytesPerElement __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceElementWidth __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceElementHeight __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceOffset __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneInfo __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneWidth __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneHeight __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneBytesPerRow __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneOffset __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneSize __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneBase __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneBitsPerElement __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneBytesPerElement __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneElementWidth __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneElementHeight __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceCacheMode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfaceIsGlobal __attribute__((availability(macos,introduced=10.6,deprecated=10.11,message="Global surfaces are insecure"))) __attribute__((availability(ios,introduced=11.0,deprecated=11.0,message="Global surfaces are insecure"))) __attribute__((availability(watchos,introduced=4.0,deprecated=4.0,message="Global surfaces are insecure"))) __attribute__((availability(tvos,introduced=11.0,deprecated=11.0,message="Global surfaces are insecure"))); extern const CFStringRef kIOSurfacePixelFormat __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePixelSizeCastingAllowed __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneComponentBitDepths __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern const CFStringRef kIOSurfacePlaneComponentBitOffsets __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef int32_t IOSurfaceComponentName; enum { kIOSurfaceComponentNameUnknown = 0, kIOSurfaceComponentNameAlpha = 1, kIOSurfaceComponentNameRed = 2, kIOSurfaceComponentNameGreen = 3, kIOSurfaceComponentNameBlue = 4, kIOSurfaceComponentNameLuma = 5, kIOSurfaceComponentNameChromaRed = 6, kIOSurfaceComponentNameChromaBlue = 7, }; extern const CFStringRef kIOSurfacePlaneComponentNames __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef int32_t IOSurfaceComponentType; enum { kIOSurfaceComponentTypeUnknown = 0, kIOSurfaceComponentTypeUnsignedInteger = 1, kIOSurfaceComponentTypeSignedInteger = 2, kIOSurfaceComponentTypeFloat = 3, }; extern const CFStringRef kIOSurfacePlaneComponentTypes __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef int32_t IOSurfaceComponentRange; enum { kIOSurfaceComponentRangeUnknown = 0, kIOSurfaceComponentRangeFullRange = 1, kIOSurfaceComponentRangeVideoRange = 2, kIOSurfaceComponentRangeWideRange = 3, }; extern const CFStringRef kIOSurfacePlaneComponentRanges __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); typedef int32_t IOSurfaceSubsampling; enum { kIOSurfaceSubsamplingUnknown = 0, kIOSurfaceSubsamplingNone = 1, kIOSurfaceSubsampling422 = 2, kIOSurfaceSubsampling420 = 3, kIOSurfaceSubsampling411 = 4, }; extern const CFStringRef kIOSurfaceSubsampling __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); CFTypeID IOSurfaceGetTypeID(void) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceRef _Nullable IOSurfaceCreate(CFDictionaryRef properties) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceRef _Nullable IOSurfaceLookup(IOSurfaceID csid) __attribute__((cf_returns_retained)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceID IOSurfaceGetID(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); kern_return_t IOSurfaceLock(IOSurfaceRef buffer, IOSurfaceLockOptions options, uint32_t * _Nullable seed) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); kern_return_t IOSurfaceUnlock(IOSurfaceRef buffer, IOSurfaceLockOptions options, uint32_t * _Nullable seed) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetAllocSize(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetWidth(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetHeight(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBytesPerElement(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBytesPerRow(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void *IOSurfaceGetBaseAddress(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetElementWidth(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetElementHeight(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); OSType IOSurfaceGetPixelFormat(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); uint32_t IOSurfaceGetSeed(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetPlaneCount(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetWidthOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetHeightOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBytesPerElementOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBytesPerRowOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void *IOSurfaceGetBaseAddressOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetElementWidthOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetElementHeightOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetNumberOfComponentsOfPlane(IOSurfaceRef buffer, size_t planeIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceComponentName IOSurfaceGetNameOfComponentOfPlane(IOSurfaceRef buffer, size_t planeIndex, size_t componentIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceComponentType IOSurfaceGetTypeOfComponentOfPlane(IOSurfaceRef buffer, size_t planeIndex, size_t componentIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceComponentRange IOSurfaceGetRangeOfComponentOfPlane(IOSurfaceRef buffer, size_t planeIndex, size_t componentIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBitDepthOfComponentOfPlane(IOSurfaceRef buffer, size_t planeIndex, size_t componentIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetBitOffsetOfComponentOfPlane(IOSurfaceRef buffer, size_t planeIndex, size_t componentIndex) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceSubsampling IOSurfaceGetSubsampling(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceSetValue(IOSurfaceRef buffer, CFStringRef key, CFTypeRef value) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); CFTypeRef _Nullable IOSurfaceCopyValue(IOSurfaceRef buffer, CFStringRef key) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceRemoveValue(IOSurfaceRef buffer, CFStringRef key) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceSetValues(IOSurfaceRef buffer, CFDictionaryRef keysAndValues) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); CFDictionaryRef _Nullable IOSurfaceCopyAllValues(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceRemoveAllValues(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); mach_port_t IOSurfaceCreateMachPort(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); IOSurfaceRef _Nullable IOSurfaceLookupFromMachPort(mach_port_t port) __attribute__((cf_returns_retained)) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetPropertyMaximum(CFStringRef property) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceGetPropertyAlignment(CFStringRef property) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); size_t IOSurfaceAlignProperty(CFStringRef property, size_t value) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceIncrementUseCount(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); void IOSurfaceDecrementUseCount(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); int32_t IOSurfaceGetUseCount(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); Boolean IOSurfaceIsInUse(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); Boolean IOSurfaceAllowsPixelSizeCasting(IOSurfaceRef buffer) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); kern_return_t IOSurfaceSetPurgeable(IOSurfaceRef buffer, uint32_t newState, uint32_t * _Nullable oldState) __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); } #pragma clang assume_nonnull end extern "C" { __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey __attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey __attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern IOSurfaceRef _Nullable CVPixelBufferGetIOSurface(CVPixelBufferRef _Nullable pixelBuffer) __attribute__((availability(macosx,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferCreateWithIOSurface( CFAllocatorRef _Nullable allocator, IOSurfaceRef _Nonnull surface, CFDictionaryRef _Nullable pixelBufferAttributes, CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut) __attribute__((availability(ios,introduced=4.0))); } extern "C" { typedef struct __attribute__((objc_bridge(id))) __CVPixelBufferPool *CVPixelBufferPoolRef; __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPoolMinimumBufferCountKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPoolMaximumBufferAgeKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFTypeID CVPixelBufferPoolGetTypeID(void) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVPixelBufferPoolRef _Nullable CVPixelBufferPoolRetain( CVPixelBufferPoolRef _Nullable pixelBufferPool ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVPixelBufferPoolRelease( __attribute__((cf_consumed)) CVPixelBufferPoolRef _Nullable pixelBufferPool ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferPoolCreate( CFAllocatorRef _Nullable allocator, CFDictionaryRef _Nullable poolAttributes, CFDictionaryRef _Nullable pixelBufferAttributes, __attribute__((cf_returns_retained)) CVPixelBufferPoolRef _Nullable * _Nonnull poolOut ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFDictionaryRef __attribute__((cf_returns_not_retained)) _Nullable CVPixelBufferPoolGetAttributes( CVPixelBufferPoolRef _Nonnull pool ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFDictionaryRef __attribute__((cf_returns_not_retained)) _Nullable CVPixelBufferPoolGetPixelBufferAttributes( CVPixelBufferPoolRef _Nonnull pool ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferPoolCreatePixelBuffer( CFAllocatorRef _Nullable allocator, CVPixelBufferPoolRef _Nonnull pixelBufferPool, __attribute__((cf_returns_retained)) CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CVReturn CVPixelBufferPoolCreatePixelBufferWithAuxAttributes( CFAllocatorRef _Nullable allocator, CVPixelBufferPoolRef _Nonnull pixelBufferPool, CFDictionaryRef _Nullable auxAttributes, __attribute__((cf_returns_retained)) CVPixelBufferRef _Nullable * _Nonnull pixelBufferOut ) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPoolAllocationThresholdKey __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelBufferPoolFreeBufferNotification __attribute__((availability(ios,introduced=4.0))); typedef CVOptionFlags CVPixelBufferPoolFlushFlags; enum { kCVPixelBufferPoolFlushExcessBuffers = 1, }; __attribute__((visibility("default"))) extern void CVPixelBufferPoolFlush( CVPixelBufferPoolRef _Nonnull pool, CVPixelBufferPoolFlushFlags options ); } typedef uint32_t GLbitfield; typedef uint8_t GLboolean; typedef int8_t GLbyte; typedef float GLclampf; typedef uint32_t GLenum; typedef float GLfloat; typedef int32_t GLint; typedef int16_t GLshort; typedef int32_t GLsizei; typedef uint8_t GLubyte; typedef uint32_t GLuint; typedef uint16_t GLushort; typedef void GLvoid; typedef char GLchar; typedef int32_t GLclampx; typedef int32_t GLfixed; typedef uint16_t GLhalf; typedef int64_t GLint64; typedef struct __GLsync *GLsync; typedef uint64_t GLuint64; typedef intptr_t GLintptr; typedef intptr_t GLsizeiptr; extern "C" { typedef CVImageBufferRef CVOpenGLESTextureRef; __attribute__((visibility("default"))) extern CFTypeID CVOpenGLESTextureGetTypeID(void) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern GLenum CVOpenGLESTextureGetTarget( CVOpenGLESTextureRef _Nonnull image ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern GLuint CVOpenGLESTextureGetName( CVOpenGLESTextureRef _Nonnull image ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern Boolean CVOpenGLESTextureIsFlipped( CVOpenGLESTextureRef _Nonnull image ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern void CVOpenGLESTextureGetCleanTexCoords( CVOpenGLESTextureRef _Nonnull image, GLfloat lowerLeft[_Nonnull 2], GLfloat lowerRight[_Nonnull 2], GLfloat upperRight[_Nonnull 2], GLfloat upperLeft[_Nonnull 2] ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))); } extern "C" { typedef struct __attribute__((objc_bridge(id))) __CVOpenGLESTextureCache *CVOpenGLESTextureCacheRef; // @class EAGLContext; #ifndef _REWRITER_typedef_EAGLContext #define _REWRITER_typedef_EAGLContext typedef struct objc_object EAGLContext; typedef struct {} _objc_exc_EAGLContext; #endif typedef EAGLContext *CVEAGLContext; __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVOpenGLESTextureCacheMaximumTextureAgeKey __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern CFTypeID CVOpenGLESTextureCacheGetTypeID(void) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern CVReturn CVOpenGLESTextureCacheCreate( CFAllocatorRef _Nullable allocator, CFDictionaryRef _Nullable cacheAttributes, CVEAGLContext _Nonnull eaglContext, CFDictionaryRef _Nullable textureAttributes, __attribute__((cf_returns_retained)) CVOpenGLESTextureCacheRef _Nullable * _Nonnull cacheOut) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern CVReturn CVOpenGLESTextureCacheCreateTextureFromImage( CFAllocatorRef _Nullable allocator, CVOpenGLESTextureCacheRef _Nonnull textureCache, CVImageBufferRef _Nonnull sourceImage, CFDictionaryRef _Nullable textureAttributes, GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, size_t planeIndex, __attribute__((cf_returns_retained)) CVOpenGLESTextureRef _Nullable * _Nonnull textureOut ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern void CVOpenGLESTextureCacheFlush( CVOpenGLESTextureCacheRef _Nonnull textureCache, CVOptionFlags options ) __attribute__((availability(ios,introduced=5.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)"))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(watchos,unavailable))); } extern "C" { __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatName __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatConstant __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatCodecType __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatFourCC __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatContainsAlpha __attribute__((availability(ios,introduced=4.3))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatContainsYCbCr __attribute__((availability(ios,introduced=8.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatContainsRGB __attribute__((availability(ios,introduced=8.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatContainsGrayscale __attribute__((availability(ios,introduced=12.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatComponentRange __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatComponentRange_VideoRange __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatComponentRange_FullRange __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatComponentRange_WideRange __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatPlanes __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBlockWidth __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBlockHeight __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBitsPerBlock __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBlockHorizontalAlignment __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBlockVerticalAlignment __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatBlackBlock __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatHorizontalSubsampling __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatVerticalSubsampling __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatOpenGLFormat __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatOpenGLType __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatOpenGLInternalFormat __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatCGBitmapInfo __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatQDCompatibility __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatCGBitmapContextCompatibility __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatCGImageCompatibility __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatOpenGLCompatibility __attribute__((availability(macosx,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=4.0))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatOpenGLESCompatibility __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macosx,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))); typedef Boolean (*CVFillExtendedPixelsCallBack)(CVPixelBufferRef _Nonnull pixelBuffer, void * _Nullable refCon); typedef struct { CFIndex version; CVFillExtendedPixelsCallBack _Nullable fillCallBack; void * _Nullable refCon; } CVFillExtendedPixelsCallBackData; __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVPixelFormatFillExtendedPixelsCallback __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFDictionaryRef __attribute__((cf_returns_retained)) _Nullable CVPixelFormatDescriptionCreateWithPixelFormatType(CFAllocatorRef _Nullable allocator, OSType pixelFormat) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern CFArrayRef __attribute__((cf_returns_retained)) _Nullable CVPixelFormatDescriptionArrayCreateWithAllPixelFormatTypes(CFAllocatorRef _Nullable allocator) __attribute__((availability(ios,introduced=4.0))); __attribute__((visibility("default"))) extern void CVPixelFormatDescriptionRegisterDescriptionWithPixelFormatType(CFDictionaryRef _Nonnull description, OSType pixelFormat) __attribute__((availability(ios,introduced=4.0))); } extern "C" { // @protocol MTLTexture; typedef CVImageBufferRef CVMetalTextureRef; __attribute__((visibility("default"))) extern CFTypeID CVMetalTextureGetTypeID(void) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern id /*<MTLTexture>*/ _Nullable CVMetalTextureGetTexture( CVMetalTextureRef _Nonnull image ) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern Boolean CVMetalTextureIsFlipped( CVMetalTextureRef _Nonnull image ) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern void CVMetalTextureGetCleanTexCoords( CVMetalTextureRef _Nonnull image, float lowerLeft[_Nonnull 2], float lowerRight[_Nonnull 2], float upperRight[_Nonnull 2], float upperLeft[_Nonnull 2] ) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVMetalTextureUsage __attribute__((availability(macosx,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVMetalTextureStorageMode __attribute__((availability(macosx,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); } extern "C" { __attribute__((visibility("default"))) extern const CFStringRef _Nonnull kCVMetalTextureCacheMaximumTextureAgeKey __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull begin typedef NSUInteger MTLPixelFormat; enum { MTLPixelFormatInvalid = 0, MTLPixelFormatA8Unorm = 1, MTLPixelFormatR8Unorm = 10, MTLPixelFormatR8Unorm_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 11, MTLPixelFormatR8Snorm = 12, MTLPixelFormatR8Uint = 13, MTLPixelFormatR8Sint = 14, MTLPixelFormatR16Unorm = 20, MTLPixelFormatR16Snorm = 22, MTLPixelFormatR16Uint = 23, MTLPixelFormatR16Sint = 24, MTLPixelFormatR16Float = 25, MTLPixelFormatRG8Unorm = 30, MTLPixelFormatRG8Unorm_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 31, MTLPixelFormatRG8Snorm = 32, MTLPixelFormatRG8Uint = 33, MTLPixelFormatRG8Sint = 34, MTLPixelFormatB5G6R5Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 40, MTLPixelFormatA1BGR5Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 41, MTLPixelFormatABGR4Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 42, MTLPixelFormatBGR5A1Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 43, MTLPixelFormatR32Uint = 53, MTLPixelFormatR32Sint = 54, MTLPixelFormatR32Float = 55, MTLPixelFormatRG16Unorm = 60, MTLPixelFormatRG16Snorm = 62, MTLPixelFormatRG16Uint = 63, MTLPixelFormatRG16Sint = 64, MTLPixelFormatRG16Float = 65, MTLPixelFormatRGBA8Unorm = 70, MTLPixelFormatRGBA8Unorm_sRGB = 71, MTLPixelFormatRGBA8Snorm = 72, MTLPixelFormatRGBA8Uint = 73, MTLPixelFormatRGBA8Sint = 74, MTLPixelFormatBGRA8Unorm = 80, MTLPixelFormatBGRA8Unorm_sRGB = 81, MTLPixelFormatRGB10A2Unorm = 90, MTLPixelFormatRGB10A2Uint = 91, MTLPixelFormatRG11B10Float = 92, MTLPixelFormatRGB9E5Float = 93, MTLPixelFormatBGR10A2Unorm __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) = 94, MTLPixelFormatBGR10_XR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=10.0))) = 554, MTLPixelFormatBGR10_XR_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=10.0))) = 555, MTLPixelFormatRG32Uint = 103, MTLPixelFormatRG32Sint = 104, MTLPixelFormatRG32Float = 105, MTLPixelFormatRGBA16Unorm = 110, MTLPixelFormatRGBA16Snorm = 112, MTLPixelFormatRGBA16Uint = 113, MTLPixelFormatRGBA16Sint = 114, MTLPixelFormatRGBA16Float = 115, MTLPixelFormatBGRA10_XR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=10.0))) = 552, MTLPixelFormatBGRA10_XR_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=10.0))) = 553, MTLPixelFormatRGBA32Uint = 123, MTLPixelFormatRGBA32Sint = 124, MTLPixelFormatRGBA32Float = 125, MTLPixelFormatBC1_RGBA __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 130, MTLPixelFormatBC1_RGBA_sRGB __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 131, MTLPixelFormatBC2_RGBA __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 132, MTLPixelFormatBC2_RGBA_sRGB __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 133, MTLPixelFormatBC3_RGBA __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 134, MTLPixelFormatBC3_RGBA_sRGB __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 135, MTLPixelFormatBC4_RUnorm __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 140, MTLPixelFormatBC4_RSnorm __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 141, MTLPixelFormatBC5_RGUnorm __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 142, MTLPixelFormatBC5_RGSnorm __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 143, MTLPixelFormatBC6H_RGBFloat __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 150, MTLPixelFormatBC6H_RGBUfloat __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 151, MTLPixelFormatBC7_RGBAUnorm __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 152, MTLPixelFormatBC7_RGBAUnorm_sRGB __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 153, MTLPixelFormatPVRTC_RGB_2BPP __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 160, MTLPixelFormatPVRTC_RGB_2BPP_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 161, MTLPixelFormatPVRTC_RGB_4BPP __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 162, MTLPixelFormatPVRTC_RGB_4BPP_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 163, MTLPixelFormatPVRTC_RGBA_2BPP __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 164, MTLPixelFormatPVRTC_RGBA_2BPP_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 165, MTLPixelFormatPVRTC_RGBA_4BPP __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 166, MTLPixelFormatPVRTC_RGBA_4BPP_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 167, MTLPixelFormatEAC_R11Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 170, MTLPixelFormatEAC_R11Snorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 172, MTLPixelFormatEAC_RG11Unorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 174, MTLPixelFormatEAC_RG11Snorm __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 176, MTLPixelFormatEAC_RGBA8 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 178, MTLPixelFormatEAC_RGBA8_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 179, MTLPixelFormatETC2_RGB8 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 180, MTLPixelFormatETC2_RGB8_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 181, MTLPixelFormatETC2_RGB8A1 __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 182, MTLPixelFormatETC2_RGB8A1_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 183, MTLPixelFormatASTC_4x4_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 186, MTLPixelFormatASTC_5x4_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 187, MTLPixelFormatASTC_5x5_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 188, MTLPixelFormatASTC_6x5_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 189, MTLPixelFormatASTC_6x6_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 190, MTLPixelFormatASTC_8x5_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 192, MTLPixelFormatASTC_8x6_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 193, MTLPixelFormatASTC_8x8_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 194, MTLPixelFormatASTC_10x5_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 195, MTLPixelFormatASTC_10x6_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 196, MTLPixelFormatASTC_10x8_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 197, MTLPixelFormatASTC_10x10_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 198, MTLPixelFormatASTC_12x10_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 199, MTLPixelFormatASTC_12x12_sRGB __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 200, MTLPixelFormatASTC_4x4_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 204, MTLPixelFormatASTC_5x4_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 205, MTLPixelFormatASTC_5x5_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 206, MTLPixelFormatASTC_6x5_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 207, MTLPixelFormatASTC_6x6_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 208, MTLPixelFormatASTC_8x5_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 210, MTLPixelFormatASTC_8x6_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 211, MTLPixelFormatASTC_8x8_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 212, MTLPixelFormatASTC_10x5_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 213, MTLPixelFormatASTC_10x6_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 214, MTLPixelFormatASTC_10x8_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 215, MTLPixelFormatASTC_10x10_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 216, MTLPixelFormatASTC_12x10_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 217, MTLPixelFormatASTC_12x12_LDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=8.0))) = 218, MTLPixelFormatASTC_4x4_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 222, MTLPixelFormatASTC_5x4_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 223, MTLPixelFormatASTC_5x5_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 224, MTLPixelFormatASTC_6x5_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 225, MTLPixelFormatASTC_6x6_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 226, MTLPixelFormatASTC_8x5_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 228, MTLPixelFormatASTC_8x6_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 229, MTLPixelFormatASTC_8x8_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 230, MTLPixelFormatASTC_10x5_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 231, MTLPixelFormatASTC_10x6_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 232, MTLPixelFormatASTC_10x8_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 233, MTLPixelFormatASTC_10x10_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 234, MTLPixelFormatASTC_12x10_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 235, MTLPixelFormatASTC_12x12_HDR __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(macCatalyst,introduced=14.0))) __attribute__((availability(ios,introduced=13.0))) = 236, MTLPixelFormatGBGR422 = 240, MTLPixelFormatBGRG422 = 241, MTLPixelFormatDepth16Unorm __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=13.0))) = 250, MTLPixelFormatDepth32Float = 252, MTLPixelFormatStencil8 = 253, MTLPixelFormatDepth24Unorm_Stencil8 __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 255, MTLPixelFormatDepth32Float_Stencil8 __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) = 260, MTLPixelFormatX32_Stencil8 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) = 261, MTLPixelFormatX24_Stencil8 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(macCatalyst,introduced=13.0))) __attribute__((availability(ios,unavailable))) = 262, } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))); #pragma clang assume_nonnull end // @protocol MTLDevice; typedef struct __attribute__((objc_bridge(id))) __CVMetalTextureCache *CVMetalTextureCacheRef; __attribute__((visibility("default"))) extern CFTypeID CVMetalTextureCacheGetTypeID(void) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern CVReturn CVMetalTextureCacheCreate( CFAllocatorRef _Nullable allocator, CFDictionaryRef _Nullable cacheAttributes, id /*<MTLDevice>*/ _Nonnull metalDevice, CFDictionaryRef _Nullable textureAttributes, __attribute__((cf_returns_retained)) CVMetalTextureCacheRef _Nullable * _Nonnull cacheOut ) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern CVReturn CVMetalTextureCacheCreateTextureFromImage( CFAllocatorRef _Nullable allocator, CVMetalTextureCacheRef _Nonnull textureCache, CVImageBufferRef _Nonnull sourceImage, CFDictionaryRef _Nullable textureAttributes, MTLPixelFormat pixelFormat, size_t width, size_t height, size_t planeIndex, __attribute__((cf_returns_retained)) CVMetalTextureRef _Nullable * _Nonnull textureOut ) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); __attribute__((visibility("default"))) extern void CVMetalTextureCacheFlush(CVMetalTextureCacheRef _Nonnull textureCache, CVOptionFlags options) __attribute__((availability(macosx,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); } typedef struct __attribute__((objc_bridge(id))) CGImageSource * CGImageSourceRef; typedef const struct __attribute__((objc_bridge(id))) CGImageMetadata *CGImageMetadataRef; extern "C" __attribute__((visibility("default"))) CFTypeID CGImageMetadataGetTypeID(void); typedef struct __attribute__((objc_bridge(id))) CGImageMetadata *CGMutableImageMetadataRef; extern "C" __attribute__((visibility("default"))) CGMutableImageMetadataRef _Nonnull CGImageMetadataCreateMutable(void) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGMutableImageMetadataRef _Nullable CGImageMetadataCreateMutableCopy(CGImageMetadataRef _Nonnull metadata) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); typedef struct __attribute__((objc_bridge(id))) CGImageMetadataTag *CGImageMetadataTagRef; extern "C" __attribute__((visibility("default"))) CFTypeID CGImageMetadataTagGetTypeID(void) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceExif __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceExifAux __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceExifEX __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceDublinCore __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceIPTCCore __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceIPTCExtension __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespacePhotoshop __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceTIFF __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceXMPBasic __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataNamespaceXMPRights __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixExif __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixExifAux __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixExifEX __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixDublinCore __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixIPTCCore __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixIPTCExtension __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixPhotoshop __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixTIFF __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixXMPBasic __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataPrefixXMPRights __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull end typedef int32_t CGImageMetadataType; enum { kCGImageMetadataTypeInvalid = -1, kCGImageMetadataTypeDefault = 0, kCGImageMetadataTypeString = 1, kCGImageMetadataTypeArrayUnordered = 2, kCGImageMetadataTypeArrayOrdered = 3, kCGImageMetadataTypeAlternateArray = 4, kCGImageMetadataTypeAlternateText = 5, kCGImageMetadataTypeStructure = 6 }; extern "C" __attribute__((visibility("default"))) CGImageMetadataTagRef _Nullable CGImageMetadataTagCreate (CFStringRef _Nonnull xmlns, CFStringRef _Nullable prefix, CFStringRef _Nonnull name, CGImageMetadataType type, CFTypeRef _Nonnull value) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageMetadataTagCopyNamespace(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageMetadataTagCopyPrefix(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageMetadataTagCopyName(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFTypeRef _Nullable CGImageMetadataTagCopyValue(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageMetadataType CGImageMetadataTagGetType(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nullable CGImageMetadataTagCopyQualifiers(CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nullable CGImageMetadataCopyTags(CGImageMetadataRef _Nonnull metadata) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageMetadataTagRef _Nullable CGImageMetadataCopyTagWithPath(CGImageMetadataRef _Nonnull metadata, CGImageMetadataTagRef _Nullable parent, CFStringRef _Nonnull path) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageMetadataCopyStringValueWithPath(CGImageMetadataRef _Nonnull metadata, CGImageMetadataTagRef _Nullable parent, CFStringRef _Nonnull path) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) bool CGImageMetadataRegisterNamespaceForPrefix(CGMutableImageMetadataRef _Nonnull metadata, CFStringRef _Nonnull xmlns, CFStringRef _Nonnull prefix, _Nullable CFErrorRef * _Nullable err) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) bool CGImageMetadataSetTagWithPath(CGMutableImageMetadataRef _Nonnull metadata, CGImageMetadataTagRef _Nullable parent, CFStringRef _Nonnull path, CGImageMetadataTagRef _Nonnull tag) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) bool CGImageMetadataSetValueWithPath(CGMutableImageMetadataRef _Nonnull metadata, CGImageMetadataTagRef _Nullable parent, CFStringRef _Nonnull path, CFTypeRef _Nonnull value) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) bool CGImageMetadataRemoveTagWithPath(CGMutableImageMetadataRef _Nonnull metadata, CGImageMetadataTagRef _Nullable parent, CFStringRef _Nonnull path) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); typedef bool(*CGImageMetadataTagBlock)(CFStringRef _Nonnull path, CGImageMetadataTagRef _Nonnull tag); extern "C" __attribute__((visibility("default"))) void CGImageMetadataEnumerateTagsUsingBlock(CGImageMetadataRef _Nonnull metadata, CFStringRef _Nullable rootPath, CFDictionaryRef _Nullable options, CGImageMetadataTagBlock _Nonnull block) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef _Nonnull kCGImageMetadataEnumerateRecursively __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageMetadataTagRef _Nullable CGImageMetadataCopyTagMatchingImageProperty(CGImageMetadataRef _Nonnull metadata, CFStringRef _Nonnull dictionaryName, CFStringRef _Nonnull propertyName) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) bool CGImageMetadataSetValueMatchingImageProperty(CGMutableImageMetadataRef _Nonnull metadata, CFStringRef _Nonnull dictionaryName, CFStringRef _Nonnull propertyName, CFTypeRef _Nonnull value) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CFDataRef _Nullable CGImageMetadataCreateXMPData (CGImageMetadataRef _Nonnull metadata, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageMetadataRef _Nullable CGImageMetadataCreateFromXMPData (CFDataRef _Nonnull data) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef _Nonnull kCFErrorDomainCGImageMetadata; typedef int32_t CGImageMetadataErrors; enum { kCGImageMetadataErrorUnknown = 0, kCGImageMetadataErrorUnsupportedFormat = 1, kCGImageMetadataErrorBadArgument = 2, kCGImageMetadataErrorConflictingArguments = 3, kCGImageMetadataErrorPrefixConflict = 4, }; typedef int32_t CGImageSourceStatus; enum { kCGImageStatusUnexpectedEOF = -5, kCGImageStatusInvalidData = -4, kCGImageStatusUnknownType = -3, kCGImageStatusReadingHeader = -2, kCGImageStatusIncomplete = -1, kCGImageStatusComplete = 0 }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceTypeIdentifierHint __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceShouldCache __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceShouldCacheImmediately __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceShouldAllowFloat __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceCreateThumbnailFromImageAlways __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceThumbnailMaxPixelSize __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceCreateThumbnailWithTransform __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageSourceSubsampleFactor __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); #pragma clang assume_nonnull end extern "C" __attribute__((visibility("default"))) CFTypeID CGImageSourceGetTypeID (void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nonnull CGImageSourceCopyTypeIdentifiers(void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceRef _Nullable CGImageSourceCreateWithDataProvider(CGDataProviderRef _Nonnull provider, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceRef _Nullable CGImageSourceCreateWithData(CFDataRef _Nonnull data, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceRef _Nullable CGImageSourceCreateWithURL(CFURLRef _Nonnull url, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CFStringRef _Nullable CGImageSourceGetType(CGImageSourceRef _Nonnull isrc) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageSourceGetCount(CGImageSourceRef _Nonnull isrc) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef _Nullable CGImageSourceCopyProperties(CGImageSourceRef _Nonnull isrc, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef _Nullable CGImageSourceCopyPropertiesAtIndex(CGImageSourceRef _Nonnull isrc, size_t index, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageMetadataRef _Nullable CGImageSourceCopyMetadataAtIndex (CGImageSourceRef _Nonnull isrc, size_t index, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageSourceCreateImageAtIndex(CGImageSourceRef _Nonnull isrc, size_t index, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageSourceRemoveCacheAtIndex(CGImageSourceRef _Nonnull isrc, size_t index) __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) CGImageRef _Nullable CGImageSourceCreateThumbnailAtIndex(CGImageSourceRef _Nonnull isrc, size_t index, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceRef _Nonnull CGImageSourceCreateIncremental(CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageSourceUpdateData(CGImageSourceRef _Nonnull isrc, CFDataRef _Nonnull data, bool final) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageSourceUpdateDataProvider(CGImageSourceRef _Nonnull isrc, CGDataProviderRef _Nonnull provider, bool final) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef _Nonnull isrc) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageSourceStatus CGImageSourceGetStatusAtIndex(CGImageSourceRef _Nonnull isrc, size_t index) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) size_t CGImageSourceGetPrimaryImageIndex(CGImageSourceRef _Nonnull isrc) __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) CFDictionaryRef _Nullable CGImageSourceCopyAuxiliaryDataInfoAtIndex(CGImageSourceRef _Nonnull isrc, size_t index, CFStringRef _Nonnull auxiliaryImageDataType ) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); typedef struct __attribute__((objc_bridge(id))) CGImageDestination * CGImageDestinationRef; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationLossyCompressionQuality __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationBackgroundColor __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationImageMaxPixelSize __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationEmbedThumbnail __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationOptimizeColorForSharing __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=9.3))); #pragma clang assume_nonnull end extern "C" __attribute__((visibility("default"))) CFTypeID CGImageDestinationGetTypeID(void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CFArrayRef _Nonnull CGImageDestinationCopyTypeIdentifiers(void) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageDestinationRef _Nullable CGImageDestinationCreateWithDataConsumer(CGDataConsumerRef _Nonnull consumer, CFStringRef _Nonnull type, size_t count, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageDestinationRef _Nullable CGImageDestinationCreateWithData(CFMutableDataRef _Nonnull data, CFStringRef _Nonnull type, size_t count, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) CGImageDestinationRef _Nullable CGImageDestinationCreateWithURL(CFURLRef _Nonnull url, CFStringRef _Nonnull type, size_t count, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageDestinationSetProperties(CGImageDestinationRef _Nonnull idst, CFDictionaryRef _Nullable properties) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageDestinationAddImage(CGImageDestinationRef _Nonnull idst, CGImageRef _Nonnull image, CFDictionaryRef _Nullable properties) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageDestinationAddImageFromSource(CGImageDestinationRef _Nonnull idst, CGImageSourceRef _Nonnull isrc, size_t index, CFDictionaryRef _Nullable properties) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) bool CGImageDestinationFinalize(CGImageDestinationRef _Nonnull idst) __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) void CGImageDestinationAddImageAndMetadata(CGImageDestinationRef _Nonnull idst, CGImageRef _Nonnull image, CGImageMetadataRef _Nullable metadata, CFDictionaryRef _Nullable options) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationMetadata __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationMergeMetadata __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataShouldExcludeXMP __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageMetadataShouldExcludeGPS __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationDateTime __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationOrientation __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageDestinationPreserveGainMap __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.1))); #pragma clang assume_nonnull end extern "C" __attribute__((visibility("default"))) bool CGImageDestinationCopyImageSource(CGImageDestinationRef _Nonnull idst, CGImageSourceRef _Nonnull isrc, CFDictionaryRef _Nullable options, _Nullable CFErrorRef * _Nullable err) __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) void CGImageDestinationAddAuxiliaryDataInfo(CGImageDestinationRef _Nonnull idst, CFStringRef _Nonnull auxiliaryImageDataType, CFDictionaryRef _Nonnull auxiliaryDataInfoDictionary ) __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSDictionary __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyRawDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerMinoltaDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerFujiDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerOlympusDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerPentaxDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageProperty8BIMDictionary __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxDictionary __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyOpenEXRDictionary __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerAppleDictionary __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyFileContentsDictionary __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPDictionary __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTGADictionary __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyFileSize __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPixelHeight __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPixelWidth __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDPIHeight __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDPIWidth __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDepth __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyOrientation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIsFloat __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIsIndexed __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHasAlpha __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyColorModel __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyProfileName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPrimaryImage __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyColorModelRGB __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyColorModelGray __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyColorModelCMYK __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyColorModelLab __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFCompression __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFPhotometricInterpretation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFDocumentName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFImageDescription __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFMake __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFModel __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFOrientation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFXResolution __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFYResolution __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFResolutionUnit __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFSoftware __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFTransferFunction __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFDateTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFArtist __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFHostComputer __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFCopyright __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFWhitePoint __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFPrimaryChromaticities __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFTileWidth __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTIFFTileLength __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFVersion __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFXDensity __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFYDensity __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFDensityUnit __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyJFIFIsProgressive __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSLoopCount __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSDelayTime __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSUnclampedDelayTime __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSCanvasPixelWidth __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSCanvasPixelHeight __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHEICSFrameInfoArray __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifExposureTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFNumber __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifExposureProgram __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSpectralSensitivity __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifISOSpeedRatings __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifOECF __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSensitivityType __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifStandardOutputSensitivity __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifRecommendedExposureIndex __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifISOSpeed __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifISOSpeedLatitudeyyy __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifISOSpeedLatitudezzz __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifVersion __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifDateTimeOriginal __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifDateTimeDigitized __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifOffsetTime __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifOffsetTimeOriginal __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifOffsetTimeDigitized __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifComponentsConfiguration __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifCompressedBitsPerPixel __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifShutterSpeedValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifApertureValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifBrightnessValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifExposureBiasValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifMaxApertureValue __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubjectDistance __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifMeteringMode __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifLightSource __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFlash __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFocalLength __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubjectArea __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifMakerNote __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifUserComment __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubsecTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubsecTimeOriginal __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubsecTimeDigitized __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFlashPixVersion __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifColorSpace __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifPixelXDimension __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifPixelYDimension __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifRelatedSoundFile __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFlashEnergy __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSpatialFrequencyResponse __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFocalPlaneXResolution __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFocalPlaneYResolution __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFocalPlaneResolutionUnit __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubjectLocation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifExposureIndex __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSensingMethod __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFileSource __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSceneType __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifCFAPattern __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifCustomRendered __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifExposureMode __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifWhiteBalance __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifDigitalZoomRatio __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifFocalLenIn35mmFilm __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSceneCaptureType __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifGainControl __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifContrast __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSaturation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSharpness __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifDeviceSettingDescription __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubjectDistRange __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifImageUniqueID __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifCameraOwnerName __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifBodySerialNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifLensSpecification __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifLensMake __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifLensModel __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifLensSerialNumber __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifGamma __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifCompositeImage __attribute__((availability(macos,introduced=10.15.1))) __attribute__((availability(ios,introduced=13.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSourceImageNumberOfCompositeImage __attribute__((availability(macos,introduced=10.15.1))) __attribute__((availability(ios,introduced=13.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSourceExposureTimesOfCompositeImage __attribute__((availability(macos,introduced=10.15.1))) __attribute__((availability(ios,introduced=13.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifSubsecTimeOrginal __attribute__((availability(macos,introduced=10.4,deprecated=10.11,message="No longer supported"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="No longer supported"))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxLensInfo __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxLensModel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxLensID __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxLensSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxImageNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxFlashCompensation __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxOwnerName __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyExifAuxFirmware __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFLoopCount __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFDelayTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFImageColorMap __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFHasGlobalColorMap __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFUnclampedDelayTime __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFCanvasPixelWidth __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFCanvasPixelHeight __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGIFFrameInfoArray __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGAuthor __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGChromaticities __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGComment __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGCopyright __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGCreationTime __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGDescription __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGDisclaimer __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGGamma __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGInterlaceType __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGModificationTime __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGSoftware __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGSource __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGsRGBIntent __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGTitle __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGWarning __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGXPixelsPerMeter __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGYPixelsPerMeter __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGLoopCount __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGDelayTime __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGUnclampedDelayTime __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGFrameInfoArray __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGCanvasPixelWidth __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAPNGCanvasPixelHeight __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPLoopCount __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPDelayTime __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPUnclampedDelayTime __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPFrameInfoArray __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPCanvasPixelWidth __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWebPCanvasPixelHeight __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSVersion __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSLatitudeRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSLatitude __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSLongitudeRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSLongitude __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSAltitudeRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSAltitude __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSTimeStamp __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSSatellites __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSStatus __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSMeasureMode __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDOP __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSSpeedRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSSpeed __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSTrackRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSTrack __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSImgDirectionRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSImgDirection __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSMapDatum __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestLatitudeRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestLatitude __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestLongitudeRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestLongitude __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestBearingRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestBearing __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestDistanceRef __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDestDistance __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSProcessingMethod __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSAreaInformation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDateStamp __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSDifferental __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyGPSHPositioningError __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCObjectTypeReference __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCObjectAttributeReference __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCObjectName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCEditStatus __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCEditorialUpdate __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCUrgency __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCSubjectReference __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCategory __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCSupplementalCategory __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCFixtureIdentifier __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCKeywords __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContentLocationCode __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContentLocationName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCReleaseDate __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCReleaseTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExpirationDate __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExpirationTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCSpecialInstructions __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCActionAdvised __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCReferenceService __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCReferenceDate __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCReferenceNumber __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCDateCreated __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCTimeCreated __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCDigitalCreationDate __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCDigitalCreationTime __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCOriginatingProgram __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCProgramVersion __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCObjectCycle __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCByline __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCBylineTitle __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCity __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCSubLocation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCProvinceState __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationCode __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCountryPrimaryLocationName __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCOriginalTransmissionReference __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCHeadline __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCredit __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCSource __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCopyrightNotice __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContact __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCaptionAbstract __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCWriterEditor __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCImageType __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCImageOrientation __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCLanguageIdentifier __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCStarRating __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCCreatorContactInfo __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCRightsUsageTerms __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCScene __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAboutCvTerm __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAboutCvTermCvId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAboutCvTermId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAboutCvTermName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAboutCvTermRefinedAbout __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAddlModelInfo __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkOrObject __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCircaDateCreated __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkContentDescription __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkContributionDescription __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightNotice __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCreator __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCreatorID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkCopyrightOwnerName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkLicensorID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkLicensorName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkDateCreated __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkPhysicalDescription __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkSource __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkSourceInventoryNo __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkSourceInvURL __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkStylePeriod __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtArtworkTitle __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAudioBitrate __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAudioBitrateMode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtAudioChannelCount __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCircaDateCreated __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContainerFormat __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContainerFormatIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContainerFormatName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContributor __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContributorIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContributorName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtContributorRole __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCopyrightYear __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCreator __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCreatorIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCreatorName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtCreatorRole __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtControlledVocabularyTerm __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreen __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegion __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionD __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionH __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionText __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionUnit __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionW __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionX __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDataOnScreenRegionY __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDigitalImageGUID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDigitalSourceFileType __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDigitalSourceType __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDopesheet __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDopesheetLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtDopesheetLinkLinkQualifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEmbdEncRightsExpr __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExpr __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprType __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEmbeddedEncodedRightsExprLangID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEpisode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEpisodeIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEpisodeName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEpisodeNumber __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtEvent __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtShownEvent __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtShownEventIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtShownEventName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtExternalMetadataLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtFeedIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtGenre __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtGenreCvId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtGenreCvTermId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtGenreCvTermName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtGenreCvTermRefinedAbout __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtHeadline __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtIPTCLastEdited __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLinkedEncRightsExpr __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExpr __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprType __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLinkedEncodedRightsExprLangID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationCreated __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationCity __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationCountryCode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationCountryName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationGPSAltitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationGPSLatitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationGPSLongitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationLocationId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationLocationName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationProvinceState __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationSublocation __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationWorldRegion __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtLocationShown __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtMaxAvailHeight __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtMaxAvailWidth __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtModelAge __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtOrganisationInImageCode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtOrganisationInImageName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonHeard __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonHeardIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonHeardName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImage __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageWDetails __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageCharacteristic __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermCvId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageCvTermRefinedAbout __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageDescription __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPersonInImageName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtProductInImage __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtProductInImageDescription __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtProductInImageGTIN __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtProductInImageName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPublicationEvent __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPublicationEventDate __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPublicationEventIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtPublicationEventName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRating __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRatingRegion __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionCity __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryCode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionCountryName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSAltitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLatitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionGPSLongitude __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionLocationName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionProvinceState __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionSublocation __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingRegionWorldRegion __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingScaleMaxValue __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingScaleMinValue __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingSourceLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingValue __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRatingValueLogoLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRegistryID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRegistryEntryRole __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRegistryItemID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtRegistryOrganisationID __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtReleaseReady __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeason __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeasonIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeasonName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeasonNumber __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeries __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeriesIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSeriesName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtStorylineIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtStreamReady __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtStylePeriod __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSupplyChainSource __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtSupplyChainSourceName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTemporalCoverage __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTemporalCoverageFrom __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTemporalCoverageTo __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTranscript __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTranscriptLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLink __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtTranscriptLinkLinkQualifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoBitrate __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoBitrateMode __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoDisplayAspectRatio __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoEncodingProfile __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoShotType __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoShotTypeIdentifier __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoShotTypeName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVideoStreamsCount __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtVisualColor __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtWorkflowTag __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermId __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermName __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCExtWorkflowTagCvTermRefinedAbout __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoCity __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoCountry __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoAddress __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoPostalCode __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoStateProvince __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoEmails __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoPhones __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyIPTCContactInfoWebURLs __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageProperty8BIMLayerNames __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageProperty8BIMVersion __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGVersion __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBackwardVersion __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGUniqueCameraModel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGLocalizedCameraModel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCameraSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGLensInfo __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBlackLevel __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGWhiteLevel __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCalibrationIlluminant1 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCalibrationIlluminant2 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGColorMatrix1 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGColorMatrix2 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCameraCalibration1 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCameraCalibration2 __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAsShotNeutral __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAsShotWhiteXY __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBaselineExposure __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBaselineNoise __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBaselineSharpness __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPrivateData __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCameraCalibrationSignature __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileCalibrationSignature __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGNoiseProfile __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGWarpRectilinear __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGWarpFisheye __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGFixVignetteRadial __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGActiveArea __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAnalogBalance __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAntiAliasStrength __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAsShotICCProfile __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAsShotPreProfileMatrix __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGAsShotProfileName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBaselineExposureOffset __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBayerGreenSplit __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBestQualityScale __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBlackLevelDeltaH __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBlackLevelDeltaV __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGBlackLevelRepeatDim __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCFALayout __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCFAPlaneColor __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGChromaBlurRadius __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGColorimetricReference __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCurrentICCProfile __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGCurrentPreProfileMatrix __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDefaultBlackRender __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDefaultCropOrigin __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDefaultCropSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDefaultScale __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGDefaultUserCrop __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGExtraCameraProfiles __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGForwardMatrix1 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGForwardMatrix2 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGLinearizationTable __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGLinearResponseLimit __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGMakerNoteSafety __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGMaskedAreas __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGNewRawImageDigest __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGNoiseReductionApplied __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOpcodeList1 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOpcodeList2 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOpcodeList3 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalBestQualityFinalSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalDefaultCropSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalDefaultFinalSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalRawFileData __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalRawFileDigest __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGOriginalRawFileName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewApplicationName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewApplicationVersion __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewColorSpace __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewDateTime __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewSettingsDigest __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGPreviewSettingsName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileCopyright __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileEmbedPolicy __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileHueSatMapData1 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileHueSatMapData2 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileHueSatMapDims __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileHueSatMapEncoding __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileLookTableData __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileLookTableDims __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileLookTableEncoding __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileName __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGProfileToneCurve __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGRawDataUniqueID __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGRawImageDigest __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGRawToPreviewGain __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGReductionMatrix1 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGReductionMatrix2 __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGRowInterleaveFactor __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGShadowScale __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyDNGSubTileBlockSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFDescription __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFFirmware __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFOwnerName __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFImageName __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFImageFileName __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFReleaseMethod __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFReleaseTiming __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFRecordID __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFSelfTimingTime __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFCameraSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFImageSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFContinuousDrive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFFocusMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFMeteringMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFShootingMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFLensModel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFLensMaxMM __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFLensMinMM __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFWhiteBalanceIndex __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFFlashExposureComp __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyCIFFMeasuredEV __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonISOSetting __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonColorMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonQuality __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonWhiteBalanceMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonSharpenMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonFocusMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonFlashSetting __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonISOSelection __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonFlashExposureComp __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonImageAdjustment __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonLensAdapter __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonLensType __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonLensInfo __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonFocusDistance __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonDigitalZoom __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonShootingMode __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonCameraSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerNikonShutterCount __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonOwnerName __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonCameraSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonImageSerialNumber __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonFlashExposureComp __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonContinuousDrive __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonLensModel __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonFirmware __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyMakerCanonAspectRatioInfo __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyOpenEXRAspectRatio __attribute__((availability(macos,introduced=10.9))) __attribute__((availability(ios,introduced=11.3))); typedef uint32_t CGImagePropertyOrientation; enum { kCGImagePropertyOrientationUp = 1, kCGImagePropertyOrientationUpMirrored, kCGImagePropertyOrientationDown, kCGImagePropertyOrientationDownMirrored, kCGImagePropertyOrientationLeftMirrored, kCGImagePropertyOrientationRight, kCGImagePropertyOrientationRightMirrored, kCGImagePropertyOrientationLeft }; extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyTGACompression __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); typedef uint32_t CGImagePropertyTGACompression; enum { kCGImageTGACompressionNone = 0, kCGImageTGACompressionRLE, }; extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPNGCompressionFilter __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeDepth __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeDisparity __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypePortraitEffectsMatte __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkinMatte __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationHairMatte __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationTeethMatte __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationGlassesMatte __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeSemanticSegmentationSkyMatte __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataTypeHDRGainMap __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.1))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataInfoData __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataInfoDataDescription __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAuxiliaryDataInfoMetadata __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyImageCount __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyWidth __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyHeight __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyBytesPerRow __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyNamedColorSpace __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyPixelFormat __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyImages __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyThumbnailImages __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAuxiliaryData __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImagePropertyAuxiliaryDataType __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef OSStatus CGImageAnimationStatus; enum { kCGImageAnimationStatus_ParameterError = -22140, kCGImageAnimationStatus_CorruptInputImage = -22141, kCGImageAnimationStatus_UnsupportedFormat = -22142, kCGImageAnimationStatus_IncompleteInputImage = -22143, kCGImageAnimationStatus_AllocationFailure = -22144 }; extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAnimationStartIndex __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAnimationDelayTime __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) const CFStringRef kCGImageAnimationLoopCount __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); typedef void (*CGImageSourceAnimationBlock)(size_t index, CGImageRef image, bool* stop); extern "C" __attribute__((visibility("default"))) OSStatus CGAnimateImageAtURLWithBlock(CFURLRef url, CFDictionaryRef _Nullable options, CGImageSourceAnimationBlock block) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility("default"))) OSStatus CGAnimateImageDataWithBlock(CFDataRef data, CFDictionaryRef _Nullable options, CGImageSourceAnimationBlock block) __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class CIContext; #ifndef _REWRITER_typedef_CIContext #define _REWRITER_typedef_CIContext typedef struct objc_object CIContext; typedef struct {} _objc_exc_CIContext; #endif #ifndef _REWRITER_typedef_CIFilterShape #define _REWRITER_typedef_CIFilterShape typedef struct objc_object CIFilterShape; typedef struct {} _objc_exc_CIFilterShape; #endif #ifndef _REWRITER_typedef_CIColor #define _REWRITER_typedef_CIColor typedef struct objc_object CIColor; typedef struct {} _objc_exc_CIColor; #endif #ifndef _REWRITER_typedef_CIFilter #define _REWRITER_typedef_CIFilter typedef struct objc_object CIFilter; typedef struct {} _objc_exc_CIFilter; #endif // @class AVDepthData; #ifndef _REWRITER_typedef_AVDepthData #define _REWRITER_typedef_AVDepthData typedef struct objc_object AVDepthData; typedef struct {} _objc_exc_AVDepthData; #endif // @class AVPortraitEffectsMatte; #ifndef _REWRITER_typedef_AVPortraitEffectsMatte #define _REWRITER_typedef_AVPortraitEffectsMatte typedef struct objc_object AVPortraitEffectsMatte; typedef struct {} _objc_exc_AVPortraitEffectsMatte; #endif // @class AVSemanticSegmentationMatte; #ifndef _REWRITER_typedef_AVSemanticSegmentationMatte #define _REWRITER_typedef_AVSemanticSegmentationMatte typedef struct objc_object AVSemanticSegmentationMatte; typedef struct {} _objc_exc_AVSemanticSegmentationMatte; #endif // @protocol MTLTexture; __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIImage #define _REWRITER_typedef_CIImage typedef struct objc_object CIImage; typedef struct {} _objc_exc_CIImage; #endif struct CIImage_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; typedef int CIFormat __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatARGB8 __attribute__((availability(ios,introduced=6_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatBGRA8; extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGBA8; extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatABGR8 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGBAh __attribute__((availability(ios,introduced=6_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGBA16 __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGBAf __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatA8 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatA16 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatAh __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatAf __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatR8 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatR16 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRh __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRf __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRG8 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRG16 __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGh __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatRGf __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatL8 __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatL16 __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLh __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLf __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLA8 __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLA16 __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLAh __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIFormat kCIFormatLAf __attribute__((availability(ios,introduced=10_0))); typedef NSString * CIImageOption __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageColorSpace; extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageToneMapHDRtoSDR __attribute__((availability(ios,introduced=14_1))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageNearestSampling __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageProperties __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageApplyOrientationProperty __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageTextureTarget __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageTextureFormat __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliaryDepth __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliaryDisparity __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliaryPortraitEffectsMatte __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliarySemanticSegmentationSkinMatte __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliarySemanticSegmentationHairMatte __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliarySemanticSegmentationTeethMatte __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliarySemanticSegmentationGlassesMatte __attribute__((availability(ios,introduced=14_1))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageAuxiliarySemanticSegmentationSkyMatte __attribute__((availability(ios,introduced=14_3))); // + (CIImage *)imageWithCGImage:(CGImageRef)image; #if 0 + (CIImage *)imageWithCGImage:(CGImageRef)image options:(nullable NSDictionary<CIImageOption, id> *)options; #endif #if 0 + (CIImage *)imageWithCGImageSource:(CGImageSourceRef)source index:(size_t)index options:(nullable NSDictionary<CIImageOption, id> *)dict __attribute__((availability(ios,introduced=13_0))); #endif // + (CIImage *)imageWithCGLayer:(CGLayerRef)layer __attribute__((availability(ios,unavailable))); #if 0 + (CIImage *)imageWithCGLayer:(CGLayerRef)layer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,unavailable))); #endif #if 0 + (CIImage *)imageWithBitmapData:(NSData *)data bytesPerRow:(size_t)bytesPerRow size:(CGSize)size format:(CIFormat)format colorSpace:(nullable CGColorSpaceRef)colorSpace; #endif #if 0 + (CIImage *)imageWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped colorSpace:(nullable CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=6_0,deprecated=12_0,message="" "Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #endif #if 0 + (CIImage *)imageWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,unavailable))); #endif #if 0 + (nullable CIImage *)imageWithMTLTexture:(id<MTLTexture>)texture options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif // + (nullable CIImage *)imageWithContentsOfURL:(NSURL *)url; #if 0 + (nullable CIImage *)imageWithContentsOfURL:(NSURL *)url options:(nullable NSDictionary<CIImageOption, id> *)options; #endif // + (nullable CIImage *)imageWithData:(NSData *)data; #if 0 + (nullable CIImage *)imageWithData:(NSData *)data options:(nullable NSDictionary<CIImageOption, id> *)options; #endif // + (CIImage *)imageWithCVImageBuffer:(CVImageBufferRef)imageBuffer __attribute__((availability(ios,introduced=9_0))); #if 0 + (CIImage *)imageWithCVImageBuffer:(CVImageBufferRef)imageBuffer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif // + (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer __attribute__((availability(ios,introduced=5_0))); #if 0 + (CIImage *)imageWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // + (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface __attribute__((availability(ios,introduced=5_0))); #if 0 + (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // + (CIImage *)imageWithColor:(CIColor *)color; // + (CIImage *)emptyImage; @property (class, strong, readonly) CIImage *blackImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *whiteImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *grayImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *redImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *greenImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *blueImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *cyanImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *magentaImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *yellowImage __attribute__((availability(ios,introduced=13_0))); @property (class, strong, readonly) CIImage *clearImage __attribute__((availability(ios,introduced=13_0))); // - (instancetype)initWithCGImage:(CGImageRef)image; #if 0 - (instancetype)initWithCGImage:(CGImageRef)image options:(nullable NSDictionary<CIImageOption, id> *)options; #endif #if 0 - (instancetype) initWithCGImageSource:(CGImageSourceRef)source index:(size_t)index options:(nullable NSDictionary<CIImageOption, id> *)dict __attribute__((availability(ios,introduced=13_0))); #endif #if 0 - (instancetype)initWithCGLayer:(CGLayerRef)layer __attribute__((availability(ios,unavailable))); #endif #if 0 - (instancetype)initWithCGLayer:(CGLayerRef)layer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,unavailable))); #endif // - (nullable instancetype)initWithData:(NSData *)data; #if 0 - (nullable instancetype)initWithData:(NSData *)data options:(nullable NSDictionary<CIImageOption, id> *)options; #endif #if 0 - (instancetype)initWithBitmapData:(NSData *)data bytesPerRow:(size_t)bytesPerRow size:(CGSize)size format:(CIFormat)format colorSpace:(nullable CGColorSpaceRef)colorSpace; #endif #if 0 - (instancetype)initWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped colorSpace:(nullable CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=6_0,deprecated=12_0,message="" "Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #endif #if 0 - (instancetype)initWithTexture:(unsigned int)name size:(CGSize)size flipped:(BOOL)flipped options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,unavailable))); #endif #if 0 - (nullable instancetype)initWithMTLTexture:(id<MTLTexture>)texture options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif // - (nullable instancetype)initWithContentsOfURL:(NSURL *)url; #if 0 - (nullable instancetype)initWithContentsOfURL:(NSURL *)url options:(nullable NSDictionary<CIImageOption, id> *)options; #endif // - (instancetype)initWithIOSurface:(IOSurfaceRef)surface __attribute__((availability(ios,introduced=5_0))); #if 0 - (instancetype)initWithIOSurface:(IOSurfaceRef)surface options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // - (instancetype)initWithCVImageBuffer:(CVImageBufferRef)imageBuffer __attribute__((availability(ios,introduced=9_0))); #if 0 - (instancetype)initWithCVImageBuffer:(CVImageBufferRef)imageBuffer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif // - (instancetype)initWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer __attribute__((availability(ios,introduced=5_0))); #if 0 - (instancetype)initWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // - (instancetype)initWithColor:(CIColor *)color; // - (CIImage *)imageByApplyingTransform:(CGAffineTransform)matrix; #if 0 - (CIImage *)imageByApplyingTransform:(CGAffineTransform)matrix highQualityDownsample:(BOOL)highQualityDownsample __attribute__((availability(ios,introduced=10_0))); #endif // - (CIImage *)imageByApplyingOrientation:(int)orientation __attribute__((availability(ios,introduced=8_0))); // - (CGAffineTransform)imageTransformForOrientation:(int)orientation __attribute__((availability(ios,introduced=8_0))); // - (CIImage *)imageByApplyingCGOrientation:(CGImagePropertyOrientation)orientation __attribute__((availability(ios,introduced=11_0))); // - (CGAffineTransform)imageTransformForCGOrientation:(CGImagePropertyOrientation)orientation __attribute__((availability(ios,introduced=11_0))); // - (CIImage *)imageByCompositingOverImage:(CIImage *)dest __attribute__((availability(ios,introduced=8_0))); // - (CIImage *)imageByCroppingToRect:(CGRect)rect; // - (CIImage *)imageByClampingToExtent __attribute__((availability(ios,introduced=8_0))); // - (CIImage *)imageByClampingToRect:(CGRect)rect __attribute__((availability(ios,introduced=10_0))); #if 0 - (CIImage *)imageByApplyingFilter:(NSString *)filterName withInputParameters:(nullable NSDictionary<NSString *,id> *)params __attribute__((availability(ios,introduced=8_0))); #endif // - (CIImage *)imageByApplyingFilter:(NSString *)filterName __attribute__((availability(ios,introduced=11_0))); // - (nullable CIImage *)imageByColorMatchingColorSpaceToWorkingSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // - (nullable CIImage *)imageByColorMatchingWorkingSpaceToColorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageByPremultiplyingAlpha __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageByUnpremultiplyingAlpha __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageBySettingAlphaOneInExtent:(CGRect)extent __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageByApplyingGaussianBlurWithSigma:(double)sigma __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageBySettingProperties:(NSDictionary*)properties __attribute__((availability(ios,introduced=10_0))); // - (CIImage *)imageBySamplingLinear __attribute__((availability(ios,introduced=11_0))); // - (CIImage *)imageBySamplingNearest __attribute__((availability(ios,introduced=11_0))); // - (CIImage *)imageByInsertingIntermediate __attribute__((availability(ios,introduced=12_0))); // - (CIImage *)imageByInsertingIntermediate:(BOOL)cache __attribute__((availability(ios,introduced=12_0))); // @property (nonatomic, readonly) CGRect extent; // @property (atomic, readonly) NSDictionary<NSString *,id> *properties __attribute__((availability(ios,introduced=5_0))); // @property (atomic, readonly) CIFilterShape *definition __attribute__((availability(ios,unavailable))); // @property (atomic, readonly, nullable) NSURL *url __attribute__((availability(ios,introduced=9_0))); // @property (atomic, readonly, nullable) CGColorSpaceRef colorSpace __attribute__((availability(ios,introduced=9_0))) __attribute__((cf_returns_not_retained)); // @property (nonatomic, readonly, nullable) CVPixelBufferRef pixelBuffer __attribute__((availability(ios,introduced=10_0))); // @property (nonatomic, readonly, nullable) CGImageRef CGImage __attribute__((availability(ios,introduced=10_0))); #if 0 - (CGRect)regionOfInterestForImage:(CIImage *)image inRect:(CGRect)rect __attribute__((availability(ios,introduced=6_0))); #endif /* @end */ // @interface CIImage (AutoAdjustment) typedef NSString * CIImageAutoAdjustmentOption __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility("default"))) CIImageAutoAdjustmentOption const kCIImageAutoAdjustEnhance __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) CIImageAutoAdjustmentOption const kCIImageAutoAdjustRedEye __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) CIImageAutoAdjustmentOption const kCIImageAutoAdjustFeatures __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) CIImageAutoAdjustmentOption const kCIImageAutoAdjustCrop __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) CIImageAutoAdjustmentOption const kCIImageAutoAdjustLevel __attribute__((availability(ios,introduced=8_0))); // - (NSArray<CIFilter *> *)autoAdjustmentFilters __attribute__((availability(ios,introduced=5_0))); #if 0 - (NSArray<CIFilter *> *)autoAdjustmentFiltersWithOptions:(nullable NSDictionary<CIImageAutoAdjustmentOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif /* @end */ // @interface CIImage (AVDepthData) // @property (nonatomic, readonly, nullable) AVDepthData *depthData __attribute__((availability(ios,introduced=11_0))); #if 0 -(nullable instancetype) initWithDepthData:(AVDepthData *)data options:(nullable NSDictionary<NSString *,id> *)options __attribute__((availability(ios,introduced=11_0))); #endif // -(nullable instancetype)initWithDepthData:(AVDepthData *)data __attribute__((availability(ios,introduced=11_0))); #if 0 +(nullable instancetype)imageWithDepthData:(AVDepthData *)data options:(nullable NSDictionary<NSString *,id> *)options __attribute__((availability(ios,introduced=11_0))); #endif // +(nullable instancetype)imageWithDepthData:(AVDepthData *)data __attribute__((availability(ios,introduced=11_0))); /* @end */ // @interface CIImage (AVPortraitEffectsMatte) // @property (nonatomic, readonly, nullable) AVPortraitEffectsMatte *portraitEffectsMatte __attribute__((availability(ios,introduced=12_0))); #if 0 -(nullable instancetype) initWithPortaitEffectsMatte:(AVPortraitEffectsMatte *)matte options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=12_0))); #endif // -(nullable instancetype)initWithPortaitEffectsMatte:(AVPortraitEffectsMatte *)matte __attribute__((availability(ios,introduced=11_0))); #if 0 +(nullable instancetype)imageWithPortaitEffectsMatte:(AVPortraitEffectsMatte *)matte options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=12_0))); #endif // +(nullable instancetype)imageWithPortaitEffectsMatte:(AVPortraitEffectsMatte *)matte __attribute__((availability(ios,introduced=12_0))); /* @end */ // @interface CIImage (AVSemanticSegmentationMatte) // @property (nonatomic, readonly, nullable) AVSemanticSegmentationMatte *semanticSegmentationMatte __attribute__((availability(ios,introduced=13_0))); #if 0 -(nullable instancetype)initWithSemanticSegmentationMatte:(AVSemanticSegmentationMatte *)matte options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=13_0))); #endif // -(nullable instancetype)initWithSemanticSegmentationMatte:(AVSemanticSegmentationMatte *)matte __attribute__((availability(ios,introduced=13_0))); #if 0 +(nullable instancetype)imageWithSemanticSegmentationMatte:(AVSemanticSegmentationMatte *)matte options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=13_0))); #endif // +(nullable instancetype)imageWithSemanticSegmentationMatte:(AVSemanticSegmentationMatte *)matte __attribute__((availability(ios,introduced=13_0))); /* @end */ #pragma clang assume_nonnull end typedef NSUInteger EAGLRenderingAPI; enum { kEAGLRenderingAPIOpenGLES1 = 1, kEAGLRenderingAPIOpenGLES2 = 2, kEAGLRenderingAPIOpenGLES3 = 3, }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) void EAGLGetVersion(unsigned int* major, unsigned int* minor) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) #ifndef _REWRITER_typedef_EAGLSharegroup #define _REWRITER_typedef_EAGLSharegroup typedef struct objc_object EAGLSharegroup; typedef struct {} _objc_exc_EAGLSharegroup; #endif struct EAGLSharegroup_IMPL { struct NSObject_IMPL NSObject_IVARS; struct _EAGLSharegroupPrivate *_private; }; // @property (nullable, copy, nonatomic) NSString* debugLabel __attribute__((availability(ios,introduced=6.0))); /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) #ifndef _REWRITER_typedef_EAGLContext #define _REWRITER_typedef_EAGLContext typedef struct objc_object EAGLContext; typedef struct {} _objc_exc_EAGLContext; #endif struct EAGLContext_IMPL { struct NSObject_IMPL NSObject_IVARS; struct _EAGLContextPrivate *_private; }; // - (nullable instancetype) init __attribute__((unavailable)); // - (nullable instancetype) initWithAPI:(EAGLRenderingAPI) api; // - (nullable instancetype) initWithAPI:(EAGLRenderingAPI) api sharegroup:(EAGLSharegroup*) sharegroup __attribute__((objc_designated_initializer)); // + (BOOL) setCurrentContext:(nullable EAGLContext*) context; // + (nullable EAGLContext*) currentContext; // @property (readonly) EAGLRenderingAPI API; // @property (nonnull, readonly) EAGLSharegroup* sharegroup; // @property (nullable, copy, nonatomic) NSString* debugLabel __attribute__((availability(ios,introduced=6.0))); // @property (getter=isMultiThreaded, nonatomic) BOOL multiThreaded __attribute__((availability(ios,introduced=7.1))); /* @end */ #pragma clang assume_nonnull end // @class CIFilter; #ifndef _REWRITER_typedef_CIFilter #define _REWRITER_typedef_CIFilter typedef struct objc_object CIFilter; typedef struct {} _objc_exc_CIFilter; #endif // @protocol MTLDevice, MTLTexture, MTLCommandBuffer, MTLCommandQueue; #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIContext #define _REWRITER_typedef_CIContext typedef struct objc_object CIContext; typedef struct {} _objc_exc_CIContext; #endif struct CIContext_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; typedef NSString * CIContextOption __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextOutputColorSpace; extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextWorkingColorSpace; extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextWorkingFormat __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextHighQualityDownsample __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextOutputPremultiplied __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextCacheIntermediates __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextUseSoftwareRenderer; extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextPriorityRequestLow __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextAllowLowPower __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIContextOption const kCIContextName __attribute__((availability(ios,introduced=12_0))); #if 0 + (CIContext *)contextWithCGContext:(CGContextRef)cgctx options:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif #if 0 + (CIContext *)contextWithOptions:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // + (CIContext *)context __attribute__((availability(ios,introduced=5_0))); #if 0 - (instancetype)initWithOptions:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=5_0))); #endif // - (instancetype)init __attribute__((availability(ios,introduced=5_0))); #if 0 + (CIContext *)contextWithEAGLContext:(EAGLContext *)eaglContext __attribute__((availability(ios,introduced=5_0,deprecated=12_0,message="" "Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #endif #if 0 + (CIContext *)contextWithEAGLContext:(EAGLContext *)eaglContext options:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=5_0,deprecated=12_0,message="" "Core Image OpenGLES API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #endif // + (CIContext *)contextWithMTLDevice:(id<MTLDevice>)device __attribute__((availability(ios,introduced=9_0))); #if 0 + (CIContext *)contextWithMTLDevice:(id<MTLDevice>)device options:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=9_0))); #endif // + (CIContext *)contextWithMTLCommandQueue:(id<MTLCommandQueue>)commandQueue __attribute__((availability(ios,introduced=13_0))); #if 0 + (CIContext *)contextWithMTLCommandQueue:(id<MTLCommandQueue>)commandQueue options:(nullable NSDictionary<CIContextOption, id> *)options __attribute__((availability(ios,introduced=13_0))); #endif // @property (nullable, nonatomic, readonly) CGColorSpaceRef workingColorSpace __attribute__((availability(ios,introduced=9_0))); // @property (nonatomic, readonly) CIFormat workingFormat __attribute__((availability(ios,introduced=9_0))); #if 0 - (void)drawImage:(CIImage *)image atPoint:(CGPoint)atPoint fromRect:(CGRect)fromRect __attribute__((availability(ios,introduced=5_0,deprecated=6_0,message="" ))); #endif #if 0 - (void)drawImage:(CIImage *)image inRect:(CGRect)inRect fromRect:(CGRect)fromRect; #endif #if 0 - (nullable CGLayerRef)createCGLayerWithSize:(CGSize)size info:(nullable CFDictionaryRef)info __attribute__((cf_returns_retained)) __attribute__((availability(ios,unavailable))); #endif #if 0 - (void)render:(CIImage *)image toBitmap:(void *)data rowBytes:(ptrdiff_t)rowBytes bounds:(CGRect)bounds format:(CIFormat)format colorSpace:(nullable CGColorSpaceRef)colorSpace; #endif #if 0 - (void)render:(CIImage *)image toIOSurface:(IOSurfaceRef)surface bounds:(CGRect)bounds colorSpace:(nullable CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=5_0))); #endif #if 0 - (void)render:(CIImage *)image toCVPixelBuffer:(CVPixelBufferRef)buffer __attribute__((availability(ios,introduced=5_0))); #endif #if 0 - (void)render:(CIImage *)image toCVPixelBuffer:(CVPixelBufferRef)buffer bounds:(CGRect)bounds colorSpace:(nullable CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=5_0))); #endif #if 0 - (void)render:(CIImage *)image toMTLTexture:(id<MTLTexture>)texture commandBuffer:(nullable id<MTLCommandBuffer>)commandBuffer bounds:(CGRect)bounds colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=9_0))); #endif // - (void)reclaimResources __attribute__((availability(ios,unavailable))); // - (void)clearCaches __attribute__((availability(ios,introduced=10_0))); // - (CGSize)inputImageMaximumSize __attribute__((availability(ios,introduced=5_0))); // - (CGSize)outputImageMaximumSize __attribute__((availability(ios,introduced=5_0))); /* @end */ // @interface CIContext (createCGImage) #if 0 - (nullable CGImageRef)createCGImage:(CIImage *)image fromRect:(CGRect)fromRect __attribute__((cf_returns_retained)); #endif #if 0 - (nullable CGImageRef)createCGImage:(CIImage *)image fromRect:(CGRect)fromRect format:(CIFormat)format colorSpace:(nullable CGColorSpaceRef)colorSpace __attribute__((cf_returns_retained)); #endif #if 0 - (nullable CGImageRef)createCGImage:(CIImage *)image fromRect:(CGRect)fromRect format:(CIFormat)format colorSpace:(nullable CGColorSpaceRef)colorSpace deferred:(BOOL)deferred __attribute__((cf_returns_retained)) __attribute__((availability(ios,introduced=10_0))); #endif /* @end */ // @interface CIContext (OfflineGPUSupport) // +(unsigned int)offlineGPUCount __attribute__((availability(ios,unavailable))); /* @end */ typedef NSString * CIImageRepresentationOption __attribute__((swift_wrapper(enum))); // @interface CIContext (ImageRepresentation) extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationAVDepthData __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationDepthImage __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationDisparityImage __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationAVPortraitEffectsMatte __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationPortraitEffectsMatteImage __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationAVSemanticSegmentationMattes __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationSemanticSegmentationSkinMatteImage __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationSemanticSegmentationHairMatteImage __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationSemanticSegmentationTeethMatteImage __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationSemanticSegmentationGlassesMatteImage __attribute__((availability(ios,introduced=14_1))); extern "C" __attribute__((visibility("default"))) CIImageRepresentationOption const kCIImageRepresentationSemanticSegmentationSkyMatteImage __attribute__((availability(ios,introduced=14_3))); #if 0 - (nullable NSData*) TIFFRepresentationOfImage:(CIImage*)image format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options __attribute__((availability(ios,introduced=10_0))); #endif #if 0 - (nullable NSData*) JPEGRepresentationOfImage:(CIImage*)image colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options __attribute__((availability(ios,introduced=10_0))); #endif #if 0 - (nullable NSData*) HEIFRepresentationOfImage:(CIImage*)image format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (nullable NSData*) PNGRepresentationOfImage:(CIImage*)image format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (BOOL) writeTIFFRepresentationOfImage:(CIImage*)image toURL:(NSURL*)url format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options error:(NSError **)errorPtr __attribute__((availability(ios,introduced=10_0))); #endif #if 0 - (BOOL) writePNGRepresentationOfImage:(CIImage*)image toURL:(NSURL*)url format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options error:(NSError **)errorPtr __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (BOOL) writeJPEGRepresentationOfImage:(CIImage*)image toURL:(NSURL*)url colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options error:(NSError **)errorPtr __attribute__((availability(ios,introduced=10_0))); #endif #if 0 - (BOOL) writeHEIFRepresentationOfImage:(CIImage*)image toURL:(NSURL*)url format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace options:(NSDictionary<CIImageRepresentationOption, id>*)options error:(NSError **)errorPtr __attribute__((availability(ios,introduced=11_0))); #endif /* @end */ // @interface CIContext (CIDepthBlurEffect) // - (nullable CIFilter *) depthBlurEffectFilterForImageURL:(NSURL *)url options:(nullable NSDictionary *)options __attribute__((availability(ios,introduced=12_0))); // - (nullable CIFilter *) depthBlurEffectFilterForImageData:(NSData *)data options:(nullable NSDictionary *)options __attribute__((availability(ios,introduced=12_0))); #if 0 - (nullable CIFilter *) depthBlurEffectFilterForImage:(CIImage *)image disparityImage:(CIImage *)disparityImage portraitEffectsMatte:(nullable CIImage *)portraitEffectsMatte orientation:(CGImagePropertyOrientation)orientation options:(nullable NSDictionary *)options __attribute__((availability(ios,introduced=12_0))); #endif #if 0 - (nullable CIFilter *) depthBlurEffectFilterForImage:(CIImage *)image disparityImage:(CIImage *)disparityImage portraitEffectsMatte:(nullable CIImage *)portraitEffectsMatte hairSemanticSegmentation:(nullable CIImage *)hairSemanticSegmentation orientation:(CGImagePropertyOrientation)orientation options:(nullable NSDictionary *)options __attribute__((availability(ios,introduced=13_0))); #endif #if 0 - (nullable CIFilter *) depthBlurEffectFilterForImage:(CIImage *)image disparityImage:(CIImage *)disparityImage portraitEffectsMatte:(nullable CIImage *)portraitEffectsMatte hairSemanticSegmentation:(nullable CIImage *)hairSemanticSegmentation glassesMatte:(nullable CIImage *)glassesMatte gainMap:(nullable CIImage *)gainMap orientation:(CGImagePropertyOrientation)orientation options:(nullable NSDictionary *)options __attribute__((availability(ios,introduced=14_1))); #endif /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif // @class CIFilter; #ifndef _REWRITER_typedef_CIFilter #define _REWRITER_typedef_CIFilter typedef struct objc_object CIFilter; typedef struct {} _objc_exc_CIFilter; #endif #pragma clang assume_nonnull begin // @protocol CIFilterConstructor // - (nullable CIFilter *)filterWithName:(NSString *)name; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeFilterName; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeFilterDisplayName; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeDescription __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeFilterAvailable_Mac __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeFilterAvailable_iOS __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeReferenceDocumentation __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeFilterCategories; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeClass; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeType; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeMin; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeMax; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeSliderMin; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeSliderMax; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeDefault; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeIdentity; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeName; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeDisplayName; extern "C" __attribute__((visibility("default"))) NSString * const kCIUIParameterSet __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIUISetBasic __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIUISetIntermediate __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIUISetAdvanced __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIUISetDevelopment __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeTime; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeScalar; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeDistance; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeAngle; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeBoolean; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeInteger __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeCount __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypePosition; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeOffset; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypePosition3; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeRectangle; extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeOpaqueColor __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeColor __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeGradient __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeImage __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIAttributeTypeTransform __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryDistortionEffect; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryGeometryAdjustment; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryCompositeOperation; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryHalftoneEffect; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryColorAdjustment; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryColorEffect; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryTransition; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryTileEffect; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryGenerator; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryReduction __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryGradient; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryStylize; extern "C" __attribute__((visibility("default"))) NSString * const kCICategorySharpen; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryBlur; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryVideo; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryStillImage; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryInterlaced; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryNonSquarePixels; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryHighDynamicRange; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryBuiltIn; extern "C" __attribute__((visibility("default"))) NSString * const kCICategoryFilterGenerator __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIApplyOptionExtent __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString * const kCIApplyOptionDefinition __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString * const kCIApplyOptionUserInfo __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString * const kCIApplyOptionColorSpace __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString * const kCIOutputImageKey __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputBackgroundImageKey __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputImageKey __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputDepthImageKey __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputDisparityImageKey __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputAmountKey __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputTimeKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputTransformKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputScaleKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputAspectRatioKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputCenterKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputRadiusKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputAngleKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputRefractionKey __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputWidthKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputSharpnessKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputIntensityKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputEVKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputSaturationKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputColorKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputBrightnessKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputContrastKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputBiasKey __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputWeightsKey __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputGradientImageKey __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputMaskImageKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputMatteImageKey __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputShadingImageKey __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputTargetImageKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputExtentKey __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString * const kCIInputVersionKey __attribute__((availability(ios,introduced=6_0))); // @class CIKernel; #ifndef _REWRITER_typedef_CIKernel #define _REWRITER_typedef_CIKernel typedef struct objc_object CIKernel; typedef struct {} _objc_exc_CIKernel; #endif #ifndef _REWRITER_typedef_CIImage #define _REWRITER_typedef_CIImage typedef struct objc_object CIImage; typedef struct {} _objc_exc_CIImage; #endif // @protocol CIFilterConstructor; __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIFilter #define _REWRITER_typedef_CIFilter typedef struct objc_object CIFilter; typedef struct {} _objc_exc_CIFilter; #endif struct CIFilter_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv[8]; }; // @property (readonly, nonatomic, nullable) CIImage *outputImage __attribute__((availability(ios,introduced=5_0))); // @property (nonatomic, copy) NSString *name; // - (NSString *)name __attribute__((availability(ios,introduced=5_0))); // - (void)setName:(NSString *)aString __attribute__((availability(ios,introduced=10_0))); // @property (getter=isEnabled) BOOL enabled __attribute__((availability(ios,unavailable))); // @property (nonatomic, readonly) NSArray<NSString *> *inputKeys; // @property (nonatomic, readonly) NSArray<NSString *> *outputKeys; // - (void)setDefaults; // @property (nonatomic, readonly) NSDictionary<NSString *,id> *attributes; #if 0 - (nullable CIImage *)apply:(CIKernel *)k arguments:(nullable NSArray *)args options:(nullable NSDictionary<NSString *,id> *)dict __attribute__((availability(ios,unavailable))); #endif // - (nullable CIImage *)apply:(CIKernel *)k, ... __attribute__((sentinel(0,1))) __attribute__((availability(ios,unavailable))) __attribute__((availability(swift, unavailable, message=""))); /* @end */ // @protocol CIFilter // @property (readonly, nonatomic, nullable) CIImage *outputImage; /* @optional */ // + (nullable NSDictionary<NSString *,id>*) customAttributes; /* @end */ // @interface CIFilter (CIFilterRegistry) // + (nullable CIFilter *) filterWithName:(NSString *) name; #if 0 + (nullable CIFilter *)filterWithName:(NSString *)name keysAndValues:key0, ... __attribute__((sentinel(0,1))) __attribute__((availability(swift, unavailable, message=""))); #endif #if 0 + (nullable CIFilter *)filterWithName:(NSString *)name withInputParameters:(nullable NSDictionary<NSString *,id> *)params __attribute__((availability(ios,introduced=8_0))); #endif // + (NSArray<NSString *> *)filterNamesInCategory:(nullable NSString *)category; // + (NSArray<NSString *> *)filterNamesInCategories:(nullable NSArray<NSString *> *)categories; #if 0 + (void)registerFilterName:(NSString *)name constructor:(id<CIFilterConstructor>)anObject classAttributes:(NSDictionary<NSString *,id> *)attributes __attribute__((availability(ios,introduced=9_0))); #endif // + (nullable NSString *)localizedNameForFilterName:(NSString *)filterName __attribute__((availability(ios,introduced=9_0))); // + (NSString *)localizedNameForCategory:(NSString *)category __attribute__((availability(ios,introduced=9_0))); // + (nullable NSString *)localizedDescriptionForFilterName:(NSString *)filterName __attribute__((availability(ios,introduced=9_0))); // + (nullable NSURL *)localizedReferenceDocumentationForFilterName:(NSString *)filterName __attribute__((availability(ios,introduced=9_0))); /* @end */ // @interface CIFilter (CIFilterXMPSerialization) #if 0 + (nullable NSData*)serializedXMPFromFilters:(NSArray<CIFilter *> *)filters inputImageExtent:(CGRect)extent __attribute__((availability(ios,introduced=6_0))); #endif #if 0 + (NSArray<CIFilter *> *)filterArrayFromSerializedXMP:(NSData *)xmpData inputImageExtent:(CGRect)extent error:(NSError **)outError __attribute__((availability(ios,introduced=6_0))); #endif /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef CGRect (*CIKernelROICallback)(int index, CGRect destRect); // @class CIImage; #ifndef _REWRITER_typedef_CIImage #define _REWRITER_typedef_CIImage typedef struct objc_object CIImage; typedef struct {} _objc_exc_CIImage; #endif __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=8_0))) #ifndef _REWRITER_typedef_CIKernel #define _REWRITER_typedef_CIKernel typedef struct objc_object CIKernel; typedef struct {} _objc_exc_CIKernel; #endif struct CIKernel_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // + (nullable NSArray<CIKernel *> *)kernelsWithString:(NSString *)string __attribute__((availability(ios,introduced=8_0,deprecated=12_0,message="" "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); // + (nullable instancetype)kernelWithString:(NSString *)string __attribute__((availability(ios,introduced=8_0,deprecated=12_0,message="" "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #if 0 + (nullable instancetype)kernelWithFunctionName:(NSString *)name fromMetalLibraryData:(NSData *)data error:(NSError **)error __attribute__((availability(ios,introduced=11_0))); #endif #if 0 + (nullable instancetype)kernelWithFunctionName:(NSString *)name fromMetalLibraryData:(NSData *)data outputPixelFormat:(CIFormat)format error:(NSError **)error __attribute__((availability(ios,introduced=11_0))); #endif // + (NSArray<NSString *> *)kernelNamesFromMetalLibraryData:(NSData *)data __attribute__((availability(ios,introduced=14_0))); // @property (atomic, readonly) NSString *name __attribute__((availability(ios,introduced=8_0))); // - (void)setROISelector:(SEL)method __attribute__((availability(ios,introduced=9_0))); #if 0 - (nullable CIImage *)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback)callback arguments:(nullable NSArray<id> *)args __attribute__((availability(ios,introduced=8_0))); #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=8_0))) #ifndef _REWRITER_typedef_CIColorKernel #define _REWRITER_typedef_CIColorKernel typedef struct objc_object CIColorKernel; typedef struct {} _objc_exc_CIColorKernel; #endif struct CIColorKernel_IMPL { struct CIKernel_IMPL CIKernel_IVARS; }; // + (nullable instancetype)kernelWithString:(NSString *)string __attribute__((availability(ios,introduced=8_0,deprecated=12_0,message="" "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #if 0 - (nullable CIImage *)applyWithExtent:(CGRect)extent arguments:(nullable NSArray<id> *)args; #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=8_0))) #ifndef _REWRITER_typedef_CIWarpKernel #define _REWRITER_typedef_CIWarpKernel typedef struct objc_object CIWarpKernel; typedef struct {} _objc_exc_CIWarpKernel; #endif struct CIWarpKernel_IMPL { struct CIKernel_IMPL CIKernel_IVARS; }; // + (nullable instancetype)kernelWithString:(NSString *)string __attribute__((availability(ios,introduced=8_0,deprecated=12_0,message="" "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #if 0 - (nullable CIImage *)applyWithExtent:(CGRect)extent roiCallback:(CIKernelROICallback)callback inputImage:(CIImage*)image arguments:(nullable NSArray<id> *)args; #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIBlendKernel #define _REWRITER_typedef_CIBlendKernel typedef struct objc_object CIBlendKernel; typedef struct {} _objc_exc_CIBlendKernel; #endif struct CIBlendKernel_IMPL { struct CIColorKernel_IMPL CIColorKernel_IVARS; }; // + (nullable instancetype)kernelWithString:(NSString *)string __attribute__((availability(ios,introduced=8_0,deprecated=12_0,message="" "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"))); #if 0 - (nullable CIImage *)applyWithForeground:(CIImage*)foreground background:(CIImage*)background; #endif #if 0 - (nullable CIImage *)applyWithForeground:(CIImage*)foreground background:(CIImage*)background colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=13_0))); #endif /* @end */ // @interface CIBlendKernel (BuiltIn) @property (class, strong, readonly) CIBlendKernel *componentAdd; @property (class, strong, readonly) CIBlendKernel *componentMultiply; @property (class, strong, readonly) CIBlendKernel *componentMin; @property (class, strong, readonly) CIBlendKernel *componentMax; @property (class, strong, readonly) CIBlendKernel *clear; @property (class, strong, readonly) CIBlendKernel *source; @property (class, strong, readonly) CIBlendKernel *destination; @property (class, strong, readonly) CIBlendKernel *sourceOver; @property (class, strong, readonly) CIBlendKernel *destinationOver; @property (class, strong, readonly) CIBlendKernel *sourceIn; @property (class, strong, readonly) CIBlendKernel *destinationIn; @property (class, strong, readonly) CIBlendKernel *sourceOut; @property (class, strong, readonly) CIBlendKernel *destinationOut; @property (class, strong, readonly) CIBlendKernel *sourceAtop; @property (class, strong, readonly) CIBlendKernel *destinationAtop; @property (class, strong, readonly) CIBlendKernel *exclusiveOr; @property (class, strong, readonly) CIBlendKernel *multiply; @property (class, strong, readonly) CIBlendKernel *screen; @property (class, strong, readonly) CIBlendKernel *overlay; @property (class, strong, readonly) CIBlendKernel *darken; @property (class, strong, readonly) CIBlendKernel *lighten; @property (class, strong, readonly) CIBlendKernel *colorDodge; @property (class, strong, readonly) CIBlendKernel *colorBurn; @property (class, strong, readonly) CIBlendKernel *hardLight; @property (class, strong, readonly) CIBlendKernel *softLight; @property (class, strong, readonly) CIBlendKernel *difference; @property (class, strong, readonly) CIBlendKernel *exclusion; @property (class, strong, readonly) CIBlendKernel *hue; @property (class, strong, readonly) CIBlendKernel *saturation; @property (class, strong, readonly) CIBlendKernel *color; @property (class, strong, readonly) CIBlendKernel *luminosity; @property (class, strong, readonly) CIBlendKernel *subtract; @property (class, strong, readonly) CIBlendKernel *divide; @property (class, strong, readonly) CIBlendKernel *linearBurn; @property (class, strong, readonly) CIBlendKernel *linearDodge; @property (class, strong, readonly) CIBlendKernel *vividLight; @property (class, strong, readonly) CIBlendKernel *linearLight; @property (class, strong, readonly) CIBlendKernel *pinLight; @property (class, strong, readonly) CIBlendKernel *hardMix; @property (class, strong, readonly) CIBlendKernel *darkerColor; @property (class, strong, readonly) CIBlendKernel *lighterColor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class CIImage; #ifndef _REWRITER_typedef_CIImage #define _REWRITER_typedef_CIImage typedef struct objc_object CIImage; typedef struct {} _objc_exc_CIImage; #endif // @class CIContext; #ifndef _REWRITER_typedef_CIContext #define _REWRITER_typedef_CIContext typedef struct objc_object CIContext; typedef struct {} _objc_exc_CIContext; #endif // @class CIFeature; #ifndef _REWRITER_typedef_CIFeature #define _REWRITER_typedef_CIFeature typedef struct objc_object CIFeature; typedef struct {} _objc_exc_CIFeature; #endif __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIDetector #define _REWRITER_typedef_CIDetector typedef struct objc_object CIDetector; typedef struct {} _objc_exc_CIDetector; #endif struct CIDetector_IMPL { struct NSObject_IMPL NSObject_IVARS; }; #if 0 + (nullable CIDetector *)detectorOfType:(NSString*)type context:(nullable CIContext *)context options:(nullable NSDictionary<NSString *,id> *)options __attribute__((availability(ios,introduced=5_0))); #endif #if 0 - (NSArray<CIFeature *> *)featuresInImage:(CIImage *)image __attribute__((availability(ios,introduced=5_0))); #endif #if 0 - (NSArray<CIFeature *> *)featuresInImage:(CIImage *)image options:(nullable NSDictionary<NSString *,id> *)options __attribute__((availability(ios,introduced=5_0))); #endif /* @end */ extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorTypeFace __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorTypeRectangle __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorTypeQRCode __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorTypeText __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorAccuracy __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorAccuracyLow __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorAccuracyHigh __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorTracking __attribute__((availability(ios,introduced=6_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorMinFeatureSize __attribute__((availability(ios,introduced=6_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorMaxFeatureCount __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorNumberOfAngles __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const CIDetectorImageOrientation __attribute__((availability(ios,introduced=5_0))); extern "C" __attribute__((visibility("default"))) NSString *const CIDetectorEyeBlink __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString *const CIDetectorSmile __attribute__((availability(ios,introduced=7_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorFocalLength __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorAspectRatio __attribute__((availability(ios,introduced=8_0))); extern "C" __attribute__((visibility("default"))) NSString* const CIDetectorReturnSubFeatures __attribute__((availability(ios,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIFeature #define _REWRITER_typedef_CIFeature typedef struct objc_object CIFeature; typedef struct {} _objc_exc_CIFeature; #endif struct CIFeature_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly, retain) NSString *type; // @property (readonly, assign) CGRect bounds; /* @end */ extern "C" __attribute__((visibility("default"))) NSString* const CIFeatureTypeFace; extern "C" __attribute__((visibility("default"))) NSString* const CIFeatureTypeRectangle; extern "C" __attribute__((visibility("default"))) NSString* const CIFeatureTypeQRCode; extern "C" __attribute__((visibility("default"))) NSString* const CIFeatureTypeText; __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=5_0))) #ifndef _REWRITER_typedef_CIFaceFeature #define _REWRITER_typedef_CIFaceFeature typedef struct objc_object CIFaceFeature; typedef struct {} _objc_exc_CIFaceFeature; #endif struct CIFaceFeature_IMPL { struct CIFeature_IMPL CIFeature_IVARS; CGRect bounds; BOOL hasLeftEyePosition; CGPoint leftEyePosition; BOOL hasRightEyePosition; CGPoint rightEyePosition; BOOL hasMouthPosition; CGPoint mouthPosition; BOOL hasTrackingID; int trackingID; BOOL hasTrackingFrameCount; int trackingFrameCount; BOOL hasFaceAngle; float faceAngle; BOOL hasSmile; BOOL leftEyeClosed; BOOL rightEyeClosed; }; // @property (readonly, assign) CGRect bounds; // @property (readonly, assign) BOOL hasLeftEyePosition; // @property (readonly, assign) CGPoint leftEyePosition; // @property (readonly, assign) BOOL hasRightEyePosition; // @property (readonly, assign) CGPoint rightEyePosition; // @property (readonly, assign) BOOL hasMouthPosition; // @property (readonly, assign) CGPoint mouthPosition; // @property (readonly, assign) BOOL hasTrackingID; // @property (readonly, assign) int trackingID; // @property (readonly, assign) BOOL hasTrackingFrameCount; // @property (readonly, assign) int trackingFrameCount; // @property (readonly, assign) BOOL hasFaceAngle; // @property (readonly, assign) float faceAngle; // @property (readonly, assign) BOOL hasSmile; // @property (readonly, assign) BOOL leftEyeClosed; // @property (readonly, assign) BOOL rightEyeClosed; /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=8_0))) #ifndef _REWRITER_typedef_CIRectangleFeature #define _REWRITER_typedef_CIRectangleFeature typedef struct objc_object CIRectangleFeature; typedef struct {} _objc_exc_CIRectangleFeature; #endif struct CIRectangleFeature_IMPL { struct CIFeature_IMPL CIFeature_IVARS; CGRect bounds; CGPoint topLeft; CGPoint topRight; CGPoint bottomLeft; CGPoint bottomRight; }; // @property (readonly) CGRect bounds; // @property (readonly) CGPoint topLeft; // @property (readonly) CGPoint topRight; // @property (readonly) CGPoint bottomLeft; // @property (readonly) CGPoint bottomRight; /* @end */ // @class CIQRCodeDescriptor; #ifndef _REWRITER_typedef_CIQRCodeDescriptor #define _REWRITER_typedef_CIQRCodeDescriptor typedef struct objc_object CIQRCodeDescriptor; typedef struct {} _objc_exc_CIQRCodeDescriptor; #endif __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=8_0))) #ifndef _REWRITER_typedef_CIQRCodeFeature #define _REWRITER_typedef_CIQRCodeFeature typedef struct objc_object CIQRCodeFeature; typedef struct {} _objc_exc_CIQRCodeFeature; #endif struct CIQRCodeFeature_IMPL { struct CIFeature_IMPL CIFeature_IVARS; CGRect bounds; CGPoint topLeft; CGPoint topRight; CGPoint bottomLeft; CGPoint bottomRight; CIQRCodeDescriptor *symbolDescriptor; }; // @property (readonly) CGRect bounds; // @property (readonly) CGPoint topLeft; // @property (readonly) CGPoint topRight; // @property (readonly) CGPoint bottomLeft; // @property (readonly) CGPoint bottomRight; // @property (nullable, readonly) NSString* messageString; // @property (nullable, readonly) CIQRCodeDescriptor *symbolDescriptor __attribute__((availability(ios,introduced=11_0))); /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0))) #ifndef _REWRITER_typedef_CITextFeature #define _REWRITER_typedef_CITextFeature typedef struct objc_object CITextFeature; typedef struct {} _objc_exc_CITextFeature; #endif struct CITextFeature_IMPL { struct CIFeature_IMPL CIFeature_IVARS; }; // @property (readonly) CGRect bounds; // @property (readonly) CGPoint topLeft; // @property (readonly) CGPoint topRight; // @property (readonly) CGPoint bottomLeft; // @property (readonly) CGPoint bottomRight; // @property (nullable, readonly) NSArray *subFeatures; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface CIImage (CIImageProvider) #if 0 + (CIImage *)imageWithImageProvider:(id)p size:(size_t)width :(size_t)height format:(CIFormat)f colorSpace:(nullable CGColorSpaceRef)cs options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=9_0))); #endif #if 0 - (instancetype)initWithImageProvider:(id)p size:(size_t)width :(size_t)height format:(CIFormat)f colorSpace:(nullable CGColorSpaceRef)cs options:(nullable NSDictionary<CIImageOption,id> *)options __attribute__((availability(ios,introduced=9_0))); #endif /* @end */ // @interface NSObject (CIImageProvider) #if 0 - (void)provideImageData:(void *)data bytesPerRow:(size_t)rowbytes origin:(size_t)x :(size_t)y size:(size_t)width :(size_t)height userInfo:(nullable id)info; #endif /* @end */ extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageProviderTileSize __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) CIImageOption const kCIImageProviderUserInfo __attribute__((availability(ios,introduced=9_0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol MTLTexture, MTLCommandBuffer; // @protocol CIImageProcessorInput; // @protocol CIImageProcessorOutput; __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=10_0))) #ifndef _REWRITER_typedef_CIImageProcessorKernel #define _REWRITER_typedef_CIImageProcessorKernel typedef struct objc_object CIImageProcessorKernel; typedef struct {} _objc_exc_CIImageProcessorKernel; #endif struct CIImageProcessorKernel_IMPL { struct NSObject_IMPL NSObject_IVARS; }; #if 0 + (BOOL)processWithInputs:(nullable NSArray<id<CIImageProcessorInput>> *)inputs arguments:(nullable NSDictionary<NSString*,id> *)arguments output:(id <CIImageProcessorOutput>)output error:(NSError **)error; #endif #if 0 + (CGRect)roiForInput:(int)input arguments:(nullable NSDictionary<NSString*,id> *)arguments outputRect:(CGRect)outputRect; #endif // + (CIFormat)formatForInputAtIndex:(int)input; @property (class, readonly) CIFormat outputFormat; @property (class, readonly) bool outputIsOpaque __attribute__((availability(ios,introduced=11_0))); @property (class, readonly) bool synchronizeInputs; #if 0 + (nullable CIImage *)applyWithExtent:(CGRect)extent inputs:(nullable NSArray<CIImage*> *)inputs arguments:(nullable NSDictionary<NSString*,id> *)args error:(NSError **)error; #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=10_0))) // @protocol CIImageProcessorInput // @property (nonatomic, readonly) CGRect region; // @property (nonatomic, readonly) size_t bytesPerRow; // @property (nonatomic, readonly) CIFormat format; // @property (readonly, nonatomic) const void *baseAddress __attribute__((objc_returns_inner_pointer)); // @property (nonatomic, readonly) IOSurfaceRef surface; // @property (nonatomic, readonly, nullable) CVPixelBufferRef pixelBuffer; // @property (nonatomic, readonly, nullable) id<MTLTexture> metalTexture; /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=10_0))) // @protocol CIImageProcessorOutput // @property (nonatomic, readonly) CGRect region; // @property (nonatomic, readonly) size_t bytesPerRow; // @property (nonatomic, readonly) CIFormat format; // @property (readonly, nonatomic) void *baseAddress __attribute__((objc_returns_inner_pointer)); // @property (nonatomic, readonly) IOSurfaceRef surface; // @property (nonatomic, readonly, nullable) CVPixelBufferRef pixelBuffer; // @property (nonatomic, readonly, nullable) id<MTLTexture> metalTexture; // @property (nonatomic, readonly, nullable) id<MTLCommandBuffer> metalCommandBuffer; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0))) #ifndef _REWRITER_typedef_CIImageAccumulator #define _REWRITER_typedef_CIImageAccumulator typedef struct objc_object CIImageAccumulator; typedef struct {} _objc_exc_CIImageAccumulator; #endif struct CIImageAccumulator_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_state; }; #if 0 + (nullable instancetype)imageAccumulatorWithExtent:(CGRect)extent format:(CIFormat)format; #endif #if 0 + (nullable instancetype)imageAccumulatorWithExtent:(CGRect)extent format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=9_0))); #endif #if 0 - (nullable instancetype)initWithExtent:(CGRect)extent format:(CIFormat)format; #endif #if 0 - (nullable instancetype)initWithExtent:(CGRect)extent format:(CIFormat)format colorSpace:(CGColorSpaceRef)colorSpace __attribute__((availability(ios,introduced=9_0))); #endif // @property (readonly) CGRect extent; // @property (readonly) CIFormat format; // - (CIImage *)image; // - (void)setImage:(CIImage *)image; // - (void)setImage:(CIImage *)image dirtyRect:(CGRect)dirtyRect; // - (void)clear; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0))) #ifndef _REWRITER_typedef_CIFilterShape #define _REWRITER_typedef_CIFilterShape typedef struct objc_object CIFilterShape; typedef struct {} _objc_exc_CIFilterShape; #endif struct CIFilterShape_IMPL { struct NSObject_IMPL NSObject_IVARS; uint32_t _pad; void *_priv; }; // + (instancetype)shapeWithRect:(CGRect)r; // - (instancetype)initWithRect:(CGRect)r; // - (CIFilterShape *)transformBy:(CGAffineTransform)m interior:(BOOL)flag; // - (CIFilterShape *)insetByX:(int)dx Y:(int)dy; // - (CIFilterShape *)unionWith:(CIFilterShape *)s2; // - (CIFilterShape *)unionWithRect:(CGRect)r; // - (CIFilterShape *)intersectWith:(CIFilterShape *)s2; // - (CIFilterShape *)intersectWithRect:(CGRect)r; // @property (readonly) CGRect extent; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class CIFilterShape; #ifndef _REWRITER_typedef_CIFilterShape #define _REWRITER_typedef_CIFilterShape typedef struct objc_object CIFilterShape; typedef struct {} _objc_exc_CIFilterShape; #endif #ifndef _REWRITER_typedef_CIImage #define _REWRITER_typedef_CIImage typedef struct objc_object CIImage; typedef struct {} _objc_exc_CIImage; #endif __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0))) #ifndef _REWRITER_typedef_CISampler #define _REWRITER_typedef_CISampler typedef struct objc_object CISampler; typedef struct {} _objc_exc_CISampler; #endif struct CISampler_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // + (instancetype)samplerWithImage:(CIImage *)im; // + (instancetype)samplerWithImage:(CIImage *)im keysAndValues:key0, ... __attribute__((sentinel(0,1))); // + (instancetype)samplerWithImage:(CIImage *)im options:(nullable NSDictionary *)dict; // - (instancetype)initWithImage:(CIImage *)im; // - (instancetype)initWithImage:(CIImage *)im keysAndValues:key0, ...; // - (instancetype)initWithImage:(CIImage *)im options:(nullable NSDictionary *)dict __attribute__((objc_designated_initializer)); // @property (readonly) CIFilterShape * definition; // @property (readonly) CGRect extent; /* @end */ extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerAffineMatrix __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerWrapMode __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerFilterMode __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerWrapBlack __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerWrapClamp __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerFilterNearest __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerFilterLinear __attribute__((availability(ios,introduced=9_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCISamplerColorSpace __attribute__((availability(ios,introduced=9_0))); #pragma clang assume_nonnull end // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class NSData; #ifndef _REWRITER_typedef_NSData #define _REWRITER_typedef_NSData typedef struct objc_object NSData; typedef struct {} _objc_exc_NSData; #endif typedef NSString * CIRAWFilterOption __attribute__((swift_wrapper(enum))); // @interface CIFilter (CIRAWFilter) // + (CIFilter *)filterWithImageURL:(NSURL *)url options:(NSDictionary<CIRAWFilterOption, id> *)options __attribute__((availability(ios,introduced=10_0))); // + (CIFilter *)filterWithImageData:(NSData *)data options:(NSDictionary<CIRAWFilterOption, id> *)options __attribute__((availability(ios,introduced=10_0))); // + (CIFilter *)filterWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer properties:(NSDictionary *)properties options:(NSDictionary<CIRAWFilterOption, id> *)options __attribute__((availability(ios,introduced=10_0))); // + (NSArray<NSString*> *) supportedRawCameraModels __attribute__((availability(ios,introduced=13_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputAllowDraftModeKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputDecoderVersionKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCISupportedDecoderVersionsKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputBaselineExposureKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputBoostKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputBoostShadowAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputDisableGamutMapKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNeutralChromaticityXKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNeutralChromaticityYKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNeutralTemperatureKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNeutralTintKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNeutralLocationKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputScaleFactorKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputIgnoreImageOrientationKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputImageOrientationKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputEnableSharpeningKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputEnableChromaticNoiseTrackingKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNoiseReductionAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputMoireAmountKey __attribute__((availability(ios,introduced=11_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputEnableVendorLensCorrectionKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputLuminanceNoiseReductionAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputColorNoiseReductionAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNoiseReductionSharpnessAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNoiseReductionContrastAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputNoiseReductionDetailAmountKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) NSString *const kCIInputEnableEDRModeKey __attribute__((availability(ios,introduced=12_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputLocalToneMapAmountKey __attribute__((availability(ios,introduced=14_3))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIInputLinearSpaceFilter __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIOutputNativeSizeKey __attribute__((availability(ios,introduced=10_0))); extern "C" __attribute__((visibility("default"))) CIRAWFilterOption const kCIActiveKeys __attribute__((availability(ios,introduced=10_0))); /* @end */ #pragma clang assume_nonnull begin typedef NSString *IOSurfacePropertyKey __attribute__((swift_wrapper(enum))); extern IOSurfacePropertyKey IOSurfacePropertyKeyAllocSize __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyWidth __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyHeight __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyBytesPerRow __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyBytesPerElement __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyElementWidth __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyElementHeight __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyOffset __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneInfo __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneWidth __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneHeight __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneBytesPerRow __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneOffset __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneSize __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneBase __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneBytesPerElement __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneElementWidth __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPlaneElementHeight __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyCacheMode __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPixelFormat __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); extern IOSurfacePropertyKey IOSurfacePropertyKeyPixelSizeCastingAllowed __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))) #ifndef _REWRITER_typedef_IOSurface #define _REWRITER_typedef_IOSurface typedef struct objc_object IOSurface; typedef struct {} _objc_exc_IOSurface; #endif struct IOSurface_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_impl; }; // - (nullable instancetype)initWithProperties:(NSDictionary <IOSurfacePropertyKey, id> *)properties; // - (kern_return_t)lockWithOptions:(IOSurfaceLockOptions)options seed:(nullable uint32_t *)seed; // - (kern_return_t)unlockWithOptions:(IOSurfaceLockOptions)options seed:(nullable uint32_t *)seed; // @property (readonly) NSInteger allocationSize; // @property (readonly) NSInteger width; // @property (readonly) NSInteger height; // @property (readonly) void *baseAddress __attribute__((objc_returns_inner_pointer)); // @property (readonly) OSType pixelFormat; // @property (readonly) NSInteger bytesPerRow; // @property (readonly) NSInteger bytesPerElement; // @property (readonly) NSInteger elementWidth; // @property (readonly) NSInteger elementHeight; // @property (readonly) uint32_t seed; // @property (readonly) NSUInteger planeCount; // - (NSInteger)widthOfPlaneAtIndex:(NSUInteger)planeIndex; // - (NSInteger)heightOfPlaneAtIndex:(NSUInteger)planeIndex; // - (NSInteger)bytesPerRowOfPlaneAtIndex:(NSUInteger)planeIndex; // - (NSInteger)bytesPerElementOfPlaneAtIndex:(NSUInteger)planeIndex; // - (NSInteger)elementWidthOfPlaneAtIndex:(NSUInteger)planeIndex; // - (NSInteger)elementHeightOfPlaneAtIndex:(NSUInteger)planeIndex; // - (void *)baseAddressOfPlaneAtIndex:(NSUInteger)planeIndex __attribute__((objc_returns_inner_pointer)); // - (void)setAttachment:(id)anObject forKey:(NSString *)key; // - (nullable id)attachmentForKey:(NSString *)key; // - (void)removeAttachmentForKey:(NSString *)key; // - (void)setAllAttachments:(NSDictionary<NSString *, id> *)dict; // - (nullable NSDictionary<NSString *, id> *)allAttachments; // - (void)removeAllAttachments; // @property (readonly, getter = isInUse) BOOL inUse; // - (void)incrementUseCount; // - (void)decrementUseCount; // @property (readonly ) int32_t localUseCount; // @property (readonly) BOOL allowsPixelSizeCasting; #if 0 - (kern_return_t)setPurgeable:(IOSurfacePurgeabilityState)newState oldState:(IOSurfacePurgeabilityState * _Nullable)oldState __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); #endif /* @end */ extern IOSurfacePropertyKey IOSurfacePropertyAllocSizeKey __attribute__((availability(macos,introduced=10.12,deprecated=10.14,replacement="IOSurfacePropertyKeyAllocSize"))) __attribute__((availability(ios,introduced=11.0,deprecated=12.0,replacement="IOSurfacePropertyKeyAllocSize"))) __attribute__((availability(watchos,introduced=4.0,deprecated=5.0,replacement="IOSurfacePropertyKeyAllocSize"))) __attribute__((availability(tvos,introduced=11.0,deprecated=12.0,replacement="IOSurfacePropertyKeyAllocSize"))); #pragma clang assume_nonnull end // @protocol MTLTexture, MTLCommandBuffer; #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIRenderDestination #define _REWRITER_typedef_CIRenderDestination typedef struct objc_object CIRenderDestination; typedef struct {} _objc_exc_CIRenderDestination; #endif struct CIRenderDestination_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (instancetype) initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer; // - (instancetype) initWithIOSurface:(IOSurface*)surface; #if 0 - (instancetype) initWithMTLTexture:(id<MTLTexture>)texture commandBuffer:(nullable id<MTLCommandBuffer>)commandBuffer; #endif #if 0 - (instancetype) initWithWidth:(NSUInteger)width height:(NSUInteger)height pixelFormat:(MTLPixelFormat)pixelFormat commandBuffer:(nullable id<MTLCommandBuffer>)commandBuffer mtlTextureProvider:(nullable id<MTLTexture> (^)(void))block; #endif #if 0 - (instancetype) initWithGLTexture:(unsigned int)texture target:(unsigned int)target width:(NSUInteger)width height:(NSUInteger)height; #endif #if 0 - (instancetype) initWithBitmapData:(void *)data width:(NSUInteger)width height:(NSUInteger)height bytesPerRow:(NSUInteger)bytesPerRow format:(CIFormat)format; #endif // @property (readonly) NSUInteger width; // @property (readonly) NSUInteger height; typedef NSUInteger CIRenderDestinationAlphaMode; enum { CIRenderDestinationAlphaNone = 0, CIRenderDestinationAlphaPremultiplied = 1, CIRenderDestinationAlphaUnpremultiplied = 2 }; // @property CIRenderDestinationAlphaMode alphaMode; // @property (getter=isFlipped) BOOL flipped; // @property (getter=isDithered) BOOL dithered; // @property (getter=isClamped) BOOL clamped; // @property (nullable, nonatomic) CGColorSpaceRef colorSpace; // @property (nullable, nonatomic, retain) CIBlendKernel* blendKernel; // @property BOOL blendsInDestinationColorSpace; /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIRenderInfo #define _REWRITER_typedef_CIRenderInfo typedef struct objc_object CIRenderInfo; typedef struct {} _objc_exc_CIRenderInfo; #endif struct CIRenderInfo_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // @property (readonly) NSTimeInterval kernelExecutionTime; // @property (readonly) NSInteger passCount; // @property (readonly) NSInteger pixelsProcessed; /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIRenderTask #define _REWRITER_typedef_CIRenderTask typedef struct objc_object CIRenderTask; typedef struct {} _objc_exc_CIRenderTask; #endif struct CIRenderTask_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_priv; }; // - (nullable CIRenderInfo*) waitUntilCompletedAndReturnError:(NSError**)error; /* @end */ // @interface CIContext (CIRenderDestination) #if 0 - (nullable CIRenderTask*) startTaskToRender:(CIImage*)image fromRect:(CGRect)fromRect toDestination:(CIRenderDestination*)destination atPoint:(CGPoint)atPoint error:(NSError**)error __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (nullable CIRenderTask*) startTaskToRender:(CIImage*)image toDestination:(CIRenderDestination*)destination error:(NSError**)error __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (BOOL) prepareRender:(CIImage*)image fromRect:(CGRect)fromRect toDestination:(CIRenderDestination*)destination atPoint:(CGPoint)atPoint error:(NSError**)error __attribute__((availability(ios,introduced=11_0))); #endif #if 0 - (nullable CIRenderTask*) startTaskToClear:(CIRenderDestination*)destination error:(NSError**)error __attribute__((availability(ios,introduced=11_0))); #endif /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIBarcodeDescriptor #define _REWRITER_typedef_CIBarcodeDescriptor typedef struct objc_object CIBarcodeDescriptor; typedef struct {} _objc_exc_CIBarcodeDescriptor; #endif struct CIBarcodeDescriptor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; /* @end */ typedef NSInteger CIQRCodeErrorCorrectionLevel; enum { CIQRCodeErrorCorrectionLevelL __attribute__((swift_name("levelL"))) = 'L', CIQRCodeErrorCorrectionLevelM __attribute__((swift_name("levelM"))) = 'M', CIQRCodeErrorCorrectionLevelQ __attribute__((swift_name("levelQ"))) = 'Q', CIQRCodeErrorCorrectionLevelH __attribute__((swift_name("levelH"))) = 'H', } __attribute__((swift_name("CIQRCodeDescriptor.ErrorCorrectionLevel"))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIQRCodeDescriptor #define _REWRITER_typedef_CIQRCodeDescriptor typedef struct objc_object CIQRCodeDescriptor; typedef struct {} _objc_exc_CIQRCodeDescriptor; #endif struct CIQRCodeDescriptor_IMPL { struct CIBarcodeDescriptor_IMPL CIBarcodeDescriptor_IVARS; NSData *errorCorrectedPayload; NSInteger symbolVersion; uint8_t maskPattern; CIQRCodeErrorCorrectionLevel errorCorrectionLevel; }; // @property (readonly) NSData *errorCorrectedPayload; // @property (readonly) NSInteger symbolVersion; // @property (readonly) uint8_t maskPattern; // @property (readonly) CIQRCodeErrorCorrectionLevel errorCorrectionLevel; #if 0 - (nullable instancetype)initWithPayload:(NSData *)errorCorrectedPayload symbolVersion:(NSInteger)symbolVersion maskPattern:(uint8_t)maskPattern errorCorrectionLevel:(CIQRCodeErrorCorrectionLevel)errorCorrectionLevel; #endif #if 0 + (nullable instancetype)descriptorWithPayload:(NSData *)errorCorrectedPayload symbolVersion:(NSInteger)symbolVersion maskPattern:(uint8_t)maskPattern errorCorrectionLevel:(CIQRCodeErrorCorrectionLevel)errorCorrectionLevel; #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIAztecCodeDescriptor #define _REWRITER_typedef_CIAztecCodeDescriptor typedef struct objc_object CIAztecCodeDescriptor; typedef struct {} _objc_exc_CIAztecCodeDescriptor; #endif struct CIAztecCodeDescriptor_IMPL { struct CIBarcodeDescriptor_IMPL CIBarcodeDescriptor_IVARS; NSData *errorCorrectedPayload; BOOL isCompact; NSInteger layerCount; NSInteger dataCodewordCount; }; // @property (readonly) NSData *errorCorrectedPayload; // @property (readonly) BOOL isCompact; // @property (readonly) NSInteger layerCount; // @property (readonly) NSInteger dataCodewordCount; #if 0 - (nullable instancetype)initWithPayload:(NSData *)errorCorrectedPayload isCompact:(BOOL)isCompact layerCount:(NSInteger)layerCount dataCodewordCount:(NSInteger)dataCodewordCount; #endif #if 0 + (nullable instancetype)descriptorWithPayload:(NSData *)errorCorrectedPayload isCompact:(BOOL)isCompact layerCount:(NSInteger)layerCount dataCodewordCount:(NSInteger)dataCodewordCount; #endif /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIPDF417CodeDescriptor #define _REWRITER_typedef_CIPDF417CodeDescriptor typedef struct objc_object CIPDF417CodeDescriptor; typedef struct {} _objc_exc_CIPDF417CodeDescriptor; #endif struct CIPDF417CodeDescriptor_IMPL { struct CIBarcodeDescriptor_IMPL CIBarcodeDescriptor_IVARS; NSData *errorCorrectedPayload; BOOL isCompact; NSInteger rowCount; NSInteger columnCount; }; // @property(readonly) NSData *errorCorrectedPayload; // @property (readonly) BOOL isCompact; // @property (readonly) NSInteger rowCount; // @property (readonly) NSInteger columnCount; #if 0 - (nullable instancetype)initWithPayload:(NSData *)errorCorrectedPayload isCompact:(BOOL)isCompact rowCount:(NSInteger)rowCount columnCount:(NSInteger)columnCount; #endif #if 0 + (nullable instancetype)descriptorWithPayload:(NSData *)errorCorrectedPayload isCompact:(BOOL)isCompact rowCount:(NSInteger)rowCount columnCount:(NSInteger)columnCount; #endif /* @end */ typedef NSInteger CIDataMatrixCodeECCVersion; enum { CIDataMatrixCodeECCVersion000 __attribute__((swift_name("v000"))) = 0, CIDataMatrixCodeECCVersion050 __attribute__((swift_name("v050"))) = 50, CIDataMatrixCodeECCVersion080 __attribute__((swift_name("v080"))) = 80, CIDataMatrixCodeECCVersion100 __attribute__((swift_name("v100"))) = 100, CIDataMatrixCodeECCVersion140 __attribute__((swift_name("v140"))) = 140, CIDataMatrixCodeECCVersion200 __attribute__((swift_name("v200"))) = 200, } __attribute__((swift_name("CIDataMatrixCodeDescriptor.ECCVersion"))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=11_0))) #ifndef _REWRITER_typedef_CIDataMatrixCodeDescriptor #define _REWRITER_typedef_CIDataMatrixCodeDescriptor typedef struct objc_object CIDataMatrixCodeDescriptor; typedef struct {} _objc_exc_CIDataMatrixCodeDescriptor; #endif struct CIDataMatrixCodeDescriptor_IMPL { struct CIBarcodeDescriptor_IMPL CIBarcodeDescriptor_IVARS; NSData *errorCorrectedPayload; NSInteger rowCount; NSInteger columnCount; CIDataMatrixCodeECCVersion eccVersion; }; // @property (readonly) NSData *errorCorrectedPayload; // @property (readonly) NSInteger rowCount; // @property (readonly) NSInteger columnCount; // @property (readonly) CIDataMatrixCodeECCVersion eccVersion; #if 0 - (nullable instancetype)initWithPayload:(NSData *)errorCorrectedPayload rowCount:(NSInteger)rowCount columnCount:(NSInteger)columnCount eccVersion:(CIDataMatrixCodeECCVersion)eccVersion; #endif #if 0 + (nullable instancetype)descriptorWithPayload:(NSData *)errorCorrectedPayload rowCount:(NSInteger)rowCount columnCount:(NSInteger)columnCount eccVersion:(CIDataMatrixCodeECCVersion)eccVersion; #endif /* @end */ // @class NSUserActivity; #ifndef _REWRITER_typedef_NSUserActivity #define _REWRITER_typedef_NSUserActivity typedef struct objc_object NSUserActivity; typedef struct {} _objc_exc_NSUserActivity; #endif // @interface NSUserActivity (CIBarcodeDescriptor) // @property (nonatomic, nullable, readonly, copy) CIBarcodeDescriptor *detectedBarcodeDescriptor __attribute__((availability(macos,introduced=10.13.4))) __attribute__((availability(ios,introduced=11.3))) __attribute__((availability(tvos,introduced=11.3))); /* @end */ #pragma clang assume_nonnull end // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif // @class NSDictionary; #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif // @class CIFilter; #ifndef _REWRITER_typedef_CIFilter #define _REWRITER_typedef_CIFilter typedef struct objc_object CIFilter; typedef struct {} _objc_exc_CIFilter; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility("default"))) NSString *const kCIFilterGeneratorExportedKey __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString *const kCIFilterGeneratorExportedKeyTargetObject __attribute__((availability(ios,unavailable))); extern "C" __attribute__((visibility("default"))) NSString *const kCIFilterGeneratorExportedKeyName __attribute__((availability(ios,unavailable))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=NA))) #ifndef _REWRITER_typedef_CIFilterGenerator #define _REWRITER_typedef_CIFilterGenerator typedef struct objc_object CIFilterGenerator; typedef struct {} _objc_exc_CIFilterGenerator; #endif struct CIFilterGenerator_IMPL { struct NSObject_IMPL NSObject_IVARS; struct CIFilterGeneratorStruct *_filterGeneratorStruct; }; // + (CIFilterGenerator *)filterGenerator; // + (nullable CIFilterGenerator *)filterGeneratorWithContentsOfURL:(NSURL *)aURL; // - (nullable id)initWithContentsOfURL:(NSURL *)aURL; #if 0 - (void)connectObject:(id)sourceObject withKey:(nullable NSString *)sourceKey toObject:(id)targetObject withKey:(NSString *)targetKey; #endif #if 0 - (void)disconnectObject:(id)sourceObject withKey:(NSString *)sourceKey toObject:(id)targetObject withKey:(NSString *)targetKey; #endif #if 0 - (void)exportKey:(NSString *)key fromObject:(id)targetObject withName:(nullable NSString *)exportedKeyName; #endif // - (void)removeExportedKey:(NSString *)exportedKeyName; // @property (readonly, nonatomic) NSDictionary *exportedKeys; #if 0 - (void)setAttributes:(NSDictionary *)attributes forExportedKey:(NSString *)key; #endif // @property (retain, nonatomic) NSDictionary * classAttributes; // - (CIFilter *)filter; // - (void)registerFilterName:(NSString *)name; // - (BOOL)writeToURL:(NSURL *)aURL atomically:(BOOL)flag; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif struct UIColor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha; // + (UIColor *)colorWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha; // + (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; // + (UIColor *)colorWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha __attribute__((availability(ios,introduced=10.0))); // + (UIColor *)colorWithCGColor:(CGColorRef)cgColor; // + (UIColor *)colorWithPatternImage:(UIImage *)image; // + (UIColor *)colorWithCIColor:(CIColor *)ciColor __attribute__((availability(ios,introduced=5.0))); // - (UIColor *)initWithWhite:(CGFloat)white alpha:(CGFloat)alpha; // - (UIColor *)initWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha; // - (UIColor *)initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; // - (UIColor *)initWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha __attribute__((availability(ios,introduced=10.0))); // - (UIColor *)initWithCGColor:(CGColorRef)cgColor; // - (UIColor *)initWithPatternImage:(UIImage*)image; // - (UIColor *)initWithCIColor:(CIColor *)ciColor __attribute__((availability(ios,introduced=5.0))); @property(class, nonatomic, readonly) UIColor *blackColor; @property(class, nonatomic, readonly) UIColor *darkGrayColor; @property(class, nonatomic, readonly) UIColor *lightGrayColor; @property(class, nonatomic, readonly) UIColor *whiteColor; @property(class, nonatomic, readonly) UIColor *grayColor; @property(class, nonatomic, readonly) UIColor *redColor; @property(class, nonatomic, readonly) UIColor *greenColor; @property(class, nonatomic, readonly) UIColor *blueColor; @property(class, nonatomic, readonly) UIColor *cyanColor; @property(class, nonatomic, readonly) UIColor *yellowColor; @property(class, nonatomic, readonly) UIColor *magentaColor; @property(class, nonatomic, readonly) UIColor *orangeColor; @property(class, nonatomic, readonly) UIColor *purpleColor; @property(class, nonatomic, readonly) UIColor *brownColor; @property(class, nonatomic, readonly) UIColor *clearColor; // - (void)set; // - (void)setFill; // - (void)setStroke; // - (BOOL)getWhite:(nullable CGFloat *)white alpha:(nullable CGFloat *)alpha __attribute__((availability(ios,introduced=5.0))); // - (BOOL)getHue:(nullable CGFloat *)hue saturation:(nullable CGFloat *)saturation brightness:(nullable CGFloat *)brightness alpha:(nullable CGFloat *)alpha __attribute__((availability(ios,introduced=5.0))); // - (BOOL)getRed:(nullable CGFloat *)red green:(nullable CGFloat *)green blue:(nullable CGFloat *)blue alpha:(nullable CGFloat *)alpha __attribute__((availability(ios,introduced=5.0))); // - (UIColor *)colorWithAlphaComponent:(CGFloat)alpha; // @property(nonatomic,readonly) CGColorRef CGColor; // - (CGColorRef)CGColor __attribute__((objc_returns_inner_pointer)) __attribute__((cf_returns_not_retained)); // @property(nonatomic,readonly) CIColor *CIColor __attribute__((availability(ios,introduced=5.0))); /* @end */ // @interface UIColor (UINSItemProvider) <NSItemProviderReading, NSItemProviderWriting> /* @end */ // @interface CIColor(UIKitAdditions) // - (instancetype)initWithColor:(UIColor *)color __attribute__((availability(ios,introduced=5.0))); /* @end */ // @interface UIColor (UIColorNamedColors) // + (nullable UIColor *)colorNamed:(NSString *)name __attribute__((availability(ios,introduced=11.0))); // + (nullable UIColor *)colorNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=11.0))); /* @end */ // @interface UIColor (DynamicColors) // + (UIColor *)colorWithDynamicProvider:(UIColor * (^)(UITraitCollection *traitCollection))dynamicProvider __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); // - (UIColor *)initWithDynamicProvider:(UIColor * (^)(UITraitCollection *traitCollection))dynamicProvider __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); // - (UIColor *)resolvedColorWithTraitCollection:(UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef uint32_t UIFontDescriptorSymbolicTraits; enum { UIFontDescriptorTraitItalic = 1u << 0, UIFontDescriptorTraitBold = 1u << 1, UIFontDescriptorTraitExpanded = 1u << 5, UIFontDescriptorTraitCondensed = 1u << 6, UIFontDescriptorTraitMonoSpace = 1u << 10, UIFontDescriptorTraitVertical = 1u << 11, UIFontDescriptorTraitUIOptimized = 1u << 12, UIFontDescriptorTraitTightLeading = 1u << 15, UIFontDescriptorTraitLooseLeading = 1u << 16, UIFontDescriptorClassMask = 0xF0000000, UIFontDescriptorClassUnknown = 0u << 28, UIFontDescriptorClassOldStyleSerifs = 1u << 28, UIFontDescriptorClassTransitionalSerifs = 2u << 28, UIFontDescriptorClassModernSerifs = 3u << 28, UIFontDescriptorClassClarendonSerifs = 4u << 28, UIFontDescriptorClassSlabSerifs = 5u << 28, UIFontDescriptorClassFreeformSerifs = 7u << 28, UIFontDescriptorClassSansSerif = 8u << 28, UIFontDescriptorClassOrnamentals = 9u << 28, UIFontDescriptorClassScripts = 10u << 28, UIFontDescriptorClassSymbolic = 12u << 28 } __attribute__((availability(ios,introduced=7.0))); typedef NSUInteger UIFontDescriptorClass; typedef NSString * UIFontTextStyle __attribute__((swift_wrapper(enum))); typedef NSString * UIFontDescriptorAttributeName __attribute__((swift_wrapper(enum))); typedef NSString * UIFontDescriptorTraitKey __attribute__((swift_wrapper(enum))); typedef NSString * UIFontDescriptorFeatureKey __attribute__((swift_wrapper(struct))); typedef CGFloat UIFontWeight __attribute__((swift_wrapper(struct))); typedef NSString * UIFontDescriptorSystemDesign __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorSystemDesign const UIFontDescriptorSystemDesignDefault __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=5.2))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorSystemDesign const UIFontDescriptorSystemDesignRounded __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=5.2))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorSystemDesign const UIFontDescriptorSystemDesignSerif __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorSystemDesign const UIFontDescriptorSystemDesignMonospaced __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,introduced=13.0))); // @class NSMutableDictionary; #ifndef _REWRITER_typedef_NSMutableDictionary #define _REWRITER_typedef_NSMutableDictionary typedef struct objc_object NSMutableDictionary; typedef struct {} _objc_exc_NSMutableDictionary; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSSet #define _REWRITER_typedef_NSSet typedef struct objc_object NSSet; typedef struct {} _objc_exc_NSSet; #endif #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIFontDescriptor #define _REWRITER_typedef_UIFontDescriptor typedef struct objc_object UIFontDescriptor; typedef struct {} _objc_exc_UIFontDescriptor; #endif struct UIFontDescriptor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic, readonly) NSString *postscriptName; // @property(nonatomic, readonly) CGFloat pointSize; // @property(nonatomic, readonly) CGAffineTransform matrix __attribute__((availability(macCatalyst,unavailable))); // @property(nonatomic, readonly) UIFontDescriptorSymbolicTraits symbolicTraits; // - (nullable id)objectForKey:(UIFontDescriptorAttributeName)anAttribute; // @property(nonatomic, readonly) NSDictionary<UIFontDescriptorAttributeName, id> *fontAttributes; // - (NSArray<UIFontDescriptor *> *)matchingFontDescriptorsWithMandatoryKeys:(nullable NSSet<UIFontDescriptorAttributeName> *)mandatoryKeys; // + (UIFontDescriptor *)fontDescriptorWithFontAttributes:(NSDictionary<UIFontDescriptorAttributeName, id> *)attributes; // + (UIFontDescriptor *)fontDescriptorWithName:(NSString *)fontName size:(CGFloat)size; // + (UIFontDescriptor *)fontDescriptorWithName:(NSString *)fontName matrix:(CGAffineTransform)matrix; // + (UIFontDescriptor *)preferredFontDescriptorWithTextStyle:(UIFontTextStyle)style; // + (UIFontDescriptor *)preferredFontDescriptorWithTextStyle:(UIFontTextStyle)style compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))); // - (instancetype)initWithFontAttributes:(NSDictionary<UIFontDescriptorAttributeName, id> *)attributes __attribute__((objc_designated_initializer)); // - (UIFontDescriptor *)fontDescriptorByAddingAttributes:(NSDictionary<UIFontDescriptorAttributeName, id> *)attributes; // - (UIFontDescriptor *)fontDescriptorWithSize:(CGFloat)newPointSize; // - (UIFontDescriptor *)fontDescriptorWithMatrix:(CGAffineTransform)matrix __attribute__((availability(macCatalyst,unavailable))); // - (UIFontDescriptor *)fontDescriptorWithFace:(NSString *)newFace; // - (UIFontDescriptor *)fontDescriptorWithFamily:(NSString *)newFamily; // - (nullable UIFontDescriptor *)fontDescriptorWithSymbolicTraits:(UIFontDescriptorSymbolicTraits)symbolicTraits; // - (nullable UIFontDescriptor *)fontDescriptorWithDesign:(UIFontDescriptorSystemDesign)design __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=5.2))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorFamilyAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorNameAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorFaceAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorSizeAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorVisibleNameAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorMatrixAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorCharacterSetAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorCascadeListAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorTraitsAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorFixedAdvanceAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorFeatureSettingsAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorAttributeName const UIFontDescriptorTextStyleAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorTraitKey const UIFontSymbolicTrait __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorTraitKey const UIFontWeightTrait __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorTraitKey const UIFontWidthTrait __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorTraitKey const UIFontSlantTrait __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightUltraLight __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightThin __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightLight __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightRegular __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightMedium __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightSemibold __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightBold __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightHeavy __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) const UIFontWeight UIFontWeightBlack __attribute__((availability(ios,introduced=8.2))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorFeatureKey const UIFontFeatureTypeIdentifierKey __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontDescriptorFeatureKey const UIFontFeatureSelectorIdentifierKey __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleLargeTitle __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleTitle1 __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleTitle2 __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleTitle3 __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleHeadline __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleSubheadline __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleBody __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleCallout __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleFootnote __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleCaption1 __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIFontTextStyle const UIFontTextStyleCaption2 __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull end // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif struct UIFont_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIFont *)preferredFontForTextStyle:(UIFontTextStyle)style __attribute__((availability(ios,introduced=7.0))); // + (UIFont *)preferredFontForTextStyle:(UIFontTextStyle)style compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))); // + (nullable UIFont *)fontWithName:(NSString *)fontName size:(CGFloat)fontSize; @property(class, nonatomic, readonly) NSArray<NSString *> *familyNames; // + (NSArray<NSString *> *)fontNamesForFamilyName:(NSString *)familyName; // + (UIFont *)systemFontOfSize:(CGFloat)fontSize; // + (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize; // + (UIFont *)italicSystemFontOfSize:(CGFloat)fontSize; // + (UIFont *)systemFontOfSize:(CGFloat)fontSize weight:(UIFontWeight)weight __attribute__((availability(ios,introduced=8.2))); // + (UIFont *)monospacedDigitSystemFontOfSize:(CGFloat)fontSize weight:(UIFontWeight)weight __attribute__((availability(ios,introduced=9.0))); // + (UIFont *)monospacedSystemFontOfSize:(CGFloat)fontSize weight:(UIFontWeight)weight __attribute__((availability(ios,introduced=13.0))); // @property(nonatomic,readonly,strong) NSString *familyName; // @property(nonatomic,readonly,strong) NSString *fontName; // @property(nonatomic,readonly) CGFloat pointSize; // @property(nonatomic,readonly) CGFloat ascender; // @property(nonatomic,readonly) CGFloat descender; // @property(nonatomic,readonly) CGFloat capHeight; // @property(nonatomic,readonly) CGFloat xHeight; // @property(nonatomic,readonly) CGFloat lineHeight __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly) CGFloat leading; // - (UIFont *)fontWithSize:(CGFloat)fontSize; // + (UIFont *)fontWithDescriptor:(UIFontDescriptor *)descriptor size:(CGFloat)pointSize __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly) UIFontDescriptor *fontDescriptor __attribute__((availability(ios,introduced=7.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) #ifndef _REWRITER_typedef_UIFontMetrics #define _REWRITER_typedef_UIFontMetrics typedef struct objc_object UIFontMetrics; typedef struct {} _objc_exc_UIFontMetrics; #endif struct UIFontMetrics_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, strong) UIFontMetrics *defaultMetrics; // + (instancetype)metricsForTextStyle:(UIFontTextStyle)textStyle; // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initForTextStyle:(UIFontTextStyle)textStyle __attribute__((objc_designated_initializer)); // - (UIFont *)scaledFontForFont:(UIFont *)font; // - (UIFont *)scaledFontForFont:(UIFont *)font maximumPointSize:(CGFloat)maximumPointSize; // - (UIFont *)scaledFontForFont:(UIFont *)font compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(watchos,unavailable))); // - (UIFont *)scaledFontForFont:(UIFont *)font maximumPointSize:(CGFloat)maximumPointSize compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(watchos,unavailable))); // - (CGFloat)scaledValueForValue:(CGFloat)value; // - (CGFloat)scaledValueForValue:(CGFloat)value compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif extern "C" __attribute__((visibility ("default"))) CGContextRef _Nullable UIGraphicsGetCurrentContext(void) __attribute__((cf_returns_not_retained)); extern "C" __attribute__((visibility ("default"))) void UIGraphicsPushContext(CGContextRef context); extern "C" __attribute__((visibility ("default"))) void UIGraphicsPopContext(void); extern "C" __attribute__((visibility ("default"))) void UIRectFillUsingBlendMode(CGRect rect, CGBlendMode blendMode); extern "C" __attribute__((visibility ("default"))) void UIRectFill(CGRect rect); extern "C" __attribute__((visibility ("default"))) void UIRectFrameUsingBlendMode(CGRect rect, CGBlendMode blendMode); extern "C" __attribute__((visibility ("default"))) void UIRectFrame(CGRect rect); extern "C" __attribute__((visibility ("default"))) void UIRectClip(CGRect rect); extern "C" __attribute__((visibility ("default"))) void UIGraphicsBeginImageContext(CGSize size); extern "C" __attribute__((visibility ("default"))) void UIGraphicsBeginImageContextWithOptions(CGSize size, BOOL opaque, CGFloat scale) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIImage* _Nullable UIGraphicsGetImageFromCurrentImageContext(void); extern "C" __attribute__((visibility ("default"))) void UIGraphicsEndImageContext(void); extern "C" __attribute__((visibility ("default"))) BOOL UIGraphicsBeginPDFContextToFile(NSString *path, CGRect bounds, NSDictionary * _Nullable documentInfo) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsBeginPDFContextToData(NSMutableData *data, CGRect bounds, NSDictionary * _Nullable documentInfo) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsEndPDFContext(void) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsBeginPDFPage(void) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsBeginPDFPageWithInfo(CGRect bounds, NSDictionary * _Nullable pageInfo) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) CGRect UIGraphicsGetPDFContextBounds(void) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsSetPDFContextURLForRect(NSURL *url, CGRect rect) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsAddPDFContextDestinationAtPoint(NSString *name, CGPoint point) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) void UIGraphicsSetPDFContextDestinationForRect(NSString *name, CGRect rect) __attribute__((availability(ios,introduced=3.2))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPreferredPresentationStyle; enum { UIPreferredPresentationStyleUnspecified = 0, UIPreferredPresentationStyleInline, UIPreferredPresentationStyleAttachment, }; // @interface NSItemProvider (UIKitAdditions) // @property (nonatomic, copy, nullable) NSData *teamData __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) CGSize preferredPresentationSize __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) UIPreferredPresentationStyle preferredPresentationStyle __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIItemProviderPresentationSizeProviding <NSObject> // @property (nonatomic, readonly) CGSize preferredPresentationSizeForItemProvider; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin enum { NSAttachmentCharacter __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0xFFFC }; // @class NSTextContainer; #ifndef _REWRITER_typedef_NSTextContainer #define _REWRITER_typedef_NSTextContainer typedef struct objc_object NSTextContainer; typedef struct {} _objc_exc_NSTextContainer; #endif // @class NSLayoutManager; #ifndef _REWRITER_typedef_NSLayoutManager #define _REWRITER_typedef_NSLayoutManager typedef struct objc_object NSLayoutManager; typedef struct {} _objc_exc_NSLayoutManager; #endif // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @protocol NSTextAttachmentContainer <NSObject> // - (nullable UIImage *)imageForBounds:(CGRect)imageBounds textContainer:(nullable NSTextContainer *)textContainer characterIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGRect)attachmentBoundsForTextContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_NSTextAttachment #define _REWRITER_typedef_NSTextAttachment typedef struct objc_object NSTextAttachment; typedef struct {} _objc_exc_NSTextAttachment; #endif struct NSTextAttachment_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithData:(nullable NSData *)contentData ofType:(nullable NSString *)uti __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nullable, copy, nonatomic) NSData *contents __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nullable, copy, nonatomic) NSString *fileType __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nullable, strong, nonatomic) UIImage *image __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGRect bounds __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nullable, strong, nonatomic) NSFileWrapper *fileWrapper; /* @end */ // @interface NSAttributedString (NSAttributedStringAttachmentConveniences) // + (NSAttributedString *)attributedStringWithAttachment:(NSTextAttachment *)attachment __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif #ifndef _REWRITER_typedef_UIImageAsset #define _REWRITER_typedef_UIImageAsset typedef struct objc_object UIImageAsset; typedef struct {} _objc_exc_UIImageAsset; #endif // @class UIGraphicsImageRendererFormat; #ifndef _REWRITER_typedef_UIGraphicsImageRendererFormat #define _REWRITER_typedef_UIGraphicsImageRendererFormat typedef struct objc_object UIGraphicsImageRendererFormat; typedef struct {} _objc_exc_UIGraphicsImageRendererFormat; #endif typedef NSInteger UIImageOrientation; enum { UIImageOrientationUp, UIImageOrientationDown, UIImageOrientationLeft, UIImageOrientationRight, UIImageOrientationUpMirrored, UIImageOrientationDownMirrored, UIImageOrientationLeftMirrored, UIImageOrientationRightMirrored, }; typedef NSInteger UIImageResizingMode; enum { UIImageResizingModeTile = 0, UIImageResizingModeStretch = 1, }; typedef NSInteger UIImageRenderingMode; enum { UIImageRenderingModeAutomatic, UIImageRenderingModeAlwaysOriginal, UIImageRenderingModeAlwaysTemplate, } __attribute__((availability(ios,introduced=7.0))); // @class UIImageConfiguration; #ifndef _REWRITER_typedef_UIImageConfiguration #define _REWRITER_typedef_UIImageConfiguration typedef struct objc_object UIImageConfiguration; typedef struct {} _objc_exc_UIImageConfiguration; #endif // @class UIImageSymbolConfiguration; #ifndef _REWRITER_typedef_UIImageSymbolConfiguration #define _REWRITER_typedef_UIImageSymbolConfiguration typedef struct objc_object UIImageSymbolConfiguration; typedef struct {} _objc_exc_UIImageSymbolConfiguration; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif struct UIImage_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (nullable UIImage *)systemImageNamed:(NSString *)name __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (nullable UIImage *)systemImageNamed:(NSString *)name withConfiguration:(nullable UIImageConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (nullable UIImage *)systemImageNamed:(NSString *)name compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (nullable UIImage *)imageNamed:(NSString *)name; // + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle withConfiguration:(nullable UIImageConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (nullable UIImage *)imageNamed:(NSString *)name inBundle:(nullable NSBundle *)bundle compatibleWithTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=8.0))); // + (nullable UIImage *)imageWithContentsOfFile:(NSString *)path; // + (nullable UIImage *)imageWithData:(NSData *)data; // + (nullable UIImage *)imageWithData:(NSData *)data scale:(CGFloat)scale __attribute__((availability(ios,introduced=6.0))); // + (UIImage *)imageWithCGImage:(CGImageRef)cgImage; // + (UIImage *)imageWithCGImage:(CGImageRef)cgImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation __attribute__((availability(ios,introduced=4.0))); // + (UIImage *)imageWithCIImage:(CIImage *)ciImage __attribute__((availability(ios,introduced=5.0))); // + (UIImage *)imageWithCIImage:(CIImage *)ciImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation __attribute__((availability(ios,introduced=6.0))); // - (nullable instancetype)initWithContentsOfFile:(NSString *)path; // - (nullable instancetype)initWithData:(NSData *)data; // - (nullable instancetype)initWithData:(NSData *)data scale:(CGFloat)scale __attribute__((availability(ios,introduced=6.0))); // - (instancetype)initWithCGImage:(CGImageRef)cgImage; // - (instancetype)initWithCGImage:(CGImageRef)cgImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation __attribute__((availability(ios,introduced=4.0))); // - (instancetype)initWithCIImage:(CIImage *)ciImage __attribute__((availability(ios,introduced=5.0))); // - (instancetype)initWithCIImage:(CIImage *)ciImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic,readonly) CGSize size; // @property(nullable, nonatomic,readonly) CGImageRef CGImage; // - (nullable CGImageRef)CGImage __attribute__((objc_returns_inner_pointer)) __attribute__((cf_returns_not_retained)); // @property(nullable,nonatomic,readonly) CIImage *CIImage __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) UIImageOrientation imageOrientation; // @property(nonatomic,readonly) CGFloat scale __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly,getter=isSymbolImage) BOOL symbolImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (nullable UIImage *)animatedImageNamed:(NSString *)name duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=5.0))); // + (nullable UIImage *)animatedResizableImageNamed:(NSString *)name capInsets:(UIEdgeInsets)capInsets duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=5.0))); // + (nullable UIImage *)animatedResizableImageNamed:(NSString *)name capInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=6.0))); // + (nullable UIImage *)animatedImageWithImages:(NSArray<UIImage *> *)images duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=5.0))); // @property(nullable, nonatomic,readonly) NSArray<UIImage *> *images __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) NSTimeInterval duration __attribute__((availability(ios,introduced=5.0))); // - (void)drawAtPoint:(CGPoint)point; // - (void)drawAtPoint:(CGPoint)point blendMode:(CGBlendMode)blendMode alpha:(CGFloat)alpha; // - (void)drawInRect:(CGRect)rect; // - (void)drawInRect:(CGRect)rect blendMode:(CGBlendMode)blendMode alpha:(CGFloat)alpha; // - (void)drawAsPatternInRect:(CGRect)rect; // - (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets __attribute__((availability(ios,introduced=5.0))); // - (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic,readonly) UIEdgeInsets capInsets __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) UIImageResizingMode resizingMode __attribute__((availability(ios,introduced=6.0))); // - (UIImage *)imageWithAlignmentRectInsets:(UIEdgeInsets)alignmentInsets __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic,readonly) UIEdgeInsets alignmentRectInsets __attribute__((availability(ios,introduced=6.0))); // - (UIImage *)imageWithRenderingMode:(UIImageRenderingMode)renderingMode __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly) UIImageRenderingMode renderingMode __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readonly) UIGraphicsImageRendererFormat *imageRendererFormat __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly, copy) UITraitCollection *traitCollection __attribute__((availability(ios,introduced=8.0))); // @property (nullable, nonatomic, readonly) UIImageAsset *imageAsset __attribute__((availability(ios,introduced=8.0))); // - (UIImage *)imageFlippedForRightToLeftLayoutDirection __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly) BOOL flipsForRightToLeftLayoutDirection __attribute__((availability(ios,introduced=9.0))); // - (UIImage *)imageWithHorizontallyFlippedOrientation __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) CGFloat baselineOffsetFromBottom __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((swift_private)); // @property (nonatomic, readonly) BOOL hasBaseline __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((swift_private)); // - (UIImage *)imageWithBaselineOffsetFromBottom:(CGFloat)baselineOffset __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (UIImage *)imageWithoutBaseline __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property (nullable, nonatomic, copy, readonly) __kindof UIImageConfiguration *configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (UIImage *)imageWithConfiguration:(UIImageConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property (nullable, nonatomic, copy, readonly) UIImageSymbolConfiguration *symbolConfiguration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (nullable UIImage *)imageByApplyingSymbolConfiguration:(UIImageSymbolConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (UIImage *)imageWithTintColor:(UIColor *)color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (UIImage *)imageWithTintColor:(UIColor *)color renderingMode:(UIImageRenderingMode)renderingMode __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); /* @end */ // @interface UIImage (PreconfiguredSystemImages) @property (class, readonly, strong) UIImage *actionsImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, strong) UIImage *addImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, strong) UIImage *removeImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, strong) UIImage *checkmarkImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); @property (class, readonly, strong) UIImage *strokedCheckmarkImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); /* @end */ // @interface UIImage (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting, UIItemProviderPresentationSizeProviding> /* @end */ // @interface NSTextAttachment (UIImage) // + (NSTextAttachment *)textAttachmentWithImage:(UIImage *)image __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @interface UIImage(UIImageDeprecated) // - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) NSInteger leftCapWidth __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) NSInteger topCapHeight __attribute__((availability(tvos,unavailable))); /* @end */ // @interface CIImage(UIKitAdditions) // - (nullable instancetype)initWithImage:(UIImage *)image __attribute__((availability(ios,introduced=5.0))); // - (nullable instancetype)initWithImage:(UIImage *)image options:(nullable NSDictionary<CIImageOption, id> *)options __attribute__((availability(ios,introduced=5.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSData * _Nullable UIImagePNGRepresentation(UIImage * _Nonnull image); extern "C" __attribute__((visibility ("default"))) NSData * _Nullable UIImageJPEGRepresentation(UIImage * _Nonnull image, CGFloat compressionQuality); #pragma clang assume_nonnull end // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UIImageConfiguration #define _REWRITER_typedef_UIImageConfiguration typedef struct objc_object UIImageConfiguration; typedef struct {} _objc_exc_UIImageConfiguration; #endif struct UIImageConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, nullable, readonly) UITraitCollection *traitCollection; // - (instancetype)configurationWithTraitCollection:(nullable UITraitCollection *)traitCollection; // - (instancetype)configurationByApplyingConfiguration:(nullable UIImageConfiguration *)otherConfiguration; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIImageSymbolScale; enum { UIImageSymbolScaleDefault = -1, UIImageSymbolScaleUnspecified = 0, UIImageSymbolScaleSmall = 1, UIImageSymbolScaleMedium, UIImageSymbolScaleLarge, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); typedef NSInteger UIImageSymbolWeight; enum { UIImageSymbolWeightUnspecified = 0, UIImageSymbolWeightUltraLight = 1, UIImageSymbolWeightThin, UIImageSymbolWeightLight, UIImageSymbolWeightRegular, UIImageSymbolWeightMedium, UIImageSymbolWeightSemibold, UIImageSymbolWeightBold, UIImageSymbolWeightHeavy, UIImageSymbolWeightBlack } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) UIFontWeight UIFontWeightForImageSymbolWeight(UIImageSymbolWeight symbolWeight) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) UIImageSymbolWeight UIImageSymbolWeightForFontWeight(UIFontWeight fontWeight) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UIImageSymbolConfiguration #define _REWRITER_typedef_UIImageSymbolConfiguration typedef struct objc_object UIImageSymbolConfiguration; typedef struct {} _objc_exc_UIImageSymbolConfiguration; #endif struct UIImageSymbolConfiguration_IMPL { struct UIImageConfiguration_IMPL UIImageConfiguration_IVARS; }; @property (class, nonatomic, readonly) UIImageSymbolConfiguration *unspecifiedConfiguration; // + (instancetype)configurationWithScale:(UIImageSymbolScale)scale; // + (instancetype)configurationWithPointSize:(CGFloat)pointSize; // + (instancetype)configurationWithWeight:(UIImageSymbolWeight)weight; // + (instancetype)configurationWithPointSize:(CGFloat)pointSize weight:(UIImageSymbolWeight)weight; // + (instancetype)configurationWithPointSize:(CGFloat)pointSize weight:(UIImageSymbolWeight)weight scale:(UIImageSymbolScale)scale; // + (instancetype)configurationWithTextStyle:(UIFontTextStyle)textStyle; // + (instancetype)configurationWithTextStyle:(UIFontTextStyle)textStyle scale:(UIImageSymbolScale)scale; // + (instancetype)configurationWithFont:(UIFont *)font; // + (instancetype)configurationWithFont:(UIFont *)font scale:(UIImageSymbolScale)scale; // - (instancetype)configurationWithoutTextStyle; // - (instancetype)configurationWithoutScale; // - (instancetype)configurationWithoutWeight; // - (instancetype)configurationWithoutPointSizeAndWeight; // - (BOOL)isEqualToConfiguration:(nullable UIImageSymbolConfiguration *)otherConfiguration; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * NSDataAssetName __attribute__((swift_bridged_typedef)) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) #ifndef _REWRITER_typedef_NSDataAsset #define _REWRITER_typedef_NSDataAsset typedef struct objc_object NSDataAsset; typedef struct {} _objc_exc_NSDataAsset; #endif struct NSDataAsset_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (nullable instancetype)initWithName:(NSDataAssetName)name; // - (nullable instancetype)initWithName:(NSDataAssetName)name bundle:(NSBundle *)bundle __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly, copy) NSDataAssetName name; // @property (nonatomic, readonly, copy) NSData *data; // @property (nonatomic, readonly, copy) NSString *typeIdentifier; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class CLRegion; #ifndef _REWRITER_typedef_CLRegion #define _REWRITER_typedef_CLRegion typedef struct objc_object CLRegion; typedef struct {} _objc_exc_CLRegion; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationRequest"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UILocalNotification #define _REWRITER_typedef_UILocalNotification typedef struct objc_object UILocalNotification; typedef struct {} _objc_exc_UILocalNotification; #endif struct UILocalNotification_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nullable, nonatomic,copy) NSDate *fireDate; // @property(nullable, nonatomic,copy) NSTimeZone *timeZone; // @property(nonatomic) NSCalendarUnit repeatInterval; // @property(nullable, nonatomic,copy) NSCalendar *repeatCalendar; // @property(nullable, nonatomic,copy) CLRegion *region __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic,assign) BOOL regionTriggersOnce __attribute__((availability(ios,introduced=8.0))); // @property(nullable, nonatomic,copy) NSString *alertBody; // @property(nonatomic) BOOL hasAction; // @property(nullable, nonatomic,copy) NSString *alertAction; // @property(nullable, nonatomic,copy) NSString *alertLaunchImage; // @property(nullable, nonatomic,copy) NSString *alertTitle __attribute__((availability(ios,introduced=8.2))); // @property(nullable, nonatomic,copy) NSString *soundName; // @property(nonatomic) NSInteger applicationIconBadgeNumber; // @property(nullable, nonatomic,copy) NSDictionary *userInfo; // @property (nullable, nonatomic, copy) NSString *category __attribute__((availability(ios,introduced=8.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString *const UILocalNotificationDefaultSoundName __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's +[UNNotificationSound defaultSound]"))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end // @class NSAttributedString; #ifndef _REWRITER_typedef_NSAttributedString #define _REWRITER_typedef_NSAttributedString typedef struct objc_object NSAttributedString; typedef struct {} _objc_exc_NSAttributedString; #endif // @class NSFileWrapper; #ifndef _REWRITER_typedef_NSFileWrapper #define _REWRITER_typedef_NSFileWrapper typedef struct objc_object NSFileWrapper; typedef struct {} _objc_exc_NSFileWrapper; #endif // @class NSURL; #ifndef _REWRITER_typedef_NSURL #define _REWRITER_typedef_NSURL typedef struct objc_object NSURL; typedef struct {} _objc_exc_NSURL; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSFontAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSParagraphStyleAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSForegroundColorAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSBackgroundColorAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSLigatureAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSKernAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSTrackingAttributeName __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSStrikethroughStyleAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSUnderlineStyleAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSStrokeColorAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSStrokeWidthAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSShadowAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSTextEffectAttributeName __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSAttachmentAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSLinkAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSBaselineOffsetAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSUnderlineColorAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSStrikethroughColorAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSObliquenessAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSExpansionAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSWritingDirectionAttributeName __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringKey const NSVerticalGlyphFormAttributeName __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=6.0))); typedef NSInteger NSUnderlineStyle; enum { NSUnderlineStyleNone = 0x00, NSUnderlineStyleSingle = 0x01, NSUnderlineStyleThick __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x02, NSUnderlineStyleDouble __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x09, NSUnderlineStylePatternSolid __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x0000, NSUnderlineStylePatternDot __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x0100, NSUnderlineStylePatternDash __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x0200, NSUnderlineStylePatternDashDot __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x0300, NSUnderlineStylePatternDashDotDot __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x0400, NSUnderlineStyleByWord __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) = 0x8000 } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); typedef NSInteger NSWritingDirectionFormatType; enum { NSWritingDirectionEmbedding = (0 << 1), NSWritingDirectionOverride = (1 << 1) } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); typedef NSString * NSTextEffectStyle __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) NSTextEffectStyle const NSTextEffectLetterpressStyle __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=7.0))); // @interface NSMutableAttributedString (NSAttributedStringAttributeFixing) // - (void)fixAttributesInRange:(NSRange)range __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); /* @end */ typedef NSString * NSAttributedStringDocumentType __attribute__((swift_wrapper(struct))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentType const NSPlainTextDocumentType __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentType const NSRTFTextDocumentType __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentType const NSRTFDTextDocumentType __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentType const NSHTMLTextDocumentType __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); typedef NSString * NSTextLayoutSectionKey __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) NSTextLayoutSectionKey const NSTextLayoutSectionOrientation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSTextLayoutSectionKey const NSTextLayoutSectionRange __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))); typedef NSInteger NSTextScalingType; enum { NSTextScalingStandard = 0, NSTextScalingiOS } __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); typedef NSString * NSAttributedStringDocumentAttributeKey __attribute__((swift_wrapper(struct))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSDocumentTypeDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSCharacterEncodingDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSDefaultAttributesDocumentAttribute __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSPaperSizeDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSPaperMarginDocumentAttribute __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSViewSizeDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSViewZoomDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSViewModeDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSReadOnlyDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSBackgroundColorDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSHyphenationFactorDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSDefaultTabIntervalDocumentAttribute __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSTextLayoutSectionsAttribute __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSTextScalingDocumentAttribute __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSSourceTextScalingDocumentAttribute __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentAttributeKey const NSCocoaVersionDocumentAttribute __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=13.0))); typedef NSString * NSAttributedStringDocumentReadingOptionKey __attribute__((swift_wrapper(struct))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentReadingOptionKey const NSDocumentTypeDocumentOption; extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentReadingOptionKey const NSDefaultAttributesDocumentOption; extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentReadingOptionKey const NSCharacterEncodingDocumentOption; extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentReadingOptionKey const NSTargetTextScalingDocumentOption __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSAttributedStringDocumentReadingOptionKey const NSSourceTextScalingDocumentOption __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))); // @interface NSAttributedString (NSAttributedStringDocumentFormats) // - (nullable instancetype)initWithURL:(NSURL *)url options:(NSDictionary<NSAttributedStringDocumentReadingOptionKey, id> *)options documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> * _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(macos,introduced=10.4))) __attribute__((availability(ios,introduced=9.0))); // - (nullable instancetype)initWithData:(NSData *)data options:(NSDictionary<NSAttributedStringDocumentReadingOptionKey, id> *)options documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> * _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (nullable NSData *)dataFromRange:(NSRange)range documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> *)dict error:(NSError **)error __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (nullable NSFileWrapper *)fileWrapperFromRange:(NSRange)range documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> *)dict error:(NSError **)error __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface NSMutableAttributedString (NSMutableAttributedStringDocumentFormats) // - (BOOL)readFromURL:(NSURL *)url options:(NSDictionary<NSAttributedStringDocumentReadingOptionKey, id> *)opts documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> * _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(macosx,introduced=10.5))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (BOOL)readFromData:(NSData *)data options:(NSDictionary<NSAttributedStringDocumentReadingOptionKey, id> *)opts documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> * _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface NSAttributedString (NSAttributedStringKitAdditions) // - (BOOL)containsAttachmentsInRange:(NSRange)range __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); /* @end */ // @interface NSAttributedString (NSAttributedString_ItemProvider) <NSItemProviderReading, NSItemProviderWriting> /* @end */ static const NSUnderlineStyle NSUnderlinePatternSolid = NSUnderlineStylePatternSolid; static const NSUnderlineStyle NSUnderlinePatternDot = NSUnderlineStylePatternDot; static const NSUnderlineStyle NSUnderlinePatternDash = NSUnderlineStylePatternDash; static const NSUnderlineStyle NSUnderlinePatternDashDot = NSUnderlineStylePatternDashDot; static const NSUnderlineStyle NSUnderlinePatternDashDotDot = NSUnderlineStylePatternDashDotDot; static const NSUnderlineStyle NSUnderlineByWord = NSUnderlineStyleByWord; typedef NSInteger NSTextWritingDirection; enum { NSTextWritingDirectionEmbedding = (0 << 1), NSTextWritingDirectionOverride = (1 << 1) } __attribute__((availability(ios,introduced=7.0,deprecated=9.0,replacement="NSWritingDirectionFormatType"))) __attribute__((availability(tvos,unavailable))); // @interface NSAttributedString(NSDeprecatedKitAdditions) // - (nullable instancetype)initWithFileURL:(NSURL *)url options:(NSDictionary *)options documentAttributes:(NSDictionary* _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(ios,introduced=7.0,deprecated=9.0,replacement="initWithURL:options:documentAttributes:error:"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface NSMutableAttributedString (NSDeprecatedKitAdditions) // - (BOOL)readFromFileURL:(NSURL *)url options:(NSDictionary *)opts documentAttributes:(NSDictionary* _Nullable * _Nullable)dict error:(NSError **)error __attribute__((availability(ios,introduced=7.0,deprecated=9.0,replacement="readFromURL:options:documentAttributes:error:"))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end // @class UIFont; #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif // @class UIFontDescriptor; #ifndef _REWRITER_typedef_UIFontDescriptor #define _REWRITER_typedef_UIFontDescriptor typedef struct objc_object UIFontDescriptor; typedef struct {} _objc_exc_UIFontDescriptor; #endif // @class NSParagraphStyle; #ifndef _REWRITER_typedef_NSParagraphStyle #define _REWRITER_typedef_NSParagraphStyle typedef struct objc_object NSParagraphStyle; typedef struct {} _objc_exc_NSParagraphStyle; #endif // @class NSTextTab; #ifndef _REWRITER_typedef_NSTextTab #define _REWRITER_typedef_NSTextTab typedef struct objc_object NSTextTab; typedef struct {} _objc_exc_NSTextTab; #endif extern "C" { #pragma clang assume_nonnull begin typedef const struct __attribute__((objc_bridge_related(NSParagraphStyle,,))) __CTParagraphStyle * CTParagraphStyleRef; CFTypeID CTParagraphStyleGetTypeID( void ) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef uint8_t CTTextAlignment; enum { kCTTextAlignmentLeft = 0, kCTTextAlignmentRight = 1, kCTTextAlignmentCenter = 2, kCTTextAlignmentJustified = 3, kCTTextAlignmentNatural = 4, kCTLeftTextAlignment __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Deprecated"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Deprecated"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = kCTTextAlignmentLeft, kCTRightTextAlignment __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Deprecated"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Deprecated"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = kCTTextAlignmentRight, kCTCenterTextAlignment __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Deprecated"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Deprecated"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = kCTTextAlignmentCenter, kCTJustifiedTextAlignment __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Deprecated"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Deprecated"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = kCTTextAlignmentJustified, kCTNaturalTextAlignment __attribute__((availability(macos,introduced=10.5,deprecated=10.11,message="Deprecated"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Deprecated"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = kCTTextAlignmentNatural }; typedef uint8_t CTLineBreakMode; enum { kCTLineBreakByWordWrapping = 0, kCTLineBreakByCharWrapping = 1, kCTLineBreakByClipping = 2, kCTLineBreakByTruncatingHead = 3, kCTLineBreakByTruncatingTail = 4, kCTLineBreakByTruncatingMiddle = 5 }; typedef int8_t CTWritingDirection; enum { kCTWritingDirectionNatural = -1, kCTWritingDirectionLeftToRight = 0, kCTWritingDirectionRightToLeft = 1 }; typedef uint32_t CTParagraphStyleSpecifier; enum { kCTParagraphStyleSpecifierAlignment = 0, kCTParagraphStyleSpecifierFirstLineHeadIndent = 1, kCTParagraphStyleSpecifierHeadIndent = 2, kCTParagraphStyleSpecifierTailIndent = 3, kCTParagraphStyleSpecifierTabStops = 4, kCTParagraphStyleSpecifierDefaultTabInterval = 5, kCTParagraphStyleSpecifierLineBreakMode = 6, kCTParagraphStyleSpecifierLineHeightMultiple = 7, kCTParagraphStyleSpecifierMaximumLineHeight = 8, kCTParagraphStyleSpecifierMinimumLineHeight = 9, kCTParagraphStyleSpecifierLineSpacing __attribute__((availability(macos,introduced=10.5,deprecated=10.8,message="See documentation for replacements"))) __attribute__((availability(ios,introduced=3.2,deprecated=6.0,message="See documentation for replacements"))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) = 10, kCTParagraphStyleSpecifierParagraphSpacing = 11, kCTParagraphStyleSpecifierParagraphSpacingBefore = 12, kCTParagraphStyleSpecifierBaseWritingDirection = 13, kCTParagraphStyleSpecifierMaximumLineSpacing = 14, kCTParagraphStyleSpecifierMinimumLineSpacing = 15, kCTParagraphStyleSpecifierLineSpacingAdjustment = 16, kCTParagraphStyleSpecifierLineBoundsOptions = 17, kCTParagraphStyleSpecifierCount }; typedef struct CTParagraphStyleSetting { CTParagraphStyleSpecifier spec; size_t valueSize; const void * value; } CTParagraphStyleSetting; CTParagraphStyleRef CTParagraphStyleCreate( const CTParagraphStyleSetting * _Nullable settings, size_t settingCount ) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); CTParagraphStyleRef CTParagraphStyleCreateCopy( CTParagraphStyleRef paragraphStyle ) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); bool CTParagraphStyleGetValueForSpecifier( CTParagraphStyleRef paragraphStyle, CTParagraphStyleSpecifier spec, size_t valueBufferSize, void * valueBuffer ) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end } #pragma clang assume_nonnull begin typedef NSInteger NSTextAlignment; enum { NSTextAlignmentLeft = 0, NSTextAlignmentCenter = 1, NSTextAlignmentRight = 2, NSTextAlignmentJustified = 3, NSTextAlignmentNatural = 4 } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSWritingDirection; enum { NSWritingDirectionNatural = -1, NSWritingDirectionLeftToRight = 0, NSWritingDirectionRightToLeft = 1 } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) CTTextAlignment NSTextAlignmentToCTTextAlignment(NSTextAlignment nsTextAlignment) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSTextAlignment NSTextAlignmentFromCTTextAlignment(CTTextAlignment ctTextAlignment) __attribute__((availability(ios,introduced=6.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger NSLineBreakMode; enum { NSLineBreakByWordWrapping = 0, NSLineBreakByCharWrapping, NSLineBreakByClipping, NSLineBreakByTruncatingHead, NSLineBreakByTruncatingTail, NSLineBreakByTruncatingMiddle } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSUInteger NSLineBreakStrategy; enum { NSLineBreakStrategyNone = 0, NSLineBreakStrategyPushOut __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) = 1 << 0, NSLineBreakStrategyHangulWordPriority __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) = 1 << 1, NSLineBreakStrategyStandard __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=14.0))) = 0xFFFF }; typedef NSString * NSTextTabOptionKey __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) NSTextTabOptionKey const NSTabColumnTerminatorsAttributeName __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_NSTextTab #define _REWRITER_typedef_NSTextTab typedef struct objc_object NSTextTab; typedef struct {} _objc_exc_NSTextTab; #endif struct NSTextTab_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSCharacterSet *)columnTerminatorsForLocale:(nullable NSLocale *)aLocale __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (instancetype)initWithTextAlignment:(NSTextAlignment)alignment location:(CGFloat)loc options:(NSDictionary<NSTextTabOptionKey, id> *)options __attribute__((objc_designated_initializer)); // @property (readonly, nonatomic) NSTextAlignment alignment; // @property (readonly, nonatomic) CGFloat location; // @property (readonly, nonatomic) NSDictionary<NSTextTabOptionKey, id> *options; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_NSParagraphStyle #define _REWRITER_typedef_NSParagraphStyle typedef struct objc_object NSParagraphStyle; typedef struct {} _objc_exc_NSParagraphStyle; #endif struct NSParagraphStyle_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, readonly, copy, nonatomic) NSParagraphStyle *defaultParagraphStyle; // + (NSWritingDirection)defaultWritingDirectionForLanguage:(nullable NSString *)languageName; // @property (readonly, nonatomic) CGFloat lineSpacing; // @property (readonly, nonatomic) CGFloat paragraphSpacing; // @property (readonly, nonatomic) NSTextAlignment alignment; // @property (readonly, nonatomic) CGFloat headIndent; // @property (readonly, nonatomic) CGFloat tailIndent; // @property (readonly, nonatomic) CGFloat firstLineHeadIndent; // @property (readonly, nonatomic) CGFloat minimumLineHeight; // @property (readonly, nonatomic) CGFloat maximumLineHeight; // @property (readonly, nonatomic) NSLineBreakMode lineBreakMode; // @property (readonly, nonatomic) NSWritingDirection baseWritingDirection; // @property (readonly, nonatomic) CGFloat lineHeightMultiple; // @property (readonly, nonatomic) CGFloat paragraphSpacingBefore; // @property (readonly, nonatomic) float hyphenationFactor; // @property (readonly,copy, nonatomic) NSArray<NSTextTab *> *tabStops __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // @property (readonly, nonatomic) CGFloat defaultTabInterval __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // @property (readonly, nonatomic) BOOL allowsDefaultTighteningForTruncation __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); // @property (readonly, nonatomic) NSLineBreakStrategy lineBreakStrategy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_NSMutableParagraphStyle #define _REWRITER_typedef_NSMutableParagraphStyle typedef struct objc_object NSMutableParagraphStyle; typedef struct {} _objc_exc_NSMutableParagraphStyle; #endif struct NSMutableParagraphStyle_IMPL { struct NSParagraphStyle_IMPL NSParagraphStyle_IVARS; }; // @property (nonatomic) CGFloat lineSpacing; // @property (nonatomic) CGFloat paragraphSpacing; // @property (nonatomic) NSTextAlignment alignment; // @property (nonatomic) CGFloat firstLineHeadIndent; // @property (nonatomic) CGFloat headIndent; // @property (nonatomic) CGFloat tailIndent; // @property (nonatomic) NSLineBreakMode lineBreakMode; // @property (nonatomic) CGFloat minimumLineHeight; // @property (nonatomic) CGFloat maximumLineHeight; // @property (nonatomic) NSWritingDirection baseWritingDirection; // @property (nonatomic) CGFloat lineHeightMultiple; // @property (nonatomic) CGFloat paragraphSpacingBefore; // @property (nonatomic) float hyphenationFactor; // @property (null_resettable, copy, nonatomic) NSArray<NSTextTab *> *tabStops __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat defaultTabInterval __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) BOOL allowsDefaultTighteningForTruncation __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) NSLineBreakStrategy lineBreakStrategy __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); // - (void)addTabStop:(NSTextTab *)anObject __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // - (void)removeTabStop:(NSTextTab *)anObject __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // - (void)setParagraphStyle:(NSParagraphStyle *)obj __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_NSShadow #define _REWRITER_typedef_NSShadow typedef struct objc_object NSShadow; typedef struct {} _objc_exc_NSShadow; #endif struct NSShadow_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, assign) CGSize shadowOffset; // @property (nonatomic, assign) CGFloat shadowBlurRadius; // @property (nullable, nonatomic, strong) id shadowColor; /* @end */ #pragma clang assume_nonnull end // @class NSStringDrawingContext; #ifndef _REWRITER_typedef_NSStringDrawingContext #define _REWRITER_typedef_NSStringDrawingContext typedef struct objc_object NSStringDrawingContext; typedef struct {} _objc_exc_NSStringDrawingContext; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_NSStringDrawingContext #define _REWRITER_typedef_NSStringDrawingContext typedef struct objc_object NSStringDrawingContext; typedef struct {} _objc_exc_NSStringDrawingContext; #endif struct NSStringDrawingContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic) CGFloat minimumScaleFactor; // @property (readonly, nonatomic) CGFloat actualScaleFactor; // @property (readonly, nonatomic) CGRect totalBounds; /* @end */ // @interface NSString(NSStringDrawing) // - (CGSize)sizeWithAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (void)drawAtPoint:(CGPoint)point withAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (void)drawInRect:(CGRect)rect withAttributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface NSAttributedString(NSStringDrawing) // - (CGSize)size __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); // - (void)drawAtPoint:(CGPoint)point __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); // - (void)drawInRect:(CGRect)rect __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); /* @end */ typedef NSInteger NSStringDrawingOptions; enum { NSStringDrawingUsesLineFragmentOrigin = 1 << 0, NSStringDrawingUsesFontLeading = 1 << 1, NSStringDrawingUsesDeviceMetrics = 1 << 3, NSStringDrawingTruncatesLastVisibleLine __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=6.0))) = 1 << 5, } __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=6.0))); // @interface NSString (NSExtendedStringDrawing) // - (void)drawWithRect:(CGRect)rect options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes context:(nullable NSStringDrawingContext *)context __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attributes context:(nullable NSStringDrawingContext *)context __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface NSAttributedString (NSExtendedStringDrawing) // - (void)drawWithRect:(CGRect)rect options:(NSStringDrawingOptions)options context:(nullable NSStringDrawingContext *)context __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=6.0))); // - (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options context:(nullable NSStringDrawingContext *)context __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface NSStringDrawingContext (NSStringDrawingContextDeprecated) // @property (nonatomic) CGFloat minimumTrackingAdjustment __attribute__((availability(ios,introduced=6.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) CGFloat actualTrackingAdjustment __attribute__((availability(ios,introduced=6.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef double UIAccelerationValue __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="UIAcceleration has been replaced by the CoreMotion framework"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="UIAcceleration has been replaced by the CoreMotion framework"))); // @protocol UIAccelerometerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message="UIAcceleration has been replaced by the CoreMotion framework"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIAcceleration #define _REWRITER_typedef_UIAcceleration typedef struct objc_object UIAcceleration; typedef struct {} _objc_exc_UIAcceleration; #endif struct UIAcceleration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) NSTimeInterval timestamp; // @property(nonatomic,readonly) UIAccelerationValue x; // @property(nonatomic,readonly) UIAccelerationValue y; // @property(nonatomic,readonly) UIAccelerationValue z; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message="UIAccelerometer has been replaced by the CoreMotion framework"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIAccelerometer #define _REWRITER_typedef_UIAccelerometer typedef struct objc_object UIAccelerometer; typedef struct {} _objc_exc_UIAccelerometer; #endif struct UIAccelerometer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIAccelerometer *)sharedAccelerometer; // @property(nonatomic) NSTimeInterval updateInterval; // @property(nullable,nonatomic,weak) id<UIAccelerometerDelegate> delegate; /* @end */ __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="UIAcceleration has been replaced by the CoreMotion framework"))) // @protocol UIAccelerometerDelegate<NSObject> /* @optional */ // - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end extern "C" { extern __attribute__((visibility("default"))) CFTimeInterval CACurrentMediaTime (void) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))); } struct CATransform3D { CGFloat m11, m12, m13, m14; CGFloat m21, m22, m23, m24; CGFloat m31, m32, m33, m34; CGFloat m41, m42, m43, m44; }; typedef struct __attribute__((objc_boxable)) CATransform3D CATransform3D; extern "C" { extern __attribute__((visibility("default"))) const CATransform3D CATransform3DIdentity __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) bool CATransform3DIsIdentity (CATransform3D t) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) bool CATransform3DEqualToTransform (CATransform3D a, CATransform3D b) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DMakeTranslation (CGFloat tx, CGFloat ty, CGFloat tz) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DMakeScale (CGFloat sx, CGFloat sy, CGFloat sz) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DMakeRotation (CGFloat angle, CGFloat x, CGFloat y, CGFloat z) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DTranslate (CATransform3D t, CGFloat tx, CGFloat ty, CGFloat tz) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DScale (CATransform3D t, CGFloat sx, CGFloat sy, CGFloat sz) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DRotate (CATransform3D t, CGFloat angle, CGFloat x, CGFloat y, CGFloat z) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DConcat (CATransform3D a, CATransform3D b) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DInvert (CATransform3D t) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransform3D CATransform3DMakeAffineTransform (CGAffineTransform m) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) bool CATransform3DIsAffine (CATransform3D t) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CGAffineTransform CATransform3DGetAffineTransform (CATransform3D t) __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); } #pragma clang assume_nonnull begin // @interface NSValue (CATransform3DAdditions) // + (NSValue *)valueWithCATransform3D:(CATransform3D)t; // @property(readonly) CATransform3D CATransform3DValue; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif typedef NSString * CAMediaTimingFillMode __attribute__((swift_wrapper(enum))); #pragma clang assume_nonnull begin // @protocol CAMediaTiming // @property CFTimeInterval beginTime; // @property CFTimeInterval duration; // @property float speed; // @property CFTimeInterval timeOffset; // @property float repeatCount; // @property CFTimeInterval repeatDuration; // @property BOOL autoreverses; // @property(copy) CAMediaTimingFillMode fillMode; /* @end */ extern __attribute__((visibility("default"))) CAMediaTimingFillMode const kCAFillModeForwards __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFillMode const kCAFillModeBackwards __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFillMode const kCAFillModeBoth __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFillMode const kCAFillModeRemoved __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class NSEnumerator; #ifndef _REWRITER_typedef_NSEnumerator #define _REWRITER_typedef_NSEnumerator typedef struct objc_object NSEnumerator; typedef struct {} _objc_exc_NSEnumerator; #endif #ifndef _REWRITER_typedef_CAAnimation #define _REWRITER_typedef_CAAnimation typedef struct objc_object CAAnimation; typedef struct {} _objc_exc_CAAnimation; #endif #ifndef _REWRITER_typedef_CALayerArray #define _REWRITER_typedef_CALayerArray typedef struct objc_object CALayerArray; typedef struct {} _objc_exc_CALayerArray; #endif // @protocol CAAction, CALayerDelegate; #pragma clang assume_nonnull begin typedef NSString * CALayerContentsGravity __attribute__((swift_wrapper(enum))); typedef NSString * CALayerContentsFormat __attribute__((swift_wrapper(enum))); typedef NSString * CALayerContentsFilter __attribute__((swift_wrapper(enum))); typedef NSString * CALayerCornerCurve __attribute__((swift_wrapper(enum))); typedef unsigned int CAEdgeAntialiasingMask; enum { kCALayerLeftEdge = 1U << 0, kCALayerRightEdge = 1U << 1, kCALayerBottomEdge = 1U << 2, kCALayerTopEdge = 1U << 3, }; typedef NSUInteger CACornerMask; enum { kCALayerMinXMinYCorner = 1U << 0, kCALayerMaxXMinYCorner = 1U << 1, kCALayerMinXMaxYCorner = 1U << 2, kCALayerMaxXMaxYCorner = 1U << 3, }; __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CALayer #define _REWRITER_typedef_CALayer typedef struct objc_object CALayer; typedef struct {} _objc_exc_CALayer; #endif struct _CALayerIvars { int32_t refcount; uint32_t magic; void * _Nonnull layer; } ; struct CALayer_IMPL { struct NSObject_IMPL NSObject_IVARS; struct _CALayerIvars _attr; }; // + (instancetype)layer; // - (instancetype)init; // - (instancetype)initWithLayer:(id)layer; // - (nullable instancetype)presentationLayer; // - (instancetype)modelLayer; // + (nullable id)defaultValueForKey:(NSString *)key; // + (BOOL)needsDisplayForKey:(NSString *)key; // - (BOOL)shouldArchiveValueForKey:(NSString *)key; // @property CGRect bounds; // @property CGPoint position; // @property CGFloat zPosition; // @property CGPoint anchorPoint; // @property CGFloat anchorPointZ; // @property CATransform3D transform; // - (CGAffineTransform)affineTransform; // - (void)setAffineTransform:(CGAffineTransform)m; // @property CGRect frame; // @property(getter=isHidden) BOOL hidden; // @property(getter=isDoubleSided) BOOL doubleSided; // @property(getter=isGeometryFlipped) BOOL geometryFlipped; // - (BOOL)contentsAreFlipped; // @property(nullable, readonly) CALayer *superlayer; // - (void)removeFromSuperlayer; // @property(nullable, copy) NSArray<__kindof CALayer *> *sublayers; // - (void)addSublayer:(CALayer *)layer; // - (void)insertSublayer:(CALayer *)layer atIndex:(unsigned)idx; // - (void)insertSublayer:(CALayer *)layer below:(nullable CALayer *)sibling; // - (void)insertSublayer:(CALayer *)layer above:(nullable CALayer *)sibling; // - (void)replaceSublayer:(CALayer *)oldLayer with:(CALayer *)newLayer; // @property CATransform3D sublayerTransform; // @property(nullable, strong) __kindof CALayer *mask; // @property BOOL masksToBounds; // - (CGPoint)convertPoint:(CGPoint)p fromLayer:(nullable CALayer *)l; // - (CGPoint)convertPoint:(CGPoint)p toLayer:(nullable CALayer *)l; // - (CGRect)convertRect:(CGRect)r fromLayer:(nullable CALayer *)l; // - (CGRect)convertRect:(CGRect)r toLayer:(nullable CALayer *)l; // - (CFTimeInterval)convertTime:(CFTimeInterval)t fromLayer:(nullable CALayer *)l; // - (CFTimeInterval)convertTime:(CFTimeInterval)t toLayer:(nullable CALayer *)l; // - (nullable __kindof CALayer *)hitTest:(CGPoint)p; // - (BOOL)containsPoint:(CGPoint)p; // @property(nullable, strong) id contents; // @property CGRect contentsRect; // @property(copy) CALayerContentsGravity contentsGravity; // @property CGFloat contentsScale __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property CGRect contentsCenter; // @property(copy) CALayerContentsFormat contentsFormat __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property(copy) CALayerContentsFilter minificationFilter; // @property(copy) CALayerContentsFilter magnificationFilter; // @property float minificationFilterBias; // @property(getter=isOpaque) BOOL opaque; // - (void)display; // - (void)setNeedsDisplay; // - (void)setNeedsDisplayInRect:(CGRect)r; // - (BOOL)needsDisplay; // - (void)displayIfNeeded; // @property BOOL needsDisplayOnBoundsChange; // @property BOOL drawsAsynchronously __attribute__((availability(macos,introduced=10.8))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (void)drawInContext:(CGContextRef)ctx; // - (void)renderInContext:(CGContextRef)ctx; // @property CAEdgeAntialiasingMask edgeAntialiasingMask; // @property BOOL allowsEdgeAntialiasing __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property(nullable) CGColorRef backgroundColor; // @property CGFloat cornerRadius; // @property CACornerMask maskedCorners __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(copy) CALayerCornerCurve cornerCurve __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #if 0 + (CGFloat)cornerCurveExpansionFactor:(CALayerCornerCurve)curve __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); #endif // @property CGFloat borderWidth; // @property(nullable) CGColorRef borderColor; // @property float opacity; // @property BOOL allowsGroupOpacity __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // @property(nullable, strong) id compositingFilter; // @property(nullable, copy) NSArray *filters; // @property(nullable, copy) NSArray *backgroundFilters; // @property BOOL shouldRasterize; // @property CGFloat rasterizationScale; // @property(nullable) CGColorRef shadowColor; // @property float shadowOpacity; // @property CGSize shadowOffset; // @property CGFloat shadowRadius; // @property(nullable) CGPathRef shadowPath; // - (CGSize)preferredFrameSize; // - (void)setNeedsLayout; // - (BOOL)needsLayout; // - (void)layoutIfNeeded; // - (void)layoutSublayers; // + (nullable id<CAAction>)defaultActionForKey:(NSString *)event; // - (nullable id<CAAction>)actionForKey:(NSString *)event; // @property(nullable, copy) NSDictionary<NSString *, id<CAAction>> *actions; // - (void)addAnimation:(CAAnimation *)anim forKey:(nullable NSString *)key; // - (void)removeAllAnimations; // - (void)removeAnimationForKey:(NSString *)key; // - (nullable NSArray<NSString *> *)animationKeys; // - (nullable __kindof CAAnimation *)animationForKey:(NSString *)key; // @property(nullable, copy) NSString *name; // @property(nullable, weak) id <CALayerDelegate> delegate; // @property(nullable, copy) NSDictionary *style; /* @end */ // @protocol CAAction #if 0 - (void)runActionForKey:(NSString *)event object:(id)anObject arguments:(nullable NSDictionary *)dict; #endif /* @end */ // @interface NSNull (CAActionAdditions) <CAAction> /* @end */ // @protocol CALayerDelegate <NSObject> /* @optional */ // - (void)displayLayer:(CALayer *)layer; // - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx; #if 0 - (void)layerWillDraw:(CALayer *)layer __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); #endif // - (void)layoutSublayersOfLayer:(CALayer *)layer; // - (nullable id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event; /* @end */ extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityCenter __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityTop __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityBottom __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityLeft __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityRight __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityTopLeft __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityTopRight __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityBottomLeft __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityBottomRight __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityResize __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityResizeAspect __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsGravity const kCAGravityResizeAspectFill __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsFormat const kCAContentsFormatRGBA8Uint __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern __attribute__((visibility("default"))) CALayerContentsFormat const kCAContentsFormatRGBA16Float __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern __attribute__((visibility("default"))) CALayerContentsFormat const kCAContentsFormatGray8Uint __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); extern __attribute__((visibility("default"))) CALayerContentsFilter const kCAFilterNearest __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsFilter const kCAFilterLinear __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerContentsFilter const kCAFilterTrilinear __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CALayerCornerCurve const kCACornerCurveCircular __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern __attribute__((visibility("default"))) CALayerCornerCurve const kCACornerCurveContinuous __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); extern __attribute__((visibility("default"))) NSString * const kCAOnOrderIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) NSString * const kCAOnOrderOut __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) NSString * const kCATransition __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_CAMediaTimingFunction #define _REWRITER_typedef_CAMediaTimingFunction typedef struct objc_object CAMediaTimingFunction; typedef struct {} _objc_exc_CAMediaTimingFunction; #endif #ifndef _REWRITER_typedef_CAValueFunction #define _REWRITER_typedef_CAValueFunction typedef struct objc_object CAValueFunction; typedef struct {} _objc_exc_CAValueFunction; #endif // @protocol CAAnimationDelegate; #pragma clang assume_nonnull begin typedef NSString * CAAnimationCalculationMode __attribute__((swift_wrapper(enum))); typedef NSString * CAAnimationRotationMode __attribute__((swift_wrapper(enum))); typedef NSString * CATransitionType __attribute__((swift_wrapper(enum))); typedef NSString * CATransitionSubtype __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAAnimation #define _REWRITER_typedef_CAAnimation typedef struct objc_object CAAnimation; typedef struct {} _objc_exc_CAAnimation; #endif struct CAAnimation_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_attr; uint32_t _flags; }; // + (instancetype)animation; // + (nullable id)defaultValueForKey:(NSString *)key; // - (BOOL)shouldArchiveValueForKey:(NSString *)key; // @property(nullable, strong) CAMediaTimingFunction *timingFunction; // @property(nullable, strong) id <CAAnimationDelegate> delegate; // @property(getter=isRemovedOnCompletion) BOOL removedOnCompletion; /* @end */ // @protocol CAAnimationDelegate <NSObject> /* @optional */ // - (void)animationDidStart:(CAAnimation *)anim; // - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag; /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAPropertyAnimation #define _REWRITER_typedef_CAPropertyAnimation typedef struct objc_object CAPropertyAnimation; typedef struct {} _objc_exc_CAPropertyAnimation; #endif struct CAPropertyAnimation_IMPL { struct CAAnimation_IMPL CAAnimation_IVARS; }; // + (instancetype)animationWithKeyPath:(nullable NSString *)path; // @property(nullable, copy) NSString *keyPath; // @property(getter=isAdditive) BOOL additive; // @property(getter=isCumulative) BOOL cumulative; // @property(nullable, strong) CAValueFunction *valueFunction; /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CABasicAnimation #define _REWRITER_typedef_CABasicAnimation typedef struct objc_object CABasicAnimation; typedef struct {} _objc_exc_CABasicAnimation; #endif struct CABasicAnimation_IMPL { struct CAPropertyAnimation_IMPL CAPropertyAnimation_IVARS; }; // @property(nullable, strong) id fromValue; // @property(nullable, strong) id toValue; // @property(nullable, strong) id byValue; /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAKeyframeAnimation #define _REWRITER_typedef_CAKeyframeAnimation typedef struct objc_object CAKeyframeAnimation; typedef struct {} _objc_exc_CAKeyframeAnimation; #endif struct CAKeyframeAnimation_IMPL { struct CAPropertyAnimation_IMPL CAPropertyAnimation_IVARS; }; // @property(nullable, copy) NSArray *values; // @property(nullable) CGPathRef path; // @property(nullable, copy) NSArray<NSNumber *> *keyTimes; // @property(nullable, copy) NSArray<CAMediaTimingFunction *> *timingFunctions; // @property(copy) CAAnimationCalculationMode calculationMode; // @property(nullable, copy) NSArray<NSNumber *> *tensionValues; // @property(nullable, copy) NSArray<NSNumber *> *continuityValues; // @property(nullable, copy) NSArray<NSNumber *> *biasValues; // @property(nullable, copy) CAAnimationRotationMode rotationMode; /* @end */ extern __attribute__((visibility("default"))) CAAnimationCalculationMode const kCAAnimationLinear __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationCalculationMode const kCAAnimationDiscrete __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationCalculationMode const kCAAnimationPaced __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationCalculationMode const kCAAnimationCubic __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationCalculationMode const kCAAnimationCubicPaced __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationRotationMode const kCAAnimationRotateAuto __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAAnimationRotationMode const kCAAnimationRotateAutoReverse __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CASpringAnimation #define _REWRITER_typedef_CASpringAnimation typedef struct objc_object CASpringAnimation; typedef struct {} _objc_exc_CASpringAnimation; #endif struct CASpringAnimation_IMPL { struct CABasicAnimation_IMPL CABasicAnimation_IVARS; }; // @property CGFloat mass; // @property CGFloat stiffness; // @property CGFloat damping; // @property CGFloat initialVelocity; // @property(readonly) CFTimeInterval settlingDuration; /* @end */ __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CATransition #define _REWRITER_typedef_CATransition typedef struct objc_object CATransition; typedef struct {} _objc_exc_CATransition; #endif struct CATransition_IMPL { struct CAAnimation_IMPL CAAnimation_IVARS; }; // @property(copy) CATransitionType type; // @property(nullable, copy) CATransitionSubtype subtype; // @property float startProgress; // @property float endProgress; /* @end */ extern __attribute__((visibility("default"))) CATransitionType const kCATransitionFade __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionType const kCATransitionMoveIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionType const kCATransitionPush __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionType const kCATransitionReveal __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionSubtype const kCATransitionFromRight __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionSubtype const kCATransitionFromLeft __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionSubtype const kCATransitionFromTop __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATransitionSubtype const kCATransitionFromBottom __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAAnimationGroup #define _REWRITER_typedef_CAAnimationGroup typedef struct objc_object CAAnimationGroup; typedef struct {} _objc_exc_CAAnimationGroup; #endif struct CAAnimationGroup_IMPL { struct CAAnimation_IMPL CAAnimation_IVARS; }; // @property(nullable, copy) NSArray<CAAnimation *> *animations; /* @end */ #pragma clang assume_nonnull end // @class NSString; #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #ifndef _REWRITER_typedef_NSRunLoop #define _REWRITER_typedef_NSRunLoop typedef struct objc_object NSRunLoop; typedef struct {} _objc_exc_NSRunLoop; #endif #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(macos,unavailable))) #ifndef _REWRITER_typedef_CADisplayLink #define _REWRITER_typedef_CADisplayLink typedef struct objc_object CADisplayLink; typedef struct {} _objc_exc_CADisplayLink; #endif struct CADisplayLink_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_impl; }; // + (CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel; // - (void)addToRunLoop:(NSRunLoop *)runloop forMode:(NSRunLoopMode)mode; // - (void)removeFromRunLoop:(NSRunLoop *)runloop forMode:(NSRunLoopMode)mode; // - (void)invalidate; // @property(readonly, nonatomic) CFTimeInterval timestamp; // @property(readonly, nonatomic) CFTimeInterval duration; // @property(readonly, nonatomic) CFTimeInterval targetTimestamp __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); // @property(getter=isPaused, nonatomic) BOOL paused; // @property(nonatomic) NSInteger frameInterval __attribute__((availability(ios,introduced=3.1,deprecated=10.0,message="preferredFramesPerSecond"))) __attribute__((availability(watchos,introduced=2.0,deprecated=3.0,message="preferredFramesPerSecond"))) __attribute__((availability(tvos,introduced=9.0,deprecated=10.0,message="preferredFramesPerSecond"))); // @property(nonatomic) NSInteger preferredFramesPerSecond __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSString * const kEAGLDrawablePropertyRetainedBacking __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); extern "C" __attribute__((visibility ("default"))) NSString * const kEAGLDrawablePropertyColorFormat __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); extern "C" __attribute__((visibility ("default"))) NSString * const kEAGLColorFormatRGBA8 __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); extern "C" __attribute__((visibility ("default"))) NSString * const kEAGLColorFormatRGB565 __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); extern "C" __attribute__((visibility ("default"))) NSString * const kEAGLColorFormatSRGBA8 __attribute__((availability(ios,introduced=7.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))); __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) // @protocol EAGLDrawable // @property(nullable, copy) NSDictionary<NSString*, id>* drawableProperties; /* @end */ __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings)"))) // @interface EAGLContext (EAGLContextDrawableAdditions) // - (BOOL)renderbufferStorage:(NSUInteger)target fromDrawable:(nullable id<EAGLDrawable>)drawable; // - (BOOL)presentRenderbuffer:(NSUInteger)target; // - (BOOL)presentRenderbuffer:(NSUInteger)target atTime:(CFTimeInterval)presentationTime; // - (BOOL)presentRenderbuffer:(NSUInteger)target afterMinimumDuration:(CFTimeInterval)duration; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="OpenGLES is deprecated"))) __attribute__((availability(watchos,introduced=2.0,deprecated=5.0,message="OpenGLES is deprecated"))) __attribute__((availability(tvos,introduced=9.0,deprecated=12.0,message="OpenGLES is deprecated"))) __attribute__((availability(macos,unavailable))) #ifndef _REWRITER_typedef_CAEAGLLayer #define _REWRITER_typedef_CAEAGLLayer typedef struct objc_object CAEAGLLayer; typedef struct {} _objc_exc_CAEAGLLayer; #endif struct CAEAGLLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; struct _CAEAGLNativeWindow *_win; }; // @property BOOL presentsWithTransaction __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol MTLDrawable; typedef void (*MTLDrawablePresentedHandler)(id/*<MTLDrawable>*/); __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) // @protocol MTLDrawable <NSObject> // - (void)present; // - (void)presentAtTime:(CFTimeInterval)presentationTime; /* @end */ #pragma clang assume_nonnull end // @protocol MTLDevice; // @protocol MTLTexture; // @protocol MTLDrawable; // @class CAMetalLayer; #ifndef _REWRITER_typedef_CAMetalLayer #define _REWRITER_typedef_CAMetalLayer typedef struct objc_object CAMetalLayer; typedef struct {} _objc_exc_CAMetalLayer; #endif #pragma clang assume_nonnull begin // @protocol CAMetalDrawable <MTLDrawable> // @property(readonly) id<MTLTexture> texture; // @property(readonly) CAMetalLayer *layer; /* @end */ __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_CAMetalLayer #define _REWRITER_typedef_CAMetalLayer typedef struct objc_object CAMetalLayer; typedef struct {} _objc_exc_CAMetalLayer; #endif struct CAMetalLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; struct _CAMetalLayerPrivate *_priv; }; // @property(nullable, retain) id<MTLDevice> device; // @property(nullable, readonly) id<MTLDevice> preferredDevice __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // @property MTLPixelFormat pixelFormat; // @property BOOL framebufferOnly; // @property CGSize drawableSize; // - (nullable id<CAMetalDrawable>)nextDrawable; // @property NSUInteger maximumDrawableCount __attribute__((availability(macos,introduced=10.13.2))) __attribute__((availability(ios,introduced=11.2))) __attribute__((availability(watchos,introduced=4.2))) __attribute__((availability(tvos,introduced=11.2))); // @property BOOL presentsWithTransaction; // @property (nullable) CGColorSpaceRef colorspace; // @property BOOL allowsNextDrawableTimeout __attribute__((availability(macos,introduced=10.13))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAEmitterCell #define _REWRITER_typedef_CAEmitterCell typedef struct objc_object CAEmitterCell; typedef struct {} _objc_exc_CAEmitterCell; #endif struct CAEmitterCell_IMPL { struct NSObject_IMPL NSObject_IVARS; void *_attr[2]; void *_state; uint32_t _flags; }; // + (instancetype)emitterCell; // + (nullable id)defaultValueForKey:(NSString *)key; // - (BOOL)shouldArchiveValueForKey:(NSString *)key; // @property(nullable, copy) NSString *name; // @property(getter=isEnabled) BOOL enabled; // @property float birthRate; // @property float lifetime; // @property float lifetimeRange; // @property CGFloat emissionLatitude; // @property CGFloat emissionLongitude; // @property CGFloat emissionRange; // @property CGFloat velocity; // @property CGFloat velocityRange; // @property CGFloat xAcceleration; // @property CGFloat yAcceleration; // @property CGFloat zAcceleration; // @property CGFloat scale; // @property CGFloat scaleRange; // @property CGFloat scaleSpeed; // @property CGFloat spin; // @property CGFloat spinRange; // @property(nullable) CGColorRef color; // @property float redRange; // @property float greenRange; // @property float blueRange; // @property float alphaRange; // @property float redSpeed; // @property float greenSpeed; // @property float blueSpeed; // @property float alphaSpeed; // @property(nullable, strong) id contents; // @property CGRect contentsRect; // @property CGFloat contentsScale; // @property(copy) NSString *minificationFilter; // @property(copy) NSString *magnificationFilter; // @property float minificationFilterBias; // @property(nullable, copy) NSArray<CAEmitterCell *> *emitterCells; // @property(nullable, copy) NSDictionary *style; /* @end */ #pragma clang assume_nonnull end typedef NSString * CAEmitterLayerEmitterShape __attribute__((swift_wrapper(enum))); typedef NSString * CAEmitterLayerEmitterMode __attribute__((swift_wrapper(enum))); typedef NSString * CAEmitterLayerRenderMode __attribute__((swift_wrapper(enum))); // @class CAEmitterCell; #ifndef _REWRITER_typedef_CAEmitterCell #define _REWRITER_typedef_CAEmitterCell typedef struct objc_object CAEmitterCell; typedef struct {} _objc_exc_CAEmitterCell; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAEmitterLayer #define _REWRITER_typedef_CAEmitterLayer typedef struct objc_object CAEmitterLayer; typedef struct {} _objc_exc_CAEmitterLayer; #endif struct CAEmitterLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // @property(nullable, copy) NSArray<CAEmitterCell *> *emitterCells; // @property float birthRate; // @property float lifetime; // @property CGPoint emitterPosition; // @property CGFloat emitterZPosition; // @property CGSize emitterSize; // @property CGFloat emitterDepth; // @property(copy) CAEmitterLayerEmitterShape emitterShape; // @property(copy) CAEmitterLayerEmitterMode emitterMode; // @property(copy) CAEmitterLayerRenderMode renderMode; // @property BOOL preservesDepth; // @property float velocity; // @property float scale; // @property float spin; // @property unsigned int seed; /* @end */ extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerPoint __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerLine __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerRectangle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerCuboid __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerCircle __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterShape const kCAEmitterLayerSphere __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterMode const kCAEmitterLayerPoints __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterMode const kCAEmitterLayerOutline __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterMode const kCAEmitterLayerSurface __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerEmitterMode const kCAEmitterLayerVolume __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerRenderMode const kCAEmitterLayerUnordered __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerRenderMode const kCAEmitterLayerOldestFirst __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerRenderMode const kCAEmitterLayerOldestLast __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerRenderMode const kCAEmitterLayerBackToFront __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAEmitterLayerRenderMode const kCAEmitterLayerAdditive __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSString #define _REWRITER_typedef_NSString typedef struct objc_object NSString; typedef struct {} _objc_exc_NSString; #endif #pragma clang assume_nonnull begin typedef NSString * CAMediaTimingFunctionName __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAMediaTimingFunction #define _REWRITER_typedef_CAMediaTimingFunction typedef struct objc_object CAMediaTimingFunction; typedef struct {} _objc_exc_CAMediaTimingFunction; #endif struct CAMediaTimingFunction_IMPL { struct NSObject_IMPL NSObject_IVARS; struct CAMediaTimingFunctionPrivate *_priv; }; // + (instancetype)functionWithName:(CAMediaTimingFunctionName)name; // + (instancetype)functionWithControlPoints:(float)c1x :(float)c1y :(float)c2x :(float)c2y; // - (instancetype)initWithControlPoints:(float)c1x :(float)c1y :(float)c2x :(float)c2y; // - (void)getControlPointAtIndex:(size_t)idx values:(float[_Nonnull 2])ptr; /* @end */ extern __attribute__((visibility("default"))) CAMediaTimingFunctionName const kCAMediaTimingFunctionLinear __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFunctionName const kCAMediaTimingFunctionEaseIn __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFunctionName const kCAMediaTimingFunctionEaseOut __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFunctionName const kCAMediaTimingFunctionEaseInEaseOut __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAMediaTimingFunctionName const kCAMediaTimingFunctionDefault __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * CAGradientLayerType __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAGradientLayer #define _REWRITER_typedef_CAGradientLayer typedef struct objc_object CAGradientLayer; typedef struct {} _objc_exc_CAGradientLayer; #endif struct CAGradientLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // @property(nullable, copy) NSArray *colors; // @property(nullable, copy) NSArray<NSNumber *> *locations; // @property CGPoint startPoint; // @property CGPoint endPoint; // @property(copy) CAGradientLayerType type; /* @end */ extern __attribute__((visibility("default"))) CAGradientLayerType const kCAGradientLayerAxial __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAGradientLayerType const kCAGradientLayerRadial __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAGradientLayerType const kCAGradientLayerConic __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAReplicatorLayer #define _REWRITER_typedef_CAReplicatorLayer typedef struct objc_object CAReplicatorLayer; typedef struct {} _objc_exc_CAReplicatorLayer; #endif struct CAReplicatorLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // @property NSInteger instanceCount; // @property BOOL preservesDepth; // @property CFTimeInterval instanceDelay; // @property CATransform3D instanceTransform; // @property(nullable) CGColorRef instanceColor; // @property float instanceRedOffset; // @property float instanceGreenOffset; // @property float instanceBlueOffset; // @property float instanceAlphaOffset; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * CAScrollLayerScrollMode __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAScrollLayer #define _REWRITER_typedef_CAScrollLayer typedef struct objc_object CAScrollLayer; typedef struct {} _objc_exc_CAScrollLayer; #endif struct CAScrollLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // - (void)scrollToPoint:(CGPoint)p; // - (void)scrollToRect:(CGRect)r; // @property(copy) CAScrollLayerScrollMode scrollMode; /* @end */ // @interface CALayer (CALayerScrolling) // - (void)scrollPoint:(CGPoint)p; // - (void)scrollRectToVisible:(CGRect)r; // @property(readonly) CGRect visibleRect; /* @end */ extern __attribute__((visibility("default"))) CAScrollLayerScrollMode const kCAScrollNone __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAScrollLayerScrollMode const kCAScrollVertically __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAScrollLayerScrollMode const kCAScrollHorizontally __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAScrollLayerScrollMode const kCAScrollBoth __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * CAShapeLayerFillRule __attribute__((swift_wrapper(enum))); typedef NSString * CAShapeLayerLineJoin __attribute__((swift_wrapper(enum))); typedef NSString * CAShapeLayerLineCap __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAShapeLayer #define _REWRITER_typedef_CAShapeLayer typedef struct objc_object CAShapeLayer; typedef struct {} _objc_exc_CAShapeLayer; #endif struct CAShapeLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // @property(nullable) CGPathRef path; // @property(nullable) CGColorRef fillColor; // @property(copy) CAShapeLayerFillRule fillRule; // @property(nullable) CGColorRef strokeColor; // @property CGFloat strokeStart; // @property CGFloat strokeEnd; // @property CGFloat lineWidth; // @property CGFloat miterLimit; // @property(copy) CAShapeLayerLineCap lineCap; // @property(copy) CAShapeLayerLineJoin lineJoin; // @property CGFloat lineDashPhase; // @property(nullable, copy) NSArray<NSNumber *> *lineDashPattern; /* @end */ extern __attribute__((visibility("default"))) CAShapeLayerFillRule const kCAFillRuleNonZero __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerFillRule const kCAFillRuleEvenOdd __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineJoin const kCALineJoinMiter __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineJoin const kCALineJoinRound __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineJoin const kCALineJoinBevel __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineCap const kCALineCapButt __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineCap const kCALineCapRound __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAShapeLayerLineCap const kCALineCapSquare __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * CATextLayerTruncationMode __attribute__((swift_wrapper(enum))); typedef NSString * CATextLayerAlignmentMode __attribute__((swift_wrapper(enum))); __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CATextLayer #define _REWRITER_typedef_CATextLayer typedef struct objc_object CATextLayer; typedef struct {} _objc_exc_CATextLayer; #endif struct CATextLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; struct CATextLayerPrivate *_state; }; // @property(nullable, copy) id string; // @property(nullable) CFTypeRef font; // @property CGFloat fontSize; // @property(nullable) CGColorRef foregroundColor; // @property(getter=isWrapped) BOOL wrapped; // @property(copy) CATextLayerTruncationMode truncationMode; // @property(copy) CATextLayerAlignmentMode alignmentMode; // @property BOOL allowsFontSubpixelQuantization; /* @end */ extern __attribute__((visibility("default"))) CATextLayerTruncationMode const kCATruncationNone __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerTruncationMode const kCATruncationStart __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerTruncationMode const kCATruncationEnd __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerTruncationMode const kCATruncationMiddle __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerAlignmentMode const kCAAlignmentNatural __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerAlignmentMode const kCAAlignmentLeft __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerAlignmentMode const kCAAlignmentRight __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerAlignmentMode const kCAAlignmentCenter __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CATextLayerAlignmentMode const kCAAlignmentJustified __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CATiledLayer #define _REWRITER_typedef_CATiledLayer typedef struct objc_object CATiledLayer; typedef struct {} _objc_exc_CATiledLayer; #endif struct CATiledLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; // + (CFTimeInterval)fadeDuration; // @property size_t levelsOfDetail; // @property size_t levelsOfDetailBias; // @property CGSize tileSize; /* @end */ #pragma clang assume_nonnull end // @class CAMediaTimingFunction; #ifndef _REWRITER_typedef_CAMediaTimingFunction #define _REWRITER_typedef_CAMediaTimingFunction typedef struct objc_object CAMediaTimingFunction; typedef struct {} _objc_exc_CAMediaTimingFunction; #endif #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CATransaction #define _REWRITER_typedef_CATransaction typedef struct objc_object CATransaction; typedef struct {} _objc_exc_CATransaction; #endif struct CATransaction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (void)begin; // + (void)commit; // + (void)flush; // + (void)lock; // + (void)unlock; // + (CFTimeInterval)animationDuration; // + (void)setAnimationDuration:(CFTimeInterval)dur; // + (nullable CAMediaTimingFunction *)animationTimingFunction; // + (void)setAnimationTimingFunction:(nullable CAMediaTimingFunction *)function; // + (BOOL)disableActions; // + (void)setDisableActions:(BOOL)flag; // + (nullable void (^)(void))completionBlock; // + (void)setCompletionBlock:(nullable void (^)(void))block; // + (nullable id)valueForKey:(NSString *)key; // + (void)setValue:(nullable id)anObject forKey:(NSString *)key; /* @end */ extern __attribute__((visibility("default"))) NSString * const kCATransactionAnimationDuration __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) NSString * const kCATransactionDisableActions __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) NSString * const kCATransactionAnimationTimingFunction __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) NSString * const kCATransactionCompletionBlock __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CATransformLayer #define _REWRITER_typedef_CATransformLayer typedef struct objc_object CATransformLayer; typedef struct {} _objc_exc_CATransformLayer; #endif struct CATransformLayer_IMPL { struct CALayer_IMPL CALayer_IVARS; }; /* @end */ #pragma clang assume_nonnull end typedef NSString * CAValueFunctionName __attribute__((swift_wrapper(enum))); #pragma clang assume_nonnull begin __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_CAValueFunction #define _REWRITER_typedef_CAValueFunction typedef struct objc_object CAValueFunction; typedef struct {} _objc_exc_CAValueFunction; #endif struct CAValueFunction_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_string; void *_impl; }; // + (nullable instancetype)functionWithName:(CAValueFunctionName)name; // @property(readonly) CAValueFunctionName name; /* @end */ extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionRotateX __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionRotateY __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionRotateZ __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionScale __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionScaleX __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionScaleY __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionScaleZ __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionTranslate __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionTranslateX __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionTranslateY __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); extern __attribute__((visibility("default"))) CAValueFunctionName const kCAValueFunctionTranslateZ __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); #pragma clang assume_nonnull end // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif typedef NSInteger UIMenuElementState; enum { UIMenuElementStateOff, UIMenuElementStateOn, UIMenuElementStateMixed } __attribute__((swift_name("UIMenuElement.State"))) __attribute__((availability(ios,introduced=13.0))); typedef NSUInteger UIMenuElementAttributes; enum { UIMenuElementAttributesDisabled = 1 << 0, UIMenuElementAttributesDestructive = 1 << 1, UIMenuElementAttributesHidden = 1 << 2 } __attribute__((swift_name("UIMenuElement.Attributes"))) __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIMenuElement #define _REWRITER_typedef_UIMenuElement typedef struct objc_object UIMenuElement; typedef struct {} _objc_exc_UIMenuElement; #endif struct UIMenuElement_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSString *title; // @property (nonatomic, nullable, readonly) UIImage *image; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end typedef NSString *UIMenuIdentifier __attribute__((swift_name("UIMenu.Identifier"))) __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))); typedef NSUInteger UIMenuOptions; enum { UIMenuOptionsDisplayInline = 1 << 0, UIMenuOptionsDestructive = 1 << 1, } __attribute__((swift_name("UIMenu.Options"))) __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIMenu #define _REWRITER_typedef_UIMenu typedef struct objc_object UIMenu; typedef struct {} _objc_exc_UIMenu; #endif struct UIMenu_IMPL { struct UIMenuElement_IMPL UIMenuElement_IVARS; }; // @property (nonatomic, readonly) UIMenuIdentifier identifier; // @property (nonatomic, readonly) UIMenuOptions options; // @property (nonatomic, readonly) NSArray<UIMenuElement *> *children; // + (UIMenu *)menuWithChildren:(NSArray<UIMenuElement *> *)children __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(swift, unavailable, message="Use init(title:image:identifier:options:children:) instead"))); #if 0 + (UIMenu *)menuWithTitle:(NSString *)title children:(NSArray<UIMenuElement *> *)children __attribute__((availability(swift, unavailable, message="Use init(title:image:identifier:options:children:) instead"))); #endif #if 0 + (UIMenu *)menuWithTitle:(NSString *)title image:(nullable UIImage *)image identifier:(nullable UIMenuIdentifier)identifier options:(UIMenuOptions)options children:(NSArray<UIMenuElement *> *)children __attribute__((availability(swift, unavailable, message="Use init(title:image:identifier:options:children:) instead"))); #endif // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (UIMenu *)menuByReplacingChildren:(NSArray<UIMenuElement *> *)newChildren; /* @end */ extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuApplication __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuFile __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuEdit __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuView __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuWindow __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuHelp __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuAbout __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuPreferences __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuServices __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuHide __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuQuit __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuNewScene __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuOpenRecent __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuClose __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuPrint __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuUndoRedo __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuStandardEdit __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuFind __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuReplace __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuShare __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuTextStyle __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSpelling __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSpellingPanel __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSpellingOptions __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSubstitutions __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSubstitutionsPanel __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSubstitutionOptions __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuTransformations __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuSpeech __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuLookup __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuLearn __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuFormat __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuFont __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuTextSize __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuTextColor __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuTextStylePasteboard __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuText __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuWritingDirection __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuAlignment __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuToolbar __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuFullscreen __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuMinimizeAndZoom __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuBringAllToFront __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) const UIMenuIdentifier UIMenuRoot __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull end typedef NSInteger UIKeyModifierFlags; enum { UIKeyModifierAlphaShift = 1 << 16, UIKeyModifierShift = 1 << 17, UIKeyModifierControl = 1 << 18, UIKeyModifierAlternate = 1 << 19, UIKeyModifierCommand = 1 << 20, UIKeyModifierNumericPad = 1 << 21, } __attribute__((availability(ios,introduced=7.0))); // @class UICommand; #ifndef _REWRITER_typedef_UICommand #define _REWRITER_typedef_UICommand typedef struct objc_object UICommand; typedef struct {} _objc_exc_UICommand; #endif // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UICommandAlternate #define _REWRITER_typedef_UICommandAlternate typedef struct objc_object UICommandAlternate; typedef struct {} _objc_exc_UICommandAlternate; #endif struct UICommandAlternate_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSString *title; // @property (nonatomic, readonly) SEL action; // @property (nonatomic, readonly) UIKeyModifierFlags modifierFlags; #if 0 + (instancetype)alternateWithTitle:(NSString *)title action:(SEL)action modifierFlags:(UIKeyModifierFlags)modifierFlags; #endif // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UICommand #define _REWRITER_typedef_UICommand typedef struct objc_object UICommand; typedef struct {} _objc_exc_UICommand; #endif struct UICommand_IMPL { struct UIMenuElement_IMPL UIMenuElement_IVARS; }; // @property (nonatomic, copy) NSString *title; // @property (nullable, nonatomic, copy) UIImage *image; // @property (nullable, nonatomic, copy) NSString *discoverabilityTitle; // @property (nonatomic, readonly) SEL action; // @property (nullable, nonatomic, readonly) id propertyList; // @property (nonatomic) UIMenuElementAttributes attributes; // @property (nonatomic) UIMenuElementState state; // @property (nonatomic, readonly) NSArray<UICommandAlternate *> *alternates; #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action propertyList:(nullable id)propertyList __attribute__((availability(swift, unavailable, message="Use init(title:image:action:propertyList:alternates:discoverabilityTitle:attributes:state:) instead."))); #endif #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action propertyList:(nullable id)propertyList alternates:(NSArray<UICommandAlternate *> *)alternates __attribute__((availability(swift, unavailable, message="Use init(title:image:action:propertyList:alternates:discoverabilityTitle:attributes:state:) instead."))); #endif // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString *const UICommandTagShare __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIWindow; #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIGestureRecognizer #define _REWRITER_typedef_UIGestureRecognizer typedef struct objc_object UIGestureRecognizer; typedef struct {} _objc_exc_UIGestureRecognizer; #endif #ifndef _REWRITER_typedef_UITouch #define _REWRITER_typedef_UITouch typedef struct objc_object UITouch; typedef struct {} _objc_exc_UITouch; #endif typedef NSInteger UIEventType; enum { UIEventTypeTouches, UIEventTypeMotion, UIEventTypeRemoteControl, UIEventTypePresses __attribute__((availability(ios,introduced=9.0))), UIEventTypeScroll __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))) = 10, UIEventTypeHover __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))) = 11, UIEventTypeTransform __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))) = 14, }; typedef NSInteger UIEventSubtype; enum { UIEventSubtypeNone = 0, UIEventSubtypeMotionShake = 1, UIEventSubtypeRemoteControlPlay = 100, UIEventSubtypeRemoteControlPause = 101, UIEventSubtypeRemoteControlStop = 102, UIEventSubtypeRemoteControlTogglePlayPause = 103, UIEventSubtypeRemoteControlNextTrack = 104, UIEventSubtypeRemoteControlPreviousTrack = 105, UIEventSubtypeRemoteControlBeginSeekingBackward = 106, UIEventSubtypeRemoteControlEndSeekingBackward = 107, UIEventSubtypeRemoteControlBeginSeekingForward = 108, UIEventSubtypeRemoteControlEndSeekingForward = 109, }; typedef NSInteger UIEventButtonMask; enum { UIEventButtonMaskPrimary = 1 << 0, UIEventButtonMaskSecondary = 1 << 1 } __attribute__((swift_name("UIEvent.ButtonMask"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIEventButtonMask UIEventButtonMaskForButtonNumber(NSInteger buttonNumber) __attribute__((swift_name("UIEventButtonMask.button(_:)"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif struct UIEvent_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) UIEventType type __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,readonly) UIEventSubtype subtype __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,readonly) NSTimeInterval timestamp; // @property (nonatomic, readonly) UIKeyModifierFlags modifierFlags __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) UIEventButtonMask buttonMask __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic, readonly, nullable) NSSet <UITouch *> *allTouches; // - (nullable NSSet <UITouch *> *)touchesForWindow:(UIWindow *)window; // - (nullable NSSet <UITouch *> *)touchesForView:(UIView *)view; // - (nullable NSSet <UITouch *> *)touchesForGestureRecognizer:(UIGestureRecognizer *)gesture __attribute__((availability(ios,introduced=3.2))); // - (nullable NSArray <UITouch *> *)coalescedTouchesForTouch:(UITouch *)touch __attribute__((availability(ios,introduced=9.0))); // - (nullable NSArray <UITouch *> *)predictedTouchesForTouch:(UITouch *)touch __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIKeyCommand #define _REWRITER_typedef_UIKeyCommand typedef struct objc_object UIKeyCommand; typedef struct {} _objc_exc_UIKeyCommand; #endif struct UIKeyCommand_IMPL { struct UICommand_IMPL UICommand_IVARS; }; #pragma clang diagnostic pop // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, copy) NSString *title __attribute__((availability(ios,introduced=13.0))); // @property (nullable, nonatomic, copy) UIImage *image __attribute__((availability(ios,introduced=13.0))); // @property (nullable, nonatomic, copy) NSString *discoverabilityTitle __attribute__((availability(ios,introduced=9.0))); // @property (nullable, nonatomic, readonly) SEL action; // @property (nullable, nonatomic, readonly) NSString *input; // @property (nonatomic, readonly) UIKeyModifierFlags modifierFlags; // @property (nullable, nonatomic, readonly) id propertyList __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic) UIMenuElementAttributes attributes __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic) UIMenuElementState state __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, readonly) NSArray<UICommandAlternate *> *alternates __attribute__((availability(ios,introduced=13.0))); #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action input:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags propertyList:(nullable id)propertyList __attribute__((availability(swift, unavailable, message="Use init(title:image:action:input:modifierFlags:propertyList:alternates:discoverabilityTitle:attributes:state:) instead."))); #endif #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action input:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags propertyList:(nullable id)propertyList alternates:(NSArray<UICommandAlternate *> *)alternates __attribute__((availability(swift, unavailable, message="Use init(title:image:action:input:modifierFlags:propertyList:alternates:discoverabilityTitle:attributes:state:) instead."))); #endif // + (instancetype)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action; // + (instancetype)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action discoverabilityTitle:(NSString *)discoverabilityTitle __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="keyCommandWithInput:modifierFlags:action:"))); #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action propertyList:(nullable id)propertyList __attribute__((unavailable)); #endif #if 0 + (instancetype)commandWithTitle:(NSString *)title image:(nullable UIImage *)image action:(SEL)action propertyList:(nullable id)propertyList alternates:(NSArray<UICommandAlternate *> *)alternates __attribute__((unavailable)); #endif /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPasteConfiguration; #ifndef _REWRITER_typedef_UIPasteConfiguration #define _REWRITER_typedef_UIPasteConfiguration typedef struct objc_object UIPasteConfiguration; typedef struct {} _objc_exc_UIPasteConfiguration; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UIPasteConfigurationSupporting <NSObject> // @property (nonatomic, copy, nullable) UIPasteConfiguration *pasteConfiguration; /* @optional */ // - (void)pasteItemProviders:(NSArray<NSItemProvider *> *)itemProviders; // - (BOOL)canPasteItemProviders:(NSArray<NSItemProvider *> *)itemProviders; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=8.0))) // @protocol UIUserActivityRestoring <NSObject> // - (void)restoreUserActivityState:(NSUserActivity *)userActivity; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIMenuBuilder; // @class UIPress; #ifndef _REWRITER_typedef_UIPress #define _REWRITER_typedef_UIPress typedef struct objc_object UIPress; typedef struct {} _objc_exc_UIPress; #endif // @class UIPressesEvent; #ifndef _REWRITER_typedef_UIPressesEvent #define _REWRITER_typedef_UIPressesEvent typedef struct objc_object UIPressesEvent; typedef struct {} _objc_exc_UIPressesEvent; #endif typedef NSDictionary<NSAttributedStringKey, id> * _Nonnull(*UITextAttributesConversionHandler)(NSDictionary<NSAttributedStringKey, id> * _Nonnull); typedef NSInteger UIEditingInteractionConfiguration; enum { UIEditingInteractionConfigurationNone = 0, UIEditingInteractionConfigurationDefault = 1, } __attribute__((availability(ios,introduced=13.0))); // @protocol UIResponderStandardEditActions <NSObject> /* @optional */ // - (void)cut:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (void)copy:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (void)paste:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (void)select:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (void)selectAll:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (void)delete:(nullable id)sender __attribute__((availability(ios,introduced=3.2))); // - (void)makeTextWritingDirectionLeftToRight:(nullable id)sender __attribute__((availability(ios,introduced=5.0))); // - (void)makeTextWritingDirectionRightToLeft:(nullable id)sender __attribute__((availability(ios,introduced=5.0))); // - (void)toggleBoldface:(nullable id)sender __attribute__((availability(ios,introduced=6.0))); // - (void)toggleItalics:(nullable id)sender __attribute__((availability(ios,introduced=6.0))); // - (void)toggleUnderline:(nullable id)sender __attribute__((availability(ios,introduced=6.0))); // - (void)increaseSize:(nullable id)sender __attribute__((availability(ios,introduced=7.0))); // - (void)decreaseSize:(nullable id)sender __attribute__((availability(ios,introduced=7.0))); // - (void)updateTextAttributesWithConversionHandler:(__attribute__((noescape)) UITextAttributesConversionHandler _Nonnull)conversionHandler __attribute__((availability(ios,introduced=13.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIResponder #define _REWRITER_typedef_UIResponder typedef struct objc_object UIResponder; typedef struct {} _objc_exc_UIResponder; #endif struct UIResponder_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic, readonly, nullable) UIResponder *nextResponder; // @property(nonatomic, readonly) BOOL canBecomeFirstResponder; // - (BOOL)becomeFirstResponder; // @property(nonatomic, readonly) BOOL canResignFirstResponder; // - (BOOL)resignFirstResponder; // @property(nonatomic, readonly) BOOL isFirstResponder; // - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event; // - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event; // - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event; // - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event; // - (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches __attribute__((availability(ios,introduced=9.1))); // - (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(nullable UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(nullable UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(nullable UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(nullable UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)motionBegan:(UIEventSubtype)motion withEvent:(nullable UIEvent *)event __attribute__((availability(ios,introduced=3.0))); // - (void)motionEnded:(UIEventSubtype)motion withEvent:(nullable UIEvent *)event __attribute__((availability(ios,introduced=3.0))); // - (void)motionCancelled:(UIEventSubtype)motion withEvent:(nullable UIEvent *)event __attribute__((availability(ios,introduced=3.0))); // - (void)remoteControlReceivedWithEvent:(nullable UIEvent *)event __attribute__((availability(ios,introduced=4.0))); // - (BOOL)canPerformAction:(SEL)action withSender:(nullable id)sender __attribute__((availability(ios,introduced=3.0))); // - (nullable id)targetForAction:(SEL)action withSender:(nullable id)sender __attribute__((availability(ios,introduced=7.0))); // - (void)buildMenuWithBuilder:(id<UIMenuBuilder>)builder __attribute__((availability(ios,introduced=13.0))); // - (void)validateCommand:(UICommand *)command __attribute__((availability(ios,introduced=13.0))); // @property(nullable, nonatomic,readonly) NSUndoManager *undoManager __attribute__((availability(ios,introduced=3.0))); // @property (nonatomic, readonly) UIEditingInteractionConfiguration editingInteractionConfiguration __attribute__((availability(ios,introduced=13.0))); /* @end */ // @interface UIResponder (UIResponderKeyCommands) // @property (nullable,nonatomic,readonly) NSArray<UIKeyCommand *> *keyCommands __attribute__((availability(ios,introduced=7.0))); /* @end */ // @class UIInputViewController; #ifndef _REWRITER_typedef_UIInputViewController #define _REWRITER_typedef_UIInputViewController typedef struct objc_object UIInputViewController; typedef struct {} _objc_exc_UIInputViewController; #endif // @class UITextInputMode; #ifndef _REWRITER_typedef_UITextInputMode #define _REWRITER_typedef_UITextInputMode typedef struct objc_object UITextInputMode; typedef struct {} _objc_exc_UITextInputMode; #endif // @class UITextInputAssistantItem; #ifndef _REWRITER_typedef_UITextInputAssistantItem #define _REWRITER_typedef_UITextInputAssistantItem typedef struct objc_object UITextInputAssistantItem; typedef struct {} _objc_exc_UITextInputAssistantItem; #endif // @interface UIResponder (UIResponderInputViewAdditions) // @property (nullable, nonatomic, readonly, strong) __kindof UIView *inputView __attribute__((availability(ios,introduced=3.2))); // @property (nullable, nonatomic, readonly, strong) __kindof UIView *inputAccessoryView __attribute__((availability(ios,introduced=3.2))); // @property (nonnull, nonatomic, readonly, strong) UITextInputAssistantItem *inputAssistantItem __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nullable, nonatomic, readonly, strong) UIInputViewController *inputViewController __attribute__((availability(ios,introduced=8.0))); // @property (nullable, nonatomic, readonly, strong) UIInputViewController *inputAccessoryViewController __attribute__((availability(ios,introduced=8.0))); // @property (nullable, nonatomic, readonly, strong) UITextInputMode *textInputMode __attribute__((availability(ios,introduced=7.0))); // @property (nullable, nonatomic, readonly, strong) NSString *textInputContextIdentifier __attribute__((availability(ios,introduced=7.0))); // + (void)clearTextInputContextIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=7.0))); // - (void)reloadInputViews __attribute__((availability(ios,introduced=3.2))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputUpArrow __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputDownArrow __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputLeftArrow __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputRightArrow __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputEscape __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputPageUp __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputPageDown __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputHome __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputEnd __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF1 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF1 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF2 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF3 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF4 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF5 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF6 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF7 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF8 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF9 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF10 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF11 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyInputF12 __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); // @interface UIResponder (ActivityContinuation) <UIUserActivityRestoring> // @property (nullable, nonatomic, strong) NSUserActivity *userActivity __attribute__((availability(ios,introduced=8.0))); // - (void)updateUserActivityState:(NSUserActivity *)activity __attribute__((availability(ios,introduced=8.0))); // - (void)restoreUserActivityState:(NSUserActivity *)activity __attribute__((availability(ios,introduced=8.0))); /* @end */ // @interface UIResponder (UIPasteConfigurationSupporting) <UIPasteConfigurationSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIBarStyle; enum { UIBarStyleDefault = 0, UIBarStyleBlack = 1, UIBarStyleBlackOpaque __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIBarStyleBlack instead."))) = 1, UIBarStyleBlackTranslucent __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIBarStyleBlack and set the translucent property to YES instead."))) = 2, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIUserInterfaceSizeClass; enum { UIUserInterfaceSizeClassUnspecified = 0, UIUserInterfaceSizeClassCompact = 1, UIUserInterfaceSizeClassRegular = 2, } __attribute__((availability(ios,introduced=8.0))); typedef NSInteger UIUserInterfaceStyle; enum { UIUserInterfaceStyleUnspecified, UIUserInterfaceStyleLight, UIUserInterfaceStyleDark, } __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,unavailable))); typedef NSInteger UIUserInterfaceLayoutDirection; enum { UIUserInterfaceLayoutDirectionLeftToRight, UIUserInterfaceLayoutDirectionRightToLeft, } __attribute__((availability(ios,introduced=5.0))); typedef NSInteger UITraitEnvironmentLayoutDirection; enum { UITraitEnvironmentLayoutDirectionUnspecified = -1, UITraitEnvironmentLayoutDirectionLeftToRight = UIUserInterfaceLayoutDirectionLeftToRight, UITraitEnvironmentLayoutDirectionRightToLeft = UIUserInterfaceLayoutDirectionRightToLeft, } __attribute__((availability(ios,introduced=10.0))); typedef NSInteger UIDisplayGamut; enum { UIDisplayGamutUnspecified = -1, UIDisplayGamutSRGB, UIDisplayGamutP3 } __attribute__((availability(ios,introduced=10.0))); typedef NSInteger UIAccessibilityContrast; enum { UIAccessibilityContrastUnspecified = -1, UIAccessibilityContrastNormal, UIAccessibilityContrastHigh, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); typedef NSInteger UILegibilityWeight; enum { UILegibilityWeightUnspecified = -1, UILegibilityWeightRegular, UILegibilityWeightBold } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); typedef NSInteger UIUserInterfaceLevel; enum { UIUserInterfaceLevelUnspecified = -1, UIUserInterfaceLevelBase, UIUserInterfaceLevelElevated } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef NSInteger UIUserInterfaceActiveAppearance; enum { UIUserInterfaceActiveAppearanceUnspecified = -1, UIUserInterfaceActiveAppearanceInactive, UIUserInterfaceActiveAppearanceActive, } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @interface UIColor (UIColorSystemColors) @property (class, nonatomic, readonly) UIColor *systemRedColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGreenColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemBlueColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemOrangeColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemYellowColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemPinkColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemPurpleColor __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemTealColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemIndigoColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGrayColor __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=9.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGray2Color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGray3Color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGray4Color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGray5Color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGray6Color __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *labelColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *secondaryLabelColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *quaternaryLabelColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *linkColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *placeholderTextColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *separatorColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *opaqueSeparatorColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *secondarySystemBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *tertiarySystemBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemGroupedBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *secondarySystemGroupedBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *tertiarySystemGroupedBackgroundColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *systemFillColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *secondarySystemFillColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *tertiarySystemFillColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property (class, nonatomic, readonly) UIColor *quaternarySystemFillColor __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property(class, nonatomic, readonly) UIColor *lightTextColor __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) UIColor *darkTextColor __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) UIColor *groupTableViewBackgroundColor __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="systemGroupedBackgroundColor"))) __attribute__((availability(tvos,introduced=13.0,deprecated=13.0,replacement="systemGroupedBackgroundColor"))); @property(class, nonatomic, readonly) UIColor *viewFlipsideBackgroundColor __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) UIColor *scrollViewTexturedBackgroundColor __attribute__((availability(ios,introduced=3.2,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) UIColor *underPageBackgroundColor __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIFont (UIFontSystemFonts) @property(class, nonatomic, readonly) CGFloat labelFontSize __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) CGFloat buttonFontSize __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) CGFloat smallSystemFontSize __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) CGFloat systemFontSize __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) CGFloat defaultFontSize __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); @property(class, nonatomic, readonly) CGFloat systemMinimumFontSize __attribute__((availability(macos,unavailable))) __attribute__((availability(ios,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif // @protocol UIAppearanceContainer <NSObject> /* @end */ // @protocol UIAppearance <NSObject> // + (instancetype)appearance; // + (instancetype)appearanceWhenContainedIn:(nullable Class <UIAppearanceContainer>)ContainerClass, ... __attribute__((sentinel(0,1))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,replacement="appearanceWhenContainedInInstancesOfClasses:"))) __attribute__((availability(tvos,unavailable))); // + (instancetype)appearanceWhenContainedInInstancesOfClasses:(NSArray<Class <UIAppearanceContainer>> *)containerTypes __attribute__((availability(ios,introduced=9.0))); // + (instancetype)appearanceForTraitCollection:(UITraitCollection *)trait __attribute__((availability(ios,introduced=8.0))); // + (instancetype)appearanceForTraitCollection:(UITraitCollection *)trait whenContainedIn:(nullable Class <UIAppearanceContainer>)ContainerClass, ... __attribute__((sentinel(0,1))) __attribute__((availability(ios,introduced=8.0,deprecated=9.0,replacement="appearanceForTraitCollection:whenContainedInInstancesOfClasses:"))) __attribute__((availability(tvos,unavailable))); // + (instancetype)appearanceForTraitCollection:(UITraitCollection *)trait whenContainedInInstancesOfClasses:(NSArray<Class <UIAppearanceContainer>> *)containerTypes __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDynamicAnimator; #ifndef _REWRITER_typedef_UIDynamicAnimator #define _REWRITER_typedef_UIDynamicAnimator typedef struct objc_object UIDynamicAnimator; typedef struct {} _objc_exc_UIDynamicAnimator; #endif // @class UIBezierPath; #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif typedef NSUInteger UIDynamicItemCollisionBoundsType; enum { UIDynamicItemCollisionBoundsTypeRectangle, UIDynamicItemCollisionBoundsTypeEllipse, UIDynamicItemCollisionBoundsTypePath } __attribute__((availability(ios,introduced=9.0))); // @protocol UIDynamicItem <NSObject> // @property (nonatomic, readwrite) CGPoint center; // @property (nonatomic, readonly) CGRect bounds; // @property (nonatomic, readwrite) CGAffineTransform transform; /* @optional */ // @property (nonatomic, readonly) UIDynamicItemCollisionBoundsType collisionBoundsType __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly) UIBezierPath *collisionBoundingPath __attribute__((availability(ios,introduced=9.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIDynamicItemGroup #define _REWRITER_typedef_UIDynamicItemGroup typedef struct objc_object UIDynamicItemGroup; typedef struct {} _objc_exc_UIDynamicItemGroup; #endif struct UIDynamicItemGroup_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIDynamicBehavior #define _REWRITER_typedef_UIDynamicBehavior typedef struct objc_object UIDynamicBehavior; typedef struct {} _objc_exc_UIDynamicBehavior; #endif struct UIDynamicBehavior_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)addChildBehavior:(UIDynamicBehavior *)behavior; // - (void)removeChildBehavior:(UIDynamicBehavior *)behavior; // @property (nonatomic, readonly, copy) NSArray<__kindof UIDynamicBehavior *> *childBehaviors; // @property (nullable, nonatomic,copy) void (^action)(void); // - (void)willMoveToAnimator:(nullable UIDynamicAnimator *)dynamicAnimator; // @property (nullable, nonatomic, readonly) UIDynamicAnimator *dynamicAnimator; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSDictionary #define _REWRITER_typedef_NSDictionary typedef struct objc_object NSDictionary; typedef struct {} _objc_exc_NSDictionary; #endif #ifndef _REWRITER_typedef_NSLayoutAnchor #define _REWRITER_typedef_NSLayoutAnchor typedef struct objc_object NSLayoutAnchor; typedef struct {} _objc_exc_NSLayoutAnchor; #endif typedef float UILayoutPriority __attribute__((swift_wrapper(struct))); static const UILayoutPriority UILayoutPriorityRequired __attribute__((availability(ios,introduced=6.0))) = 1000; static const UILayoutPriority UILayoutPriorityDefaultHigh __attribute__((availability(ios,introduced=6.0))) = 750; static const UILayoutPriority UILayoutPriorityDragThatCanResizeScene __attribute__((availability(macCatalyst,introduced=13.0))) = 510; static const UILayoutPriority UILayoutPrioritySceneSizeStayPut __attribute__((availability(macCatalyst,introduced=13.0))) = 500; static const UILayoutPriority UILayoutPriorityDragThatCannotResizeScene __attribute__((availability(macCatalyst,introduced=13.0))) = 490; static const UILayoutPriority UILayoutPriorityDefaultLow __attribute__((availability(ios,introduced=6.0))) = 250; static const UILayoutPriority UILayoutPriorityFittingSizeLevel __attribute__((availability(ios,introduced=6.0))) = 50; typedef NSInteger NSLayoutRelation; enum { NSLayoutRelationLessThanOrEqual = -1, NSLayoutRelationEqual = 0, NSLayoutRelationGreaterThanOrEqual = 1, }; typedef NSInteger NSLayoutAttribute; enum { NSLayoutAttributeLeft = 1, NSLayoutAttributeRight, NSLayoutAttributeTop, NSLayoutAttributeBottom, NSLayoutAttributeLeading, NSLayoutAttributeTrailing, NSLayoutAttributeWidth, NSLayoutAttributeHeight, NSLayoutAttributeCenterX, NSLayoutAttributeCenterY, NSLayoutAttributeLastBaseline, NSLayoutAttributeBaseline __attribute__((availability(swift, unavailable, message="Use 'lastBaseline' instead"))) = NSLayoutAttributeLastBaseline, NSLayoutAttributeFirstBaseline __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeLeftMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeRightMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeTopMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeBottomMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeLeadingMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeTrailingMargin __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeCenterXWithinMargins __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeCenterYWithinMargins __attribute__((availability(ios,introduced=8.0))), NSLayoutAttributeNotAnAttribute = 0 }; typedef NSUInteger NSLayoutFormatOptions; enum { NSLayoutFormatAlignAllLeft = (1 << NSLayoutAttributeLeft), NSLayoutFormatAlignAllRight = (1 << NSLayoutAttributeRight), NSLayoutFormatAlignAllTop = (1 << NSLayoutAttributeTop), NSLayoutFormatAlignAllBottom = (1 << NSLayoutAttributeBottom), NSLayoutFormatAlignAllLeading = (1 << NSLayoutAttributeLeading), NSLayoutFormatAlignAllTrailing = (1 << NSLayoutAttributeTrailing), NSLayoutFormatAlignAllCenterX = (1 << NSLayoutAttributeCenterX), NSLayoutFormatAlignAllCenterY = (1 << NSLayoutAttributeCenterY), NSLayoutFormatAlignAllLastBaseline = (1 << NSLayoutAttributeLastBaseline), NSLayoutFormatAlignAllFirstBaseline __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=8.0))) = (1 << NSLayoutAttributeFirstBaseline), NSLayoutFormatAlignAllBaseline __attribute__((availability(swift, unavailable, message="Use 'alignAllLastBaseline' instead"))) = NSLayoutFormatAlignAllLastBaseline, NSLayoutFormatAlignmentMask = 0xFFFF, NSLayoutFormatDirectionLeadingToTrailing = 0 << 16, NSLayoutFormatDirectionLeftToRight = 1 << 16, NSLayoutFormatDirectionRightToLeft = 2 << 16, NSLayoutFormatDirectionMask = 0x3 << 16, NSLayoutFormatSpacingEdgeToEdge __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 0 << 19, NSLayoutFormatSpacingBaselineToBaseline __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 1 << 19, NSLayoutFormatSpacingMask __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 0x1 << 19, }; extern "C" __attribute((visibility("default"))) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,introduced=9.0))) #ifndef _REWRITER_typedef_NSLayoutConstraint #define _REWRITER_typedef_NSLayoutConstraint typedef struct objc_object NSLayoutConstraint; typedef struct {} _objc_exc_NSLayoutConstraint; #endif struct NSLayoutConstraint_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (NSArray<NSLayoutConstraint *> *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(nullable NSDictionary<NSString *, id> *)metrics views:(NSDictionary<NSString *, id> *)views __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,introduced=9.0))); extern "C" __attribute((visibility("default"))) NSDictionary<NSString *, id> *_NSDictionaryOfVariableBindings(NSString *commaSeparatedKeysString, _Nullable id firstValue, ...) __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=6.0))); // + (instancetype)constraintWithItem:(id)view1 attribute:(NSLayoutAttribute)attr1 relatedBy:(NSLayoutRelation)relation toItem:(nullable id)view2 attribute:(NSLayoutAttribute)attr2 multiplier:(CGFloat)multiplier constant:(CGFloat)c __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,introduced=9.0))); // @property UILayoutPriority priority; // @property BOOL shouldBeArchived; // @property (nullable, readonly, assign) id firstItem; // @property (nullable, readonly, assign) id secondItem; // @property (readonly) NSLayoutAttribute firstAttribute; // @property (readonly) NSLayoutAttribute secondAttribute; // @property (readonly, copy) NSLayoutAnchor *firstAnchor __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); // @property (readonly, copy, nullable) NSLayoutAnchor *secondAnchor __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))); // @property (readonly) NSLayoutRelation relation; // @property (readonly) CGFloat multiplier; // @property CGFloat constant; // @property (getter=isActive) BOOL active __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); // + (void)activateConstraints:(NSArray<NSLayoutConstraint *> *)constraints __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); // + (void)deactivateConstraints:(NSArray<NSLayoutConstraint *> *)constraints __attribute__((availability(macos,introduced=10.10))) __attribute__((availability(ios,introduced=8.0))); /* @end */ // @interface NSLayoutConstraint (NSIdentifier) // @property (nullable, copy) NSString *identifier __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))); /* @end */ // @class NSLayoutYAxisAnchor; #ifndef _REWRITER_typedef_NSLayoutYAxisAnchor #define _REWRITER_typedef_NSLayoutYAxisAnchor typedef struct objc_object NSLayoutYAxisAnchor; typedef struct {} _objc_exc_NSLayoutYAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif // @protocol UILayoutSupport <NSObject> // @property(nonatomic,readonly) CGFloat length; // @property(readonly, strong) NSLayoutYAxisAnchor *topAnchor __attribute__((availability(ios,introduced=9.0))); // @property(readonly, strong) NSLayoutYAxisAnchor *bottomAnchor __attribute__((availability(ios,introduced=9.0))); // @property(readonly, strong) NSLayoutDimension *heightAnchor __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIDeviceOrientation; enum { UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, UIDeviceOrientationPortraitUpsideDown, UIDeviceOrientationLandscapeLeft, UIDeviceOrientationLandscapeRight, UIDeviceOrientationFaceUp, UIDeviceOrientationFaceDown } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIDeviceBatteryState; enum { UIDeviceBatteryStateUnknown, UIDeviceBatteryStateUnplugged, UIDeviceBatteryStateCharging, UIDeviceBatteryStateFull, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIUserInterfaceIdiom; enum { UIUserInterfaceIdiomUnspecified = -1, UIUserInterfaceIdiomPhone __attribute__((availability(ios,introduced=3.2))), UIUserInterfaceIdiomPad __attribute__((availability(ios,introduced=3.2))), UIUserInterfaceIdiomTV __attribute__((availability(ios,introduced=9.0))), UIUserInterfaceIdiomCarPlay __attribute__((availability(ios,introduced=9.0))), UIUserInterfaceIdiomMac __attribute__((availability(ios,introduced=14.0))) = 5, }; static inline BOOL UIDeviceOrientationIsPortrait(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown); } static inline BOOL UIDeviceOrientationIsLandscape(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIDeviceOrientationLandscapeLeft || (orientation) == UIDeviceOrientationLandscapeRight); } static inline __attribute__((always_inline)) BOOL UIDeviceOrientationIsFlat(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIDeviceOrientationFaceUp || (orientation) == UIDeviceOrientationFaceDown); } static inline __attribute__((always_inline)) BOOL UIDeviceOrientationIsValidInterfaceOrientation(UIDeviceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown || (orientation) == UIDeviceOrientationLandscapeLeft || (orientation) == UIDeviceOrientationLandscapeRight); } extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIDevice #define _REWRITER_typedef_UIDevice typedef struct objc_object UIDevice; typedef struct {} _objc_exc_UIDevice; #endif struct UIDevice_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) UIDevice *currentDevice; // @property(nonatomic,readonly,strong) NSString *name; // @property(nonatomic,readonly,strong) NSString *model; // @property(nonatomic,readonly,strong) NSString *localizedModel; // @property(nonatomic,readonly,strong) NSString *systemName; // @property(nonatomic,readonly,strong) NSString *systemVersion; // @property(nonatomic,readonly) UIDeviceOrientation orientation __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,readonly,strong) NSUUID *identifierForVendor __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications __attribute__((availability(tvos,unavailable))); // - (void)beginGeneratingDeviceOrientationNotifications __attribute__((availability(tvos,unavailable))); // - (void)endGeneratingDeviceOrientationNotifications __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) UIDeviceBatteryState batteryState __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) float batteryLevel __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isProximityMonitoringEnabled) BOOL proximityMonitoringEnabled __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,readonly) BOOL proximityState __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,readonly,getter=isMultitaskingSupported) BOOL multitaskingSupported __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly) UIUserInterfaceIdiom userInterfaceIdiom __attribute__((availability(ios,introduced=3.2))); // - (void)playInputClick __attribute__((availability(ios,introduced=4.2))); /* @end */ // @protocol UIInputViewAudioFeedback <NSObject> /* @optional */ // @property (nonatomic, readonly) BOOL enableInputClicksWhenVisible; /* @end */ static inline UIUserInterfaceIdiom UI_USER_INTERFACE_IDIOM() __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use -[UIDevice userInterfaceIdiom] directly."))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Use -[UIDevice userInterfaceIdiom] directly."))) { return (((BOOL (*)(id, SEL, SEL))(void *)objc_msgSend)((id)((UIDevice * _Nonnull (*)(id, SEL))(void *)objc_msgSend)((id)objc_getClass("UIDevice"), sel_registerName("currentDevice")), sel_registerName("respondsToSelector:"), sel_registerName("userInterfaceIdiom")) ? ((UIUserInterfaceIdiom (*)(id, SEL))(void *)objc_msgSend)((id)((UIDevice * _Nonnull (*)(id, SEL))(void *)objc_msgSend)((id)objc_getClass("UIDevice"), sel_registerName("currentDevice")), sel_registerName("userInterfaceIdiom")) : UIUserInterfaceIdiomPhone); } extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIDeviceOrientationDidChangeNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIDeviceBatteryStateDidChangeNotification __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIDeviceBatteryLevelDidChangeNotification __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIDeviceProximityStateDidChangeNotification __attribute__((availability(ios,introduced=3.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIWindow; #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIGestureRecognizer #define _REWRITER_typedef_UIGestureRecognizer typedef struct objc_object UIGestureRecognizer; typedef struct {} _objc_exc_UIGestureRecognizer; #endif typedef NSInteger UITouchPhase; enum { UITouchPhaseBegan, UITouchPhaseMoved, UITouchPhaseStationary, UITouchPhaseEnded, UITouchPhaseCancelled, UITouchPhaseRegionEntered __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))), UITouchPhaseRegionMoved __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))), UITouchPhaseRegionExited __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))), }; typedef NSInteger UIForceTouchCapability; enum { UIForceTouchCapabilityUnknown = 0, UIForceTouchCapabilityUnavailable = 1, UIForceTouchCapabilityAvailable = 2 }; typedef NSInteger UITouchType; enum { UITouchTypeDirect, UITouchTypeIndirect, UITouchTypePencil __attribute__((availability(ios,introduced=9.1))), UITouchTypeStylus __attribute__((availability(ios,introduced=9.1))) = UITouchTypePencil, UITouchTypeIndirectPointer __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))), } __attribute__((availability(ios,introduced=9.0))); typedef NSInteger UITouchProperties; enum { UITouchPropertyForce = (1UL << 0), UITouchPropertyAzimuth = (1UL << 1), UITouchPropertyAltitude = (1UL << 2), UITouchPropertyLocation = (1UL << 3), } __attribute__((availability(ios,introduced=9.1))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITouch #define _REWRITER_typedef_UITouch typedef struct objc_object UITouch; typedef struct {} _objc_exc_UITouch; #endif struct UITouch_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) NSTimeInterval timestamp; // @property(nonatomic,readonly) UITouchPhase phase; // @property(nonatomic,readonly) NSUInteger tapCount; // @property(nonatomic,readonly) UITouchType type __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly) CGFloat majorRadius __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic,readonly) CGFloat majorRadiusTolerance __attribute__((availability(ios,introduced=8.0))); // @property(nullable,nonatomic,readonly,strong) UIWindow *window; // @property(nullable,nonatomic,readonly,strong) UIView *view; // @property(nullable,nonatomic,readonly,copy) NSArray <UIGestureRecognizer *> *gestureRecognizers __attribute__((availability(ios,introduced=3.2))); // - (CGPoint)locationInView:(nullable UIView *)view; // - (CGPoint)previousLocationInView:(nullable UIView *)view; // - (CGPoint)preciseLocationInView:(nullable UIView *)view __attribute__((availability(ios,introduced=9.1))); // - (CGPoint)precisePreviousLocationInView:(nullable UIView *)view __attribute__((availability(ios,introduced=9.1))); // @property(nonatomic,readonly) CGFloat force __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly) CGFloat maximumPossibleForce __attribute__((availability(ios,introduced=9.0))); // - (CGFloat)azimuthAngleInView:(nullable UIView *)view __attribute__((availability(ios,introduced=9.1))); // - (CGVector)azimuthUnitVectorInView:(nullable UIView *)view __attribute__((availability(ios,introduced=9.1))); // @property(nonatomic,readonly) CGFloat altitudeAngle __attribute__((availability(ios,introduced=9.1))); // @property(nonatomic,readonly) NSNumber * _Nullable estimationUpdateIndex __attribute__((availability(ios,introduced=9.1))); // @property(nonatomic,readonly) UITouchProperties estimatedProperties __attribute__((availability(ios,introduced=9.1))); // @property(nonatomic,readonly) UITouchProperties estimatedPropertiesExpectingUpdates __attribute__((availability(ios,introduced=9.1))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * UIContentSizeCategory __attribute__((swift_wrapper(enum))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryUnspecified __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryExtraSmall __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategorySmall __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryMedium __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryExtraExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryExtraExtraExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryAccessibilityMedium __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryAccessibilityLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIContentSizeCategory const UIContentSizeCategoryAccessibilityExtraExtraExtraLarge __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIContentSizeCategoryDidChangeNotification __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIContentSizeCategoryNewValueKey __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIContentSizeCategoryIsAccessibilityCategory(UIContentSizeCategory category) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((swift_private)); extern "C" __attribute__((visibility ("default"))) NSComparisonResult UIContentSizeCategoryCompareToCategory(UIContentSizeCategory lhs, UIContentSizeCategory rhs) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))) __attribute__((swift_private)); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif struct UITraitCollection_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (BOOL)containsTraitsInCollection:(nullable UITraitCollection *)trait; // + (UITraitCollection *)traitCollectionWithTraitsFromCollections:(NSArray<UITraitCollection *> *)traitCollections; // + (UITraitCollection *)traitCollectionWithUserInterfaceIdiom:(UIUserInterfaceIdiom)idiom; // @property (nonatomic, readonly) UIUserInterfaceIdiom userInterfaceIdiom; // + (UITraitCollection *)traitCollectionWithUserInterfaceStyle:(UIUserInterfaceStyle)userInterfaceStyle __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) UIUserInterfaceStyle userInterfaceStyle __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,unavailable))); // + (UITraitCollection *)traitCollectionWithLayoutDirection:(UITraitEnvironmentLayoutDirection)layoutDirection __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) UITraitEnvironmentLayoutDirection layoutDirection __attribute__((availability(ios,introduced=10.0))); // + (UITraitCollection *)traitCollectionWithDisplayScale:(CGFloat)scale; // @property (nonatomic, readonly) CGFloat displayScale; // + (UITraitCollection *)traitCollectionWithHorizontalSizeClass:(UIUserInterfaceSizeClass)horizontalSizeClass; // @property (nonatomic, readonly) UIUserInterfaceSizeClass horizontalSizeClass; // + (UITraitCollection *)traitCollectionWithVerticalSizeClass:(UIUserInterfaceSizeClass)verticalSizeClass; // @property (nonatomic, readonly) UIUserInterfaceSizeClass verticalSizeClass; // + (UITraitCollection *)traitCollectionWithForceTouchCapability:(UIForceTouchCapability)capability __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly) UIForceTouchCapability forceTouchCapability __attribute__((availability(ios,introduced=9.0))); // + (UITraitCollection *)traitCollectionWithPreferredContentSizeCategory:(UIContentSizeCategory)preferredContentSizeCategory __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, copy, readonly) UIContentSizeCategory preferredContentSizeCategory __attribute__((availability(ios,introduced=10.0))); // + (UITraitCollection *)traitCollectionWithDisplayGamut:(UIDisplayGamut)displayGamut __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) UIDisplayGamut displayGamut __attribute__((availability(ios,introduced=10.0))); // + (UITraitCollection *)traitCollectionWithAccessibilityContrast:(UIAccessibilityContrast)accessibilityContrast __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) UIAccessibilityContrast accessibilityContrast __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); // + (UITraitCollection *)traitCollectionWithUserInterfaceLevel:(UIUserInterfaceLevel)userInterfaceLevel __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) UIUserInterfaceLevel userInterfaceLevel __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (UITraitCollection *)traitCollectionWithLegibilityWeight:(UILegibilityWeight)legibilityWeight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property (nonatomic, readonly) UILegibilityWeight legibilityWeight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (UITraitCollection *)traitCollectionWithActiveAppearance:(UIUserInterfaceActiveAppearance)userInterfaceActiveAppearance __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, readonly) UIUserInterfaceActiveAppearance activeAppearance __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); /* @end */ // @protocol UITraitEnvironment <NSObject> // @property (nonatomic, readonly) UITraitCollection *traitCollection __attribute__((availability(ios,introduced=8.0))); // - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection __attribute__((availability(ios,introduced=8.0))); /* @end */ // @interface UITraitCollection (CurrentTraitCollection) @property (class, nonatomic, strong) UITraitCollection *currentTraitCollection __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); // - (void)performAsCurrentTraitCollection:(void (__attribute__((noescape)) ^)(void))actions __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface UITraitCollection (DynamicAppearance) // - (BOOL)hasDifferentColorAppearanceComparedToTraitCollection:(nullable UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); /* @end */ // @class UIImageConfiguration; #ifndef _REWRITER_typedef_UIImageConfiguration #define _REWRITER_typedef_UIImageConfiguration typedef struct objc_object UIImageConfiguration; typedef struct {} _objc_exc_UIImageConfiguration; #endif // @interface UITraitCollection (ImageConfiguration) // @property (nonatomic, strong, readonly) UIImageConfiguration *imageConfiguration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); /* @end */ #pragma clang assume_nonnull end // @class NSLayoutXAxisAnchor; #ifndef _REWRITER_typedef_NSLayoutXAxisAnchor #define _REWRITER_typedef_NSLayoutXAxisAnchor typedef struct objc_object NSLayoutXAxisAnchor; typedef struct {} _objc_exc_NSLayoutXAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutYAxisAnchor #define _REWRITER_typedef_NSLayoutYAxisAnchor typedef struct objc_object NSLayoutYAxisAnchor; typedef struct {} _objc_exc_NSLayoutYAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif #pragma clang assume_nonnull begin // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UILayoutGuide #define _REWRITER_typedef_UILayoutGuide typedef struct objc_object UILayoutGuide; typedef struct {} _objc_exc_UILayoutGuide; #endif struct UILayoutGuide_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) CGRect layoutFrame; // @property(nonatomic,weak,nullable) UIView *owningView; // @property(nonatomic,copy) NSString *identifier; // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leadingAnchor; // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *trailingAnchor; // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leftAnchor; // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *rightAnchor; // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *topAnchor; // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *bottomAnchor; // @property(nonatomic,readonly,strong) NSLayoutDimension *widthAnchor; // @property(nonatomic,readonly,strong) NSLayoutDimension *heightAnchor; // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *centerXAnchor; // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *centerYAnchor; /* @end */ #pragma clang assume_nonnull end // @protocol UIFocusEnvironment; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIFocusGuide #define _REWRITER_typedef_UIFocusGuide typedef struct objc_object UIFocusGuide; typedef struct {} _objc_exc_UIFocusGuide; #endif struct UIFocusGuide_IMPL { struct UILayoutGuide_IMPL UILayoutGuide_IVARS; }; // @property (nonatomic, getter=isEnabled) BOOL enabled; // @property (nonatomic, copy, null_resettable) NSArray<id<UIFocusEnvironment>> *preferredFocusEnvironments __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, weak, nullable) UIView *preferredFocusedView __attribute__((availability(ios,introduced=9.0,deprecated=10.0,replacement="preferredFocusEnvironments"))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) // @protocol UIFocusAnimationContext <NSObject> // @property (nonatomic, readonly) NSTimeInterval duration; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIFocusAnimationCoordinator #define _REWRITER_typedef_UIFocusAnimationCoordinator typedef struct objc_object UIFocusAnimationCoordinator; typedef struct {} _objc_exc_UIFocusAnimationCoordinator; #endif struct UIFocusAnimationCoordinator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)addCoordinatedAnimations:(nullable void (^)(void))animations completion:(nullable void (^)(void))completion; // - (void)addCoordinatedFocusingAnimations:(void (^ _Nullable)(id<UIFocusAnimationContext> animationContext))animations completion:(void (^ _Nullable)(void))completion __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)addCoordinatedUnfocusingAnimations:(void (^ _Nullable)(id<UIFocusAnimationContext> animationContext))animations completion:(void (^ _Nullable)(void))completion __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ #pragma clang assume_nonnull end // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIFocusUpdateContext #define _REWRITER_typedef_UIFocusUpdateContext typedef struct objc_object UIFocusUpdateContext; typedef struct {} _objc_exc_UIFocusUpdateContext; #endif #ifndef _REWRITER_typedef_UIFocusMovementHint #define _REWRITER_typedef_UIFocusMovementHint typedef struct objc_object UIFocusMovementHint; typedef struct {} _objc_exc_UIFocusMovementHint; #endif // @protocol UICoordinateSpace, UIFocusItemContainer; typedef NSUInteger UIFocusHeading; enum { UIFocusHeadingNone = 0, UIFocusHeadingUp = 1 << 0, UIFocusHeadingDown = 1 << 1, UIFocusHeadingLeft = 1 << 2, UIFocusHeadingRight = 1 << 3, UIFocusHeadingNext = 1 << 4, UIFocusHeadingPrevious = 1 << 5, } __attribute__((availability(ios,introduced=9.0))); typedef NSString * UIFocusSoundIdentifier __attribute__((swift_wrapper(struct))); #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) // @protocol UIFocusEnvironment <NSObject> // @property (nonatomic, readonly, copy) NSArray<id<UIFocusEnvironment>> *preferredFocusEnvironments; // @property (nonatomic, weak, readonly, nullable) id<UIFocusEnvironment> parentFocusEnvironment __attribute__((swift_name("parentFocusEnvironment"))) __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // @property (nonatomic, readonly, nullable, strong) id<UIFocusItemContainer> focusItemContainer __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // - (void)setNeedsFocusUpdate; // - (void)updateFocusIfNeeded; // - (BOOL)shouldUpdateFocusInContext:(UIFocusUpdateContext *)context; // - (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator; /* @optional */ // - (nullable UIFocusSoundIdentifier)soundIdentifierForFocusUpdateInContext:(UIFocusUpdateContext *)context __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, weak, readonly, nullable) UIView *preferredFocusedView __attribute__((availability(ios,introduced=9.0,deprecated=10.0,replacement="preferredFocusEnvironments"))); // @property (nonatomic, readonly, nullable, copy) NSString *focusGroupIdentifier __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) // @protocol UIFocusItem <UIFocusEnvironment> // @property(nonatomic, readonly) BOOL canBecomeFocused; // @property (nonatomic, readonly) CGRect frame __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); /* @optional */ // - (void)didHintFocusMovement:(UIFocusMovementHint *)hint __attribute__((availability(ios,introduced=12.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=12.0))) // @protocol UIFocusItemContainer <NSObject> // @property (nonatomic, readonly, strong) id<UICoordinateSpace> coordinateSpace; // - (NSArray<id<UIFocusItem>> *)focusItemsInRect:(CGRect)rect; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=12.0))) // @protocol UIFocusItemScrollableContainer <UIFocusItemContainer> // @property (nonatomic, readwrite) CGPoint contentOffset; // @property (nonatomic, readonly) CGSize contentSize; // @property (nonatomic, readonly) CGSize visibleSize; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIFocusUpdateContext #define _REWRITER_typedef_UIFocusUpdateContext typedef struct objc_object UIFocusUpdateContext; typedef struct {} _objc_exc_UIFocusUpdateContext; #endif struct UIFocusUpdateContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, weak, readonly, nullable) id<UIFocusItem> previouslyFocusedItem __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, weak, readonly, nullable) id<UIFocusItem> nextFocusedItem __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, weak, readonly, nullable) UIView *previouslyFocusedView; // @property (nonatomic, weak, readonly, nullable) UIView *nextFocusedView; // @property (nonatomic, assign, readonly) UIFocusHeading focusHeading; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIFocusDidUpdateNotification __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIFocusMovementDidFailNotification __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSString * const UIFocusUpdateContextKey __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSString * const UIFocusUpdateAnimationCoordinatorKey __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) UIFocusSoundIdentifier const UIFocusSoundIdentifierNone __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIFocusSoundIdentifier const UIFocusSoundIdentifierDefault __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIViewAnimationCurve; enum { UIViewAnimationCurveEaseInOut, UIViewAnimationCurveEaseIn, UIViewAnimationCurveEaseOut, UIViewAnimationCurveLinear, }; typedef NSInteger UIViewContentMode; enum { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill, UIViewContentModeRedraw, UIViewContentModeCenter, UIViewContentModeTop, UIViewContentModeBottom, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeTopLeft, UIViewContentModeTopRight, UIViewContentModeBottomLeft, UIViewContentModeBottomRight, }; typedef NSInteger UIViewAnimationTransition; enum { UIViewAnimationTransitionNone, UIViewAnimationTransitionFlipFromLeft, UIViewAnimationTransitionFlipFromRight, UIViewAnimationTransitionCurlUp, UIViewAnimationTransitionCurlDown, }; typedef NSUInteger UIViewAutoresizing; enum { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0, UIViewAutoresizingFlexibleWidth = 1 << 1, UIViewAutoresizingFlexibleRightMargin = 1 << 2, UIViewAutoresizingFlexibleTopMargin = 1 << 3, UIViewAutoresizingFlexibleHeight = 1 << 4, UIViewAutoresizingFlexibleBottomMargin = 1 << 5 }; typedef NSUInteger UIViewAnimationOptions; enum { UIViewAnimationOptionLayoutSubviews = 1 << 0, UIViewAnimationOptionAllowUserInteraction = 1 << 1, UIViewAnimationOptionBeginFromCurrentState = 1 << 2, UIViewAnimationOptionRepeat = 1 << 3, UIViewAnimationOptionAutoreverse = 1 << 4, UIViewAnimationOptionOverrideInheritedDuration = 1 << 5, UIViewAnimationOptionOverrideInheritedCurve = 1 << 6, UIViewAnimationOptionAllowAnimatedContent = 1 << 7, UIViewAnimationOptionShowHideTransitionViews = 1 << 8, UIViewAnimationOptionOverrideInheritedOptions = 1 << 9, UIViewAnimationOptionCurveEaseInOut = 0 << 16, UIViewAnimationOptionCurveEaseIn = 1 << 16, UIViewAnimationOptionCurveEaseOut = 2 << 16, UIViewAnimationOptionCurveLinear = 3 << 16, UIViewAnimationOptionTransitionNone = 0 << 20, UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20, UIViewAnimationOptionTransitionFlipFromRight = 2 << 20, UIViewAnimationOptionTransitionCurlUp = 3 << 20, UIViewAnimationOptionTransitionCurlDown = 4 << 20, UIViewAnimationOptionTransitionCrossDissolve = 5 << 20, UIViewAnimationOptionTransitionFlipFromTop = 6 << 20, UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20, UIViewAnimationOptionPreferredFramesPerSecondDefault = 0 << 24, UIViewAnimationOptionPreferredFramesPerSecond60 = 3 << 24, UIViewAnimationOptionPreferredFramesPerSecond30 = 7 << 24, } __attribute__((availability(ios,introduced=4.0))); typedef NSUInteger UIViewKeyframeAnimationOptions; enum { UIViewKeyframeAnimationOptionLayoutSubviews = UIViewAnimationOptionLayoutSubviews, UIViewKeyframeAnimationOptionAllowUserInteraction = UIViewAnimationOptionAllowUserInteraction, UIViewKeyframeAnimationOptionBeginFromCurrentState = UIViewAnimationOptionBeginFromCurrentState, UIViewKeyframeAnimationOptionRepeat = UIViewAnimationOptionRepeat, UIViewKeyframeAnimationOptionAutoreverse = UIViewAnimationOptionAutoreverse, UIViewKeyframeAnimationOptionOverrideInheritedDuration = UIViewAnimationOptionOverrideInheritedDuration, UIViewKeyframeAnimationOptionOverrideInheritedOptions = UIViewAnimationOptionOverrideInheritedOptions, UIViewKeyframeAnimationOptionCalculationModeLinear = 0 << 10, UIViewKeyframeAnimationOptionCalculationModeDiscrete = 1 << 10, UIViewKeyframeAnimationOptionCalculationModePaced = 2 << 10, UIViewKeyframeAnimationOptionCalculationModeCubic = 3 << 10, UIViewKeyframeAnimationOptionCalculationModeCubicPaced = 4 << 10 } __attribute__((availability(ios,introduced=7.0))); typedef NSUInteger UISystemAnimation; enum { UISystemAnimationDelete, } __attribute__((availability(ios,introduced=7.0))); typedef NSInteger UIViewTintAdjustmentMode; enum { UIViewTintAdjustmentModeAutomatic, UIViewTintAdjustmentModeNormal, UIViewTintAdjustmentModeDimmed, } __attribute__((availability(ios,introduced=7.0))); typedef NSInteger UISemanticContentAttribute; enum { UISemanticContentAttributeUnspecified = 0, UISemanticContentAttributePlayback, UISemanticContentAttributeSpatial, UISemanticContentAttributeForceLeftToRight, UISemanticContentAttributeForceRightToLeft } __attribute__((availability(ios,introduced=9.0))); // @protocol UICoordinateSpace <NSObject> // - (CGPoint)convertPoint:(CGPoint)point toCoordinateSpace:(id <UICoordinateSpace>)coordinateSpace __attribute__((availability(ios,introduced=8.0))); // - (CGPoint)convertPoint:(CGPoint)point fromCoordinateSpace:(id <UICoordinateSpace>)coordinateSpace __attribute__((availability(ios,introduced=8.0))); // - (CGRect)convertRect:(CGRect)rect toCoordinateSpace:(id <UICoordinateSpace>)coordinateSpace __attribute__((availability(ios,introduced=8.0))); // - (CGRect)convertRect:(CGRect)rect fromCoordinateSpace:(id <UICoordinateSpace>)coordinateSpace __attribute__((availability(ios,introduced=8.0))); // @property (readonly, nonatomic) CGRect bounds __attribute__((availability(ios,introduced=8.0))); /* @end */ // @class UIBezierPath; #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIGestureRecognizer #define _REWRITER_typedef_UIGestureRecognizer typedef struct objc_object UIGestureRecognizer; typedef struct {} _objc_exc_UIGestureRecognizer; #endif #ifndef _REWRITER_typedef_UIMotionEffect #define _REWRITER_typedef_UIMotionEffect typedef struct objc_object UIMotionEffect; typedef struct {} _objc_exc_UIMotionEffect; #endif #ifndef _REWRITER_typedef_CALayer #define _REWRITER_typedef_CALayer typedef struct objc_object CALayer; typedef struct {} _objc_exc_CALayer; #endif #ifndef _REWRITER_typedef_UILayoutGuide #define _REWRITER_typedef_UILayoutGuide typedef struct objc_object UILayoutGuide; typedef struct {} _objc_exc_UILayoutGuide; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif struct UIView_IMPL { struct UIResponder_IMPL UIResponder_IVARS; }; @property(class, nonatomic, readonly) Class layerClass; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // @property(nonatomic) NSInteger tag; // @property(nonatomic,readonly,strong) CALayer *layer; // @property(nonatomic,readonly) BOOL canBecomeFocused __attribute__((availability(ios,introduced=9.0))); // @property (readonly, nonatomic, getter=isFocused) BOOL focused __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readwrite, nullable, copy) NSString *focusGroupIdentifier __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) UISemanticContentAttribute semanticContentAttribute __attribute__((availability(ios,introduced=9.0))); // + (UIUserInterfaceLayoutDirection)userInterfaceLayoutDirectionForSemanticContentAttribute:(UISemanticContentAttribute)attribute __attribute__((availability(ios,introduced=9.0))); // + (UIUserInterfaceLayoutDirection)userInterfaceLayoutDirectionForSemanticContentAttribute:(UISemanticContentAttribute)semanticContentAttribute relativeToLayoutDirection:(UIUserInterfaceLayoutDirection)layoutDirection __attribute__((availability(ios,introduced=10.0))); // @property (readonly, nonatomic) UIUserInterfaceLayoutDirection effectiveUserInterfaceLayoutDirection __attribute__((availability(ios,introduced=10.0))); /* @end */ // @interface UIView(UIViewGeometry) // @property(nonatomic) CGRect frame; // @property(nonatomic) CGRect bounds; // @property(nonatomic) CGPoint center; // @property(nonatomic) CGAffineTransform transform; // @property(nonatomic) CATransform3D transform3D __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property(nonatomic) CGFloat contentScaleFactor __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,getter=isMultipleTouchEnabled) BOOL multipleTouchEnabled __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isExclusiveTouch) BOOL exclusiveTouch __attribute__((availability(tvos,unavailable))); // - (nullable UIView *)hitTest:(CGPoint)point withEvent:(nullable UIEvent *)event; // - (BOOL)pointInside:(CGPoint)point withEvent:(nullable UIEvent *)event; // - (CGPoint)convertPoint:(CGPoint)point toView:(nullable UIView *)view; // - (CGPoint)convertPoint:(CGPoint)point fromView:(nullable UIView *)view; // - (CGRect)convertRect:(CGRect)rect toView:(nullable UIView *)view; // - (CGRect)convertRect:(CGRect)rect fromView:(nullable UIView *)view; // @property(nonatomic) BOOL autoresizesSubviews; // @property(nonatomic) UIViewAutoresizing autoresizingMask; // - (CGSize)sizeThatFits:(CGSize)size; // - (void)sizeToFit; /* @end */ // @interface UIView(UIViewHierarchy) // @property(nullable, nonatomic,readonly) UIView *superview; // @property(nonatomic,readonly,copy) NSArray<__kindof UIView *> *subviews; // @property(nullable, nonatomic,readonly) UIWindow *window; // - (void)removeFromSuperview; // - (void)insertSubview:(UIView *)view atIndex:(NSInteger)index; // - (void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2; // - (void)addSubview:(UIView *)view; // - (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview; // - (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview; // - (void)bringSubviewToFront:(UIView *)view; // - (void)sendSubviewToBack:(UIView *)view; // - (void)didAddSubview:(UIView *)subview; // - (void)willRemoveSubview:(UIView *)subview; // - (void)willMoveToSuperview:(nullable UIView *)newSuperview; // - (void)didMoveToSuperview; // - (void)willMoveToWindow:(nullable UIWindow *)newWindow; // - (void)didMoveToWindow; // - (BOOL)isDescendantOfView:(UIView *)view; // - (nullable __kindof UIView *)viewWithTag:(NSInteger)tag; // - (void)setNeedsLayout; // - (void)layoutIfNeeded; // - (void)layoutSubviews; // @property (nonatomic) UIEdgeInsets layoutMargins __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) NSDirectionalEdgeInsets directionalLayoutMargins __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic) BOOL preservesSuperviewLayoutMargins __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) BOOL insetsLayoutMarginsFromSafeArea __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)layoutMarginsDidChange __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic,readonly) UIEdgeInsets safeAreaInsets __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)safeAreaInsetsDidChange __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(readonly,strong) UILayoutGuide *layoutMarginsGuide __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly, strong) UILayoutGuide *readableContentGuide __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) UILayoutGuide *safeAreaLayoutGuide __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface UIView(UIViewRendering) // - (void)drawRect:(CGRect)rect; // - (void)setNeedsDisplay; // - (void)setNeedsDisplayInRect:(CGRect)rect; // @property(nonatomic) BOOL clipsToBounds; // @property(nullable, nonatomic,copy) UIColor *backgroundColor __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) CGFloat alpha; // @property(nonatomic,getter=isOpaque) BOOL opaque; // @property(nonatomic) BOOL clearsContextBeforeDrawing; // @property(nonatomic,getter=isHidden) BOOL hidden; // @property(nonatomic) UIViewContentMode contentMode; // @property(nonatomic) CGRect contentStretch __attribute__((availability(ios,introduced=3.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,strong) UIView *maskView __attribute__((availability(ios,introduced=8.0))); // @property(null_resettable, nonatomic, strong) UIColor *tintColor __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic) UIViewTintAdjustmentMode tintAdjustmentMode __attribute__((availability(ios,introduced=7.0))); // - (void)tintColorDidChange __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UIView(UIViewAnimation) // + (void)setAnimationsEnabled:(BOOL)enabled; @property(class, nonatomic, readonly) BOOL areAnimationsEnabled; // + (void)performWithoutAnimation:(void (__attribute__((noescape)) ^)(void))actionsWithoutAnimation __attribute__((availability(ios,introduced=7.0))); @property(class, nonatomic, readonly) NSTimeInterval inheritedAnimationDuration __attribute__((availability(ios,introduced=9.0))); /* @end */ // @interface UIView(UIViewAnimationWithBlocks) // + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=4.0))); // + (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=4.0))); // + (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations __attribute__((availability(ios,introduced=4.0))); // + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=7.0))); // + (void)transitionWithView:(UIView *)view duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^ _Nullable)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=4.0))); // + (void)transitionFromView:(UIView *)fromView toView:(UIView *)toView duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=4.0))); // + (void)performSystemAnimation:(UISystemAnimation)animation onViews:(NSArray<__kindof UIView *> *)views options:(UIViewAnimationOptions)options animations:(void (^ _Nullable)(void))parallelAnimations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=7.0))); // + (void)modifyAnimationsWithRepeatCount:(CGFloat)count autoreverses:(BOOL)autoreverses animations:(void(__attribute__((noescape)) ^)(void))animations __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(tvos,introduced=12.0))); /* @end */ // @interface UIView (UIViewKeyframeAnimations) // + (void)animateKeyframesWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewKeyframeAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=7.0))); // + (void)addKeyframeWithRelativeStartTime:(double)frameStartTime relativeDuration:(double)frameDuration animations:(void (^)(void))animations __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UIView (UIViewGestureRecognizers) // @property(nullable, nonatomic,copy) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers __attribute__((availability(ios,introduced=3.2))); // - (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer __attribute__((availability(ios,introduced=3.2))); // - (void)removeGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer __attribute__((availability(ios,introduced=3.2))); // - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UIView (UIViewMotionEffects) // - (void)addMotionEffect:(UIMotionEffect *)effect __attribute__((availability(ios,introduced=7.0))); // - (void)removeMotionEffect:(UIMotionEffect *)effect __attribute__((availability(ios,introduced=7.0))); // @property (copy, nonatomic) NSArray<__kindof UIMotionEffect *> *motionEffects __attribute__((availability(ios,introduced=7.0))); /* @end */ typedef NSInteger UILayoutConstraintAxis; enum { UILayoutConstraintAxisHorizontal = 0, UILayoutConstraintAxisVertical = 1 }; // @interface UIView (UIConstraintBasedLayoutInstallingConstraints) // @property(nonatomic,readonly) NSArray<__kindof NSLayoutConstraint *> *constraints __attribute__((availability(ios,introduced=6.0))); // - (void)addConstraint:(NSLayoutConstraint *)constraint __attribute__((availability(ios,introduced=6.0))); // - (void)addConstraints:(NSArray<__kindof NSLayoutConstraint *> *)constraints __attribute__((availability(ios,introduced=6.0))); // - (void)removeConstraint:(NSLayoutConstraint *)constraint __attribute__((availability(ios,introduced=6.0))); // - (void)removeConstraints:(NSArray<__kindof NSLayoutConstraint *> *)constraints __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UIView (UIConstraintBasedLayoutCoreMethods) // - (void)updateConstraintsIfNeeded __attribute__((availability(ios,introduced=6.0))); // - (void)updateConstraints __attribute__((availability(ios,introduced=6.0))) __attribute__((objc_requires_super)); // - (BOOL)needsUpdateConstraints __attribute__((availability(ios,introduced=6.0))); // - (void)setNeedsUpdateConstraints __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UIView (UIConstraintBasedCompatibility) // @property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints __attribute__((availability(ios,introduced=6.0))); @property(class, nonatomic, readonly) BOOL requiresConstraintBasedLayout __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UIView (UIConstraintBasedLayoutLayering) // - (CGRect)alignmentRectForFrame:(CGRect)frame __attribute__((availability(ios,introduced=6.0))); // - (CGRect)frameForAlignmentRect:(CGRect)alignmentRect __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic, readonly) UIEdgeInsets alignmentRectInsets __attribute__((availability(ios,introduced=6.0))); // - (UIView *)viewForBaselineLayout __attribute__((availability(ios,introduced=6.0,deprecated=9.0,message="Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead"))) __attribute__((availability(tvos,unavailable))); // @property(readonly,strong) UIView *viewForFirstBaselineLayout __attribute__((availability(ios,introduced=9.0))); // @property(readonly,strong) UIView *viewForLastBaselineLayout __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) const CGFloat UIViewNoIntrinsicMetric __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic, readonly) CGSize intrinsicContentSize __attribute__((availability(ios,introduced=6.0))); // - (void)invalidateIntrinsicContentSize __attribute__((availability(ios,introduced=6.0))); // - (UILayoutPriority)contentHuggingPriorityForAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=6.0))); // - (void)setContentHuggingPriority:(UILayoutPriority)priority forAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=6.0))); // - (UILayoutPriority)contentCompressionResistancePriorityForAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=6.0))); // - (void)setContentCompressionResistancePriority:(UILayoutPriority)priority forAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=6.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) const CGSize UILayoutFittingCompressedSize __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) const CGSize UILayoutFittingExpandedSize __attribute__((availability(ios,introduced=6.0))); // @interface UIView (UIConstraintBasedLayoutFittingSize) // - (CGSize)systemLayoutSizeFittingSize:(CGSize)targetSize __attribute__((availability(ios,introduced=6.0))); // - (CGSize)systemLayoutSizeFittingSize:(CGSize)targetSize withHorizontalFittingPriority:(UILayoutPriority)horizontalFittingPriority verticalFittingPriority:(UILayoutPriority)verticalFittingPriority __attribute__((availability(ios,introduced=8.0))); /* @end */ // @interface UIView (UILayoutGuideSupport) // @property(nonatomic,readonly,copy) NSArray<__kindof UILayoutGuide *> *layoutGuides __attribute__((availability(ios,introduced=9.0))); // - (void)addLayoutGuide:(UILayoutGuide *)layoutGuide __attribute__((availability(ios,introduced=9.0))); // - (void)removeLayoutGuide:(UILayoutGuide *)layoutGuide __attribute__((availability(ios,introduced=9.0))); /* @end */ // @class NSLayoutXAxisAnchor; #ifndef _REWRITER_typedef_NSLayoutXAxisAnchor #define _REWRITER_typedef_NSLayoutXAxisAnchor typedef struct objc_object NSLayoutXAxisAnchor; typedef struct {} _objc_exc_NSLayoutXAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutYAxisAnchor #define _REWRITER_typedef_NSLayoutYAxisAnchor typedef struct objc_object NSLayoutYAxisAnchor; typedef struct {} _objc_exc_NSLayoutYAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif // @interface UIView (UIViewLayoutConstraintCreation) // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leadingAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *trailingAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *leftAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *rightAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *topAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *bottomAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutDimension *widthAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutDimension *heightAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutXAxisAnchor *centerXAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *centerYAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *firstBaselineAnchor __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly,strong) NSLayoutYAxisAnchor *lastBaselineAnchor __attribute__((availability(ios,introduced=9.0))); /* @end */ // @interface UIView (UIConstraintBasedLayoutDebugging) // - (NSArray<__kindof NSLayoutConstraint *> *)constraintsAffectingLayoutForAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic, readonly) BOOL hasAmbiguousLayout __attribute__((availability(ios,introduced=6.0))); // - (void)exerciseAmbiguityInLayout __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UILayoutGuide (UIConstraintBasedLayoutDebugging) // - (NSArray<__kindof NSLayoutConstraint *> *)constraintsAffectingLayoutForAxis:(UILayoutConstraintAxis)axis __attribute__((availability(ios,introduced=10.0))); // @property(nonatomic, readonly) BOOL hasAmbiguousLayout __attribute__((availability(ios,introduced=10.0))); /* @end */ // @interface UIView (UIStateRestoration) // @property (nullable, nonatomic, copy) NSString *restorationIdentifier __attribute__((availability(ios,introduced=6.0))); // - (void) encodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (void) decodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UIView (UISnapshotting) // - (nullable UIView *)snapshotViewAfterScreenUpdates:(BOOL)afterUpdates __attribute__((availability(ios,introduced=7.0))); // - (nullable UIView *)resizableSnapshotViewFromRect:(CGRect)rect afterScreenUpdates:(BOOL)afterUpdates withCapInsets:(UIEdgeInsets)capInsets __attribute__((availability(ios,introduced=7.0))); // - (BOOL)drawViewHierarchyInRect:(CGRect)rect afterScreenUpdates:(BOOL)afterUpdates __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UIView (DeprecatedAnimations) // + (void)beginAnimations:(nullable NSString *)animationID context:(nullable void *)context __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)commitAnimations __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationDelegate:(nullable id)delegate __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationWillStartSelector:(nullable SEL)selector __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationDidStopSelector:(nullable SEL)selector __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationDuration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationDelay:(NSTimeInterval)delay __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationStartDate:(NSDate *)startDate __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationCurve:(UIViewAnimationCurve)curve __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationRepeatCount:(float)repeatCount __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationRepeatAutoreverses:(BOOL)repeatAutoreverses __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationBeginsFromCurrentState:(BOOL)fromCurrentState __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); // + (void)setAnimationTransition:(UIViewAnimationTransition)transition forView:(UIView *)view cache:(BOOL)cache __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the block-based animation API instead"))); /* @end */ // @interface UIView (UserInterfaceStyle) // @property (nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIPickerViewDataSource, UIPickerViewDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPickerView #define _REWRITER_typedef_UIPickerView typedef struct objc_object UIPickerView; typedef struct {} _objc_exc_UIPickerView; #endif struct UIPickerView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nullable,nonatomic,weak) id<UIPickerViewDataSource> dataSource; // @property(nullable,nonatomic,weak) id<UIPickerViewDelegate> delegate; // @property(nonatomic) BOOL showsSelectionIndicator __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="This property has no effect on iOS 7 and later."))); // @property(nonatomic,readonly) NSInteger numberOfComponents; // - (NSInteger)numberOfRowsInComponent:(NSInteger)component; // - (CGSize)rowSizeForComponent:(NSInteger)component; // - (nullable UIView *)viewForRow:(NSInteger)row forComponent:(NSInteger)component; // - (void)reloadAllComponents; // - (void)reloadComponent:(NSInteger)component; // - (void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated; // - (NSInteger)selectedRowInComponent:(NSInteger)component; /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIPickerViewDataSource<NSObject> /* @required */ // - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView; // - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component; /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIPickerViewDelegate<NSObject> /* @optional */ // - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component __attribute__((availability(tvos,unavailable))); // - (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component __attribute__((availability(tvos,unavailable))); // - (nullable NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component __attribute__((availability(tvos,unavailable))); // - (nullable NSAttributedString *)pickerView:(UIPickerView *)pickerView attributedTitleForRow:(NSInteger)row forComponent:(NSInteger)component __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); // - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view __attribute__((availability(tvos,unavailable))); // - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=13.0))) // @protocol UIInteraction <NSObject> // @property (nonatomic, nullable, weak, readonly) __kindof UIView *view; // - (void)willMoveToView:(nullable UIView *)view; // - (void)didMoveToView:(nullable UIView *)view; /* @end */ // @interface UIView (Interactions) // - (void)addInteraction:(id<UIInteraction>)interaction __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=13.0))); // - (void)removeInteraction:(id<UIInteraction>)interaction __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nonatomic, copy) NSArray<id<UIInteraction>> *interactions __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString *UIActionIdentifier __attribute__((swift_name("UIAction.Identifier"))) __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))); // @class UIAction; #ifndef _REWRITER_typedef_UIAction #define _REWRITER_typedef_UIAction typedef struct objc_object UIAction; typedef struct {} _objc_exc_UIAction; #endif typedef void (*UIActionHandler)(__kindof UIAction *action); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIAction #define _REWRITER_typedef_UIAction typedef struct objc_object UIAction; typedef struct {} _objc_exc_UIAction; #endif struct UIAction_IMPL { struct UIMenuElement_IMPL UIMenuElement_IVARS; }; // @property (nonatomic, copy) NSString *title; // @property (nullable, nonatomic, copy) UIImage *image; // @property (nullable, nonatomic, copy) NSString *discoverabilityTitle; // @property (nonatomic, readonly) UIActionIdentifier identifier; // @property (nonatomic) UIMenuElementAttributes attributes; // @property (nonatomic) UIMenuElementState state; // @property (nonatomic, readonly, nullable) id sender __attribute__((availability(ios,introduced=14.0))); // + (instancetype)actionWithHandler:(UIActionHandler)handler __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(swift, unavailable, message="Use init(title:image:identifier:discoverabilityTitle:attributes:state:handler:) instead."))); #if 0 + (instancetype)actionWithTitle:(NSString *)title image:(nullable UIImage *)image identifier:(nullable UIActionIdentifier)identifier handler:(UIActionHandler)handler __attribute__((availability(swift, unavailable, message="Use init(title:image:identifier:discoverabilityTitle:attributes:state:handler:) instead."))); #endif // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIViewController; #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif typedef UIMenu * _Nullable (*UIContextMenuActionProvider)(NSArray<UIMenuElement *> *suggestedActions); typedef UIViewController * _Nullable (*UIContextMenuContentPreviewProvider)(void); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIContextMenuConfiguration #define _REWRITER_typedef_UIContextMenuConfiguration typedef struct objc_object UIContextMenuConfiguration; typedef struct {} _objc_exc_UIContextMenuConfiguration; #endif struct UIContextMenuConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) id<NSCopying> identifier; #if 0 + (instancetype)configurationWithIdentifier:(nullable id<NSCopying>)identifier previewProvider:(nullable UIContextMenuContentPreviewProvider)previewProvider actionProvider:(nullable UIContextMenuActionProvider)actionProvider; #endif /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITargetedPreview; #ifndef _REWRITER_typedef_UITargetedPreview #define _REWRITER_typedef_UITargetedPreview typedef struct objc_object UITargetedPreview; typedef struct {} _objc_exc_UITargetedPreview; #endif // @protocol UIContextMenuInteractionDelegate; typedef NSInteger UIContextMenuInteractionCommitStyle; enum { UIContextMenuInteractionCommitStyleDismiss = 0, UIContextMenuInteractionCommitStylePop, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UIContextMenuInteractionAppearance; enum { UIContextMenuInteractionAppearanceUnknown = 0, UIContextMenuInteractionAppearanceRich, UIContextMenuInteractionAppearanceCompact, } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIContextMenuInteraction #define _REWRITER_typedef_UIContextMenuInteraction typedef struct objc_object UIContextMenuInteraction; typedef struct {} _objc_exc_UIContextMenuInteraction; #endif struct UIContextMenuInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, weak, readonly) id<UIContextMenuInteractionDelegate> delegate; // @property (nonatomic, readonly) UIContextMenuInteractionAppearance menuAppearance __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithDelegate:(id<UIContextMenuInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (CGPoint)locationInView:(nullable UIView *)view; // - (void)updateVisibleMenuWithBlock:(UIMenu *(__attribute__((noescape)) ^)(UIMenu *visibleMenu))block __attribute__((availability(ios,introduced=14.0))); // - (void)dismissMenu; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIContextMenuInteractionAnimating <NSObject> // @property (nonatomic, readonly, nullable) UIViewController *previewViewController; // - (void)addAnimations:(void (^)(void))animations; // - (void)addCompletion:(void (^)(void))completion; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIContextMenuInteractionCommitAnimating <UIContextMenuInteractionAnimating> // @property (nonatomic) UIContextMenuInteractionCommitStyle preferredCommitStyle; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIContextMenuInteractionDelegate <NSObject> // - (nullable UIContextMenuConfiguration *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configurationForMenuAtLocation:(CGPoint)location; /* @optional */ // - (nullable UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration; // - (nullable UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForDismissingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration; // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator; // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willDisplayMenuForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator; // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willEndForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UIControlEvents; enum { UIControlEventTouchDown = 1 << 0, UIControlEventTouchDownRepeat = 1 << 1, UIControlEventTouchDragInside = 1 << 2, UIControlEventTouchDragOutside = 1 << 3, UIControlEventTouchDragEnter = 1 << 4, UIControlEventTouchDragExit = 1 << 5, UIControlEventTouchUpInside = 1 << 6, UIControlEventTouchUpOutside = 1 << 7, UIControlEventTouchCancel = 1 << 8, UIControlEventValueChanged = 1 << 12, UIControlEventPrimaryActionTriggered __attribute__((availability(ios,introduced=9.0))) = 1 << 13, UIControlEventMenuActionTriggered __attribute__((availability(ios,introduced=14.0))) = 1 << 14, UIControlEventEditingDidBegin = 1 << 16, UIControlEventEditingChanged = 1 << 17, UIControlEventEditingDidEnd = 1 << 18, UIControlEventEditingDidEndOnExit = 1 << 19, UIControlEventAllTouchEvents = 0x00000FFF, UIControlEventAllEditingEvents = 0x000F0000, UIControlEventApplicationReserved = 0x0F000000, UIControlEventSystemReserved = 0xF0000000, UIControlEventAllEvents = 0xFFFFFFFF }; typedef NSInteger UIControlContentVerticalAlignment; enum { UIControlContentVerticalAlignmentCenter = 0, UIControlContentVerticalAlignmentTop = 1, UIControlContentVerticalAlignmentBottom = 2, UIControlContentVerticalAlignmentFill = 3, }; typedef NSInteger UIControlContentHorizontalAlignment; enum { UIControlContentHorizontalAlignmentCenter = 0, UIControlContentHorizontalAlignmentLeft = 1, UIControlContentHorizontalAlignmentRight = 2, UIControlContentHorizontalAlignmentFill = 3, UIControlContentHorizontalAlignmentLeading __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 4, UIControlContentHorizontalAlignmentTrailing __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 5, }; typedef NSUInteger UIControlState; enum { UIControlStateNormal = 0, UIControlStateHighlighted = 1 << 0, UIControlStateDisabled = 1 << 1, UIControlStateSelected = 1 << 2, UIControlStateFocused __attribute__((availability(ios,introduced=9.0))) = 1 << 3, UIControlStateApplication = 0x00FF0000, UIControlStateReserved = 0xFF000000 }; // @class UITouch; #ifndef _REWRITER_typedef_UITouch #define _REWRITER_typedef_UITouch typedef struct objc_object UITouch; typedef struct {} _objc_exc_UITouch; #endif // @class UIEvent; #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIControl #define _REWRITER_typedef_UIControl typedef struct objc_object UIControl; typedef struct {} _objc_exc_UIControl; #endif struct UIControl_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithFrame:(CGRect)frame primaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic,getter=isEnabled) BOOL enabled; // @property(nonatomic,getter=isSelected) BOOL selected; // @property(nonatomic,getter=isHighlighted) BOOL highlighted; // @property(nonatomic) UIControlContentVerticalAlignment contentVerticalAlignment; // @property(nonatomic) UIControlContentHorizontalAlignment contentHorizontalAlignment; // @property(nonatomic, readonly) UIControlContentHorizontalAlignment effectiveContentHorizontalAlignment; // @property(nonatomic,readonly) UIControlState state; // @property(nonatomic,readonly,getter=isTracking) BOOL tracking; // @property(nonatomic,readonly,getter=isTouchInside) BOOL touchInside; // - (BOOL)beginTrackingWithTouch:(UITouch *)touch withEvent:(nullable UIEvent *)event; // - (BOOL)continueTrackingWithTouch:(UITouch *)touch withEvent:(nullable UIEvent *)event; // - (void)endTrackingWithTouch:(nullable UITouch *)touch withEvent:(nullable UIEvent *)event; // - (void)cancelTrackingWithEvent:(nullable UIEvent *)event; // - (void)addTarget:(nullable id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents; // - (void)removeTarget:(nullable id)target action:(nullable SEL)action forControlEvents:(UIControlEvents)controlEvents; // - (void)addAction:(UIAction *)action forControlEvents:(UIControlEvents)controlEvents __attribute__((availability(ios,introduced=14.0))); // - (void)removeAction:(UIAction *)action forControlEvents:(UIControlEvents)controlEvents __attribute__((availability(ios,introduced=14.0))); // - (void)removeActionForIdentifier:(UIActionIdentifier)actionIdentifier forControlEvents:(UIControlEvents)controlEvents __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic,readonly) NSSet *allTargets; // @property(nonatomic,readonly) UIControlEvents allControlEvents; // - (nullable NSArray<NSString *> *)actionsForTarget:(nullable id)target forControlEvent:(UIControlEvents)controlEvent; // - (void)enumerateEventHandlers:(void (__attribute__((noescape)) ^)(UIAction * _Nullable actionHandler, id _Nullable target, SEL _Nullable action, UIControlEvents controlEvents, BOOL *stop))iterator __attribute__((availability(ios,introduced=14.0))); // - (void)sendAction:(SEL)action to:(nullable id)target forEvent:(nullable UIEvent *)event; // - (void)sendAction:(UIAction *)action __attribute__((availability(ios,introduced=14.0))); // - (void)sendActionsForControlEvents:(UIControlEvents)controlEvents; // @property (nonatomic, readonly, strong, nullable) UIContextMenuInteraction *contextMenuInteraction __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign, getter = isContextMenuInteractionEnabled) BOOL contextMenuInteractionEnabled __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) BOOL showsMenuAsPrimaryAction __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (CGPoint)menuAttachmentPointForConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIControl() <UIContextMenuInteractionDelegate> // - (nullable UIContextMenuConfiguration *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configurationForMenuAtLocation:(CGPoint)location __attribute__((availability(ios,introduced=14.0))); // - (nullable UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=14.0))); // - (nullable UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForDismissingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=14.0))); // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willDisplayMenuForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((objc_requires_super)) __attribute__((availability(ios,introduced=14.0))); // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willEndForConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((objc_requires_super)) __attribute__((availability(ios,introduced=14.0))); // - (void)contextMenuInteraction:(UIContextMenuInteraction *)interaction willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIRefreshControl #define _REWRITER_typedef_UIRefreshControl typedef struct objc_object UIRefreshControl; typedef struct {} _objc_exc_UIRefreshControl; #endif struct UIRefreshControl_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // - (instancetype)init; // @property (nonatomic, readonly, getter=isRefreshing) BOOL refreshing; // @property (null_resettable, nonatomic, strong) UIColor *tintColor; // @property (nullable, nonatomic, strong) NSAttributedString *attributedTitle __attribute__((annotate("ui_appearance_selector"))); // - (void)beginRefreshing __attribute__((availability(ios,introduced=6.0))); // - (void)endRefreshing __attribute__((availability(ios,introduced=6.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIScrollViewIndicatorStyle; enum { UIScrollViewIndicatorStyleDefault, UIScrollViewIndicatorStyleBlack, UIScrollViewIndicatorStyleWhite }; typedef NSInteger UIScrollViewKeyboardDismissMode; enum { UIScrollViewKeyboardDismissModeNone, UIScrollViewKeyboardDismissModeOnDrag, UIScrollViewKeyboardDismissModeInteractive, } __attribute__((availability(ios,introduced=7.0))); typedef NSInteger UIScrollViewIndexDisplayMode; enum { UIScrollViewIndexDisplayModeAutomatic, UIScrollViewIndexDisplayModeAlwaysHidden, } __attribute__((availability(tvos,introduced=10.2))); typedef NSInteger UIScrollViewContentInsetAdjustmentBehavior; enum { UIScrollViewContentInsetAdjustmentAutomatic, UIScrollViewContentInsetAdjustmentScrollableAxes, UIScrollViewContentInsetAdjustmentNever, UIScrollViewContentInsetAdjustmentAlways, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); typedef CGFloat UIScrollViewDecelerationRate __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) const UIScrollViewDecelerationRate UIScrollViewDecelerationRateNormal __attribute__((availability(ios,introduced=3.0))); extern "C" __attribute__((visibility ("default"))) const UIScrollViewDecelerationRate UIScrollViewDecelerationRateFast __attribute__((availability(ios,introduced=3.0))); // @class UIEvent; #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_UIPanGestureRecognizer #define _REWRITER_typedef_UIPanGestureRecognizer typedef struct objc_object UIPanGestureRecognizer; typedef struct {} _objc_exc_UIPanGestureRecognizer; #endif #ifndef _REWRITER_typedef_UIPinchGestureRecognizer #define _REWRITER_typedef_UIPinchGestureRecognizer typedef struct objc_object UIPinchGestureRecognizer; typedef struct {} _objc_exc_UIPinchGestureRecognizer; #endif // @protocol UIScrollViewDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIScrollView #define _REWRITER_typedef_UIScrollView typedef struct objc_object UIScrollView; typedef struct {} _objc_exc_UIScrollView; #endif struct UIScrollView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nonatomic) CGPoint contentOffset; // @property(nonatomic) CGSize contentSize; // @property(nonatomic) UIEdgeInsets contentInset; // @property(nonatomic, readonly) UIEdgeInsets adjustedContentInset __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)adjustedContentInsetDidChange __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((objc_requires_super)); // @property(nonatomic) UIScrollViewContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic) BOOL automaticallyAdjustsScrollIndicatorInsets __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property(nonatomic,readonly,strong) UILayoutGuide *contentLayoutGuide __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic,readonly,strong) UILayoutGuide *frameLayoutGuide __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nullable,nonatomic,weak) id<UIScrollViewDelegate> delegate; // @property(nonatomic,getter=isDirectionalLockEnabled) BOOL directionalLockEnabled; // @property(nonatomic) BOOL bounces; // @property(nonatomic) BOOL alwaysBounceVertical; // @property(nonatomic) BOOL alwaysBounceHorizontal; // @property(nonatomic,getter=isPagingEnabled) BOOL pagingEnabled __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isScrollEnabled) BOOL scrollEnabled; // @property(nonatomic) BOOL showsVerticalScrollIndicator; // @property(nonatomic) BOOL showsHorizontalScrollIndicator; // @property(nonatomic) UIScrollViewIndicatorStyle indicatorStyle; // @property(nonatomic) UIEdgeInsets verticalScrollIndicatorInsets __attribute__((availability(ios,introduced=11.1))) __attribute__((availability(tvos,introduced=11.1))); // @property(nonatomic) UIEdgeInsets horizontalScrollIndicatorInsets __attribute__((availability(ios,introduced=11.1))) __attribute__((availability(tvos,introduced=11.1))); // @property(nonatomic) UIEdgeInsets scrollIndicatorInsets; // - (UIEdgeInsets)scrollIndicatorInsets __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="The scrollIndicatorInsets getter is deprecated, use the verticalScrollIndicatorInsets and horizontalScrollIndicatorInsets getters instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="The scrollIndicatorInsets getter is deprecated, use the verticalScrollIndicatorInsets and horizontalScrollIndicatorInsets getters instead."))); // @property(nonatomic) UIScrollViewDecelerationRate decelerationRate __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic) UIScrollViewIndexDisplayMode indexDisplayMode __attribute__((availability(tvos,introduced=10.2))); // - (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated; // - (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated; // - (void)flashScrollIndicators; // @property(nonatomic,readonly,getter=isTracking) BOOL tracking; // @property(nonatomic,readonly,getter=isDragging) BOOL dragging; // @property(nonatomic,readonly,getter=isDecelerating) BOOL decelerating; // @property(nonatomic) BOOL delaysContentTouches; // @property(nonatomic) BOOL canCancelContentTouches; // - (BOOL)touchesShouldBegin:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event inContentView:(UIView *)view; // - (BOOL)touchesShouldCancelInContentView:(UIView *)view; // @property(nonatomic) CGFloat minimumZoomScale; // @property(nonatomic) CGFloat maximumZoomScale; // @property(nonatomic) CGFloat zoomScale __attribute__((availability(ios,introduced=3.0))); // - (void)setZoomScale:(CGFloat)scale animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))); // - (void)zoomToRect:(CGRect)rect animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic) BOOL bouncesZoom; // @property(nonatomic,readonly,getter=isZooming) BOOL zooming; // @property(nonatomic,readonly,getter=isZoomBouncing) BOOL zoomBouncing; // @property(nonatomic) BOOL scrollsToTop __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) UIPanGestureRecognizer *panGestureRecognizer __attribute__((availability(ios,introduced=5.0))); // @property(nullable, nonatomic, readonly) UIPinchGestureRecognizer *pinchGestureRecognizer __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly) UIGestureRecognizer *directionalPressGestureRecognizer __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,message="Configuring the panGestureRecognizer for indirect scrolling automatically supports directional presses now, so this property is no longer useful."))); // @property(nonatomic) UIScrollViewKeyboardDismissMode keyboardDismissMode __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, strong, nullable) UIRefreshControl *refreshControl __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol UIScrollViewDelegate<NSObject> /* @optional */ // - (void)scrollViewDidScroll:(UIScrollView *)scrollView; // - (void)scrollViewDidZoom:(UIScrollView *)scrollView __attribute__((availability(ios,introduced=3.2))); // - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView; // - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset __attribute__((availability(ios,introduced=5.0))); // - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate; // - (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView; // - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView; // - (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView; // - (nullable UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView; // - (void)scrollViewWillBeginZooming:(UIScrollView *)scrollView withView:(nullable UIView *)view __attribute__((availability(ios,introduced=3.2))); // - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(nullable UIView *)view atScale:(CGFloat)scale; // - (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView; // - (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView; // - (void)scrollViewDidChangeAdjustedContentInset:(UIScrollView *)scrollView __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(tvos,unavailable))) // @protocol UIPickerViewAccessibilityDelegate <UIPickerViewDelegate> /* @optional */ // - (nullable NSString *)pickerView:(UIPickerView *)pickerView accessibilityLabelForComponent:(NSInteger)component; // - (nullable NSString *)pickerView:(UIPickerView *)pickerView accessibilityHintForComponent:(NSInteger)component; // - (NSArray<NSString *> *)pickerView:(UIPickerView *)pickerView accessibilityUserInputLabelsForComponent:(NSInteger)component __attribute__((availability(ios,introduced=13.0))); // - (nullable NSAttributedString *)pickerView:(UIPickerView *)pickerView accessibilityAttributedLabelForComponent:(NSInteger)component __attribute__((availability(ios,introduced=11.0))); // - (nullable NSAttributedString *)pickerView:(UIPickerView *)pickerView accessibilityAttributedHintForComponent:(NSInteger)component __attribute__((availability(ios,introduced=11.0))); // - (NSArray<NSAttributedString *> *)pickerView:(UIPickerView *)pickerView accessibilityAttributedUserInputLabelsForComponent:(NSInteger)component __attribute__((availability(ios,introduced=13.0))); /* @end */ // @protocol UIScrollViewAccessibilityDelegate <UIScrollViewDelegate> /* @optional */ // - (nullable NSString *)accessibilityScrollStatusForScrollView:(UIScrollView *)scrollView; // - (nullable NSAttributedString *)accessibilityAttributedScrollStatusForScrollView:(UIScrollView *)scrollView __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface UIView (UIAccessibilityInvertColors) // @property(nonatomic) BOOL accessibilityIgnoresInvertColors __attribute__((availability(ios,introduced=11_0))) __attribute__((availability(tvos,introduced=11_0))); /* @end */ // @interface UIColor (UIAccessibility) // @property (nonatomic, readonly) NSString *accessibilityName __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(macos,introduced=11.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface NSObject (UIAccessibilityContainer) // - (NSInteger)accessibilityElementCount; // - (nullable id)accessibilityElementAtIndex:(NSInteger)index; // - (NSInteger)indexOfAccessibilityElement:(id)element; // @property (nullable, nonatomic, strong) NSArray *accessibilityElements __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) UIAccessibilityContainerType accessibilityContainerType __attribute__((availability(ios,introduced=11.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) // @protocol UIAccessibilityContainerDataTableCell <NSObject> /* @required */ // - (NSRange)accessibilityRowRange; // - (NSRange)accessibilityColumnRange; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) // @protocol UIAccessibilityContainerDataTable <NSObject> /* @required */ // - (nullable id<UIAccessibilityContainerDataTableCell>)accessibilityDataTableCellElementForRow:(NSUInteger)row column:(NSUInteger)column; // - (NSUInteger)accessibilityRowCount; // - (NSUInteger)accessibilityColumnCount; /* @optional */ // - (nullable NSArray<id<UIAccessibilityContainerDataTableCell>> *)accessibilityHeaderElementsForRow:(NSUInteger)row; // - (nullable NSArray<id<UIAccessibilityContainerDataTableCell>> *)accessibilityHeaderElementsForColumn:(NSUInteger)column; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIAccessibilityCustomAction #define _REWRITER_typedef_UIAccessibilityCustomAction typedef struct objc_object UIAccessibilityCustomAction; typedef struct {} _objc_exc_UIAccessibilityCustomAction; #endif struct UIAccessibilityCustomAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithName:(NSString *)name target:(nullable id)target selector:(SEL)selector; // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName target:(nullable id)target selector:(SEL)selector __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (instancetype)initWithName:(NSString *)name image:(nullable UIImage *)image target:(nullable id)target selector:(SEL)selector __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName image:(nullable UIImage *)image target:(nullable id)target selector:(SEL)selector __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); typedef BOOL(*UIAccessibilityCustomActionHandler)(UIAccessibilityCustomAction *customAction); // - (instancetype)initWithName:(NSString *)name actionHandler:(UIAccessibilityCustomActionHandler)actionHandler __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName actionHandler:(UIAccessibilityCustomActionHandler)actionHandler __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // - (instancetype)initWithName:(NSString *)name image:(nullable UIImage *)image actionHandler:(UIAccessibilityCustomActionHandler)actionHandler __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName image:(nullable UIImage *)image actionHandler:(UIAccessibilityCustomActionHandler)actionHandler __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // @property (nonatomic, copy) NSString *name; // @property (nullable, nonatomic, strong) UIImage *image; // @property (nonatomic, copy) NSAttributedString *attributedName __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, nonatomic, weak) id target; // @property (nonatomic, assign) SEL selector; // @property (nonatomic, copy, nullable) UIAccessibilityCustomActionHandler actionHandler __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UITextAutocapitalizationType; enum { UITextAutocapitalizationTypeNone, UITextAutocapitalizationTypeWords, UITextAutocapitalizationTypeSentences, UITextAutocapitalizationTypeAllCharacters, }; typedef NSInteger UITextAutocorrectionType; enum { UITextAutocorrectionTypeDefault, UITextAutocorrectionTypeNo, UITextAutocorrectionTypeYes, }; typedef NSInteger UITextSpellCheckingType; enum { UITextSpellCheckingTypeDefault, UITextSpellCheckingTypeNo, UITextSpellCheckingTypeYes, } __attribute__((availability(ios,introduced=5.0))); typedef NSInteger UITextSmartQuotesType; enum { UITextSmartQuotesTypeDefault, UITextSmartQuotesTypeNo, UITextSmartQuotesTypeYes, } __attribute__((availability(ios,introduced=11.0))); typedef NSInteger UITextSmartDashesType; enum { UITextSmartDashesTypeDefault, UITextSmartDashesTypeNo, UITextSmartDashesTypeYes, } __attribute__((availability(ios,introduced=11.0))); typedef NSInteger UITextSmartInsertDeleteType; enum { UITextSmartInsertDeleteTypeDefault, UITextSmartInsertDeleteTypeNo, UITextSmartInsertDeleteTypeYes, } __attribute__((availability(ios,introduced=11.0))); typedef NSInteger UIKeyboardType; enum { UIKeyboardTypeDefault, UIKeyboardTypeASCIICapable, UIKeyboardTypeNumbersAndPunctuation, UIKeyboardTypeURL, UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, UIKeyboardTypeNamePhonePad, UIKeyboardTypeEmailAddress, UIKeyboardTypeDecimalPad __attribute__((availability(ios,introduced=4.1))), UIKeyboardTypeTwitter __attribute__((availability(ios,introduced=5.0))), UIKeyboardTypeWebSearch __attribute__((availability(ios,introduced=7.0))), UIKeyboardTypeASCIICapableNumberPad __attribute__((availability(ios,introduced=10.0))), UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, }; typedef NSInteger UIKeyboardAppearance; enum { UIKeyboardAppearanceDefault, UIKeyboardAppearanceDark __attribute__((availability(ios,introduced=7.0))), UIKeyboardAppearanceLight __attribute__((availability(ios,introduced=7.0))), UIKeyboardAppearanceAlert = UIKeyboardAppearanceDark, }; typedef NSInteger UIReturnKeyType; enum { UIReturnKeyDefault, UIReturnKeyGo, UIReturnKeyGoogle, UIReturnKeyJoin, UIReturnKeyNext, UIReturnKeyRoute, UIReturnKeySearch, UIReturnKeySend, UIReturnKeyYahoo, UIReturnKeyDone, UIReturnKeyEmergencyCall, UIReturnKeyContinue __attribute__((availability(ios,introduced=9.0))), }; typedef NSString * UITextContentType __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=12.0))) #ifndef _REWRITER_typedef_UITextInputPasswordRules #define _REWRITER_typedef_UITextInputPasswordRules typedef struct objc_object UITextInputPasswordRules; typedef struct {} _objc_exc_UITextInputPasswordRules; #endif struct UITextInputPasswordRules_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic,readonly) NSString *passwordRulesDescriptor; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // + (instancetype)passwordRulesWithDescriptor:(NSString *)passwordRulesDescriptor; /* @end */ // @protocol UITextInputTraits <NSObject> /* @optional */ // @property(nonatomic) UITextAutocapitalizationType autocapitalizationType; // @property(nonatomic) UITextAutocorrectionType autocorrectionType; // @property(nonatomic) UITextSpellCheckingType spellCheckingType __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic) UITextSmartQuotesType smartQuotesType __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) UITextSmartDashesType smartDashesType __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) UITextSmartInsertDeleteType smartInsertDeleteType __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) UIKeyboardType keyboardType; // @property(nonatomic) UIKeyboardAppearance keyboardAppearance; // @property(nonatomic) UIReturnKeyType returnKeyType; // @property(nonatomic) BOOL enablesReturnKeyAutomatically; // @property(nonatomic,getter=isSecureTextEntry) BOOL secureTextEntry; // @property(null_unspecified,nonatomic,copy) UITextContentType textContentType __attribute__((availability(ios,introduced=10.0))); // @property(nullable,nonatomic,copy) UITextInputPasswordRules *passwordRules __attribute__((availability(ios,introduced=12.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeNamePrefix __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeGivenName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeMiddleName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeFamilyName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeNameSuffix __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeNickname __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeJobTitle __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeOrganizationName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeLocation __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeFullStreetAddress __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeStreetAddressLine1 __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeStreetAddressLine2 __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeAddressCity __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeAddressState __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeAddressCityAndState __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeSublocality __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeCountryName __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypePostalCode __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeTelephoneNumber __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeEmailAddress __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeURL __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeCreditCardNumber __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeUsername __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypePassword __attribute__((availability(ios,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeNewPassword __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility ("default"))) UITextContentType const UITextContentTypeOneTimeCode __attribute__((availability(ios,introduced=12.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIKeyInput <UITextInputTraits> // @property(nonatomic, readonly) BOOL hasText; // - (void)insertText:(NSString *)text; // - (void)deleteBackward; /* @end */ // @class NSTextAlternatives; #ifndef _REWRITER_typedef_NSTextAlternatives #define _REWRITER_typedef_NSTextAlternatives typedef struct objc_object NSTextAlternatives; typedef struct {} _objc_exc_NSTextAlternatives; #endif // @class UITextPosition; #ifndef _REWRITER_typedef_UITextPosition #define _REWRITER_typedef_UITextPosition typedef struct objc_object UITextPosition; typedef struct {} _objc_exc_UITextPosition; #endif // @class UITextRange; #ifndef _REWRITER_typedef_UITextRange #define _REWRITER_typedef_UITextRange typedef struct objc_object UITextRange; typedef struct {} _objc_exc_UITextRange; #endif // @class UITextSelectionRect; #ifndef _REWRITER_typedef_UITextSelectionRect #define _REWRITER_typedef_UITextSelectionRect typedef struct objc_object UITextSelectionRect; typedef struct {} _objc_exc_UITextSelectionRect; #endif // @class UIBarButtonItemGroup; #ifndef _REWRITER_typedef_UIBarButtonItemGroup #define _REWRITER_typedef_UIBarButtonItemGroup typedef struct objc_object UIBarButtonItemGroup; typedef struct {} _objc_exc_UIBarButtonItemGroup; #endif // @protocol UITextInputTokenizer; // @protocol UITextInputDelegate; typedef NSInteger UITextStorageDirection; enum { UITextStorageDirectionForward = 0, UITextStorageDirectionBackward }; typedef NSInteger UITextLayoutDirection; enum { UITextLayoutDirectionRight = 2, UITextLayoutDirectionLeft, UITextLayoutDirectionUp, UITextLayoutDirectionDown }; typedef NSInteger UITextDirection __attribute__((swift_wrapper(enum))); typedef NSInteger UITextGranularity; enum { UITextGranularityCharacter, UITextGranularityWord, UITextGranularitySentence, UITextGranularityParagraph, UITextGranularityLine, UITextGranularityDocument }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.1))) #ifndef _REWRITER_typedef_UIDictationPhrase #define _REWRITER_typedef_UIDictationPhrase typedef struct objc_object UIDictationPhrase; typedef struct {} _objc_exc_UIDictationPhrase; #endif struct UIDictationPhrase_IMPL { struct NSObject_IMPL NSObject_IVARS; NSString *_text; NSArray * _Nullable _alternativeInterpretations; }; // @property (nonatomic, readonly) NSString *text; // @property (nullable, nonatomic, readonly) NSArray<NSString *> *alternativeInterpretations; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UITextInputAssistantItem #define _REWRITER_typedef_UITextInputAssistantItem typedef struct objc_object UITextInputAssistantItem; typedef struct {} _objc_exc_UITextInputAssistantItem; #endif struct UITextInputAssistantItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readwrite, assign) BOOL allowsHidingShortcuts; // @property (nonatomic, readwrite, copy) NSArray<UIBarButtonItemGroup *> *leadingBarButtonGroups; // @property (nonatomic, readwrite, copy) NSArray<UIBarButtonItemGroup *> *trailingBarButtonGroups; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UITextPlaceholder #define _REWRITER_typedef_UITextPlaceholder typedef struct objc_object UITextPlaceholder; typedef struct {} _objc_exc_UITextPlaceholder; #endif struct UITextPlaceholder_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSArray<UITextSelectionRect *> *rects; /* @end */ typedef NSInteger UITextAlternativeStyle; enum { UITextAlternativeStyleNone, UITextAlternativeStyleLowConfidence }; // @protocol UITextInput <UIKeyInput> /* @required */ // - (nullable NSString *)textInRange:(UITextRange *)range; // - (void)replaceRange:(UITextRange *)range withText:(NSString *)text; // @property (nullable, readwrite, copy) UITextRange *selectedTextRange; // @property (nullable, nonatomic, readonly) UITextRange *markedTextRange; // @property (nullable, nonatomic, copy) NSDictionary<NSAttributedStringKey, id> *markedTextStyle; // - (void)setMarkedText:(nullable NSString *)markedText selectedRange:(NSRange)selectedRange; // - (void)unmarkText; // @property (nonatomic, readonly) UITextPosition *beginningOfDocument; // @property (nonatomic, readonly) UITextPosition *endOfDocument; // - (nullable UITextRange *)textRangeFromPosition:(UITextPosition *)fromPosition toPosition:(UITextPosition *)toPosition; // - (nullable UITextPosition *)positionFromPosition:(UITextPosition *)position offset:(NSInteger)offset; // - (nullable UITextPosition *)positionFromPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction offset:(NSInteger)offset; // - (NSComparisonResult)comparePosition:(UITextPosition *)position toPosition:(UITextPosition *)other; // - (NSInteger)offsetFromPosition:(UITextPosition *)from toPosition:(UITextPosition *)toPosition; // @property (nullable, nonatomic, weak) id <UITextInputDelegate> inputDelegate; // @property (nonatomic, readonly) id <UITextInputTokenizer> tokenizer; // - (nullable UITextPosition *)positionWithinRange:(UITextRange *)range farthestInDirection:(UITextLayoutDirection)direction; // - (nullable UITextRange *)characterRangeByExtendingPosition:(UITextPosition *)position inDirection:(UITextLayoutDirection)direction; // - (NSWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction; // - (void)setBaseWritingDirection:(NSWritingDirection)writingDirection forRange:(UITextRange *)range; // - (CGRect)firstRectForRange:(UITextRange *)range; // - (CGRect)caretRectForPosition:(UITextPosition *)position; // - (NSArray<UITextSelectionRect *> *)selectionRectsForRange:(UITextRange *)range __attribute__((availability(ios,introduced=6.0))); // - (nullable UITextPosition *)closestPositionToPoint:(CGPoint)point; // - (nullable UITextPosition *)closestPositionToPoint:(CGPoint)point withinRange:(UITextRange *)range; // - (nullable UITextRange *)characterRangeAtPoint:(CGPoint)point; /* @optional */ // - (BOOL)shouldChangeTextInRange:(UITextRange *)range replacementText:(NSString *)text __attribute__((availability(ios,introduced=6.0))); // - (nullable NSDictionary<NSAttributedStringKey, id> *)textStylingAtPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction; // - (nullable UITextPosition *)positionWithinRange:(UITextRange *)range atCharacterOffset:(NSInteger)offset; // - (NSInteger)characterOffsetOfPosition:(UITextPosition *)position withinRange:(UITextRange *)range; // @property (nonatomic, readonly) __kindof UIView *textInputView; // @property (nonatomic) UITextStorageDirection selectionAffinity; // - (void)insertDictationResult:(NSArray<UIDictationPhrase *> *)dictationResult; // - (void)dictationRecordingDidEnd; // - (void)dictationRecognitionFailed; // @property(nonatomic, readonly) id insertDictationResultPlaceholder; // - (CGRect)frameForDictationResultPlaceholder:(id)placeholder; // - (void)removeDictationResultPlaceholder:(id)placeholder willInsertResult:(BOOL)willInsertResult; // - (void)insertText:(NSString *)text alternatives:(NSArray<NSString *> *)alternatives style:(UITextAlternativeStyle)style; // - (void)setAttributedMarkedText:(nullable NSAttributedString *)markedText selectedRange:(NSRange)selectedRange; // - (UITextPlaceholder *)insertTextPlaceholderWithSize:(CGSize)size; // - (void)removeTextPlaceholder:(UITextPlaceholder *)textPlaceholder; // - (void)beginFloatingCursorAtPoint:(CGPoint)point __attribute__((availability(ios,introduced=9.0))); // - (void)updateFloatingCursorAtPoint:(CGPoint)point __attribute__((availability(ios,introduced=9.0))); // - (void)endFloatingCursor __attribute__((availability(ios,introduced=9.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString *const UITextInputTextBackgroundColorKey __attribute__((availability(ios,introduced=3.2,deprecated=8.0,replacement="NSBackgroundColorAttributeName"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UITextInputTextColorKey __attribute__((availability(ios,introduced=3.2,deprecated=8.0,replacement="NSForegroundColorAttributeName"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UITextInputTextFontKey __attribute__((availability(ios,introduced=3.2,deprecated=8.0,replacement="NSFontAttributeName"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UITextPosition #define _REWRITER_typedef_UITextPosition typedef struct objc_object UITextPosition; typedef struct {} _objc_exc_UITextPosition; #endif struct UITextPosition_IMPL { struct NSObject_IMPL NSObject_IVARS; }; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UITextRange #define _REWRITER_typedef_UITextRange typedef struct objc_object UITextRange; typedef struct {} _objc_exc_UITextRange; #endif struct UITextRange_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // @property (nonatomic, readonly) UITextPosition *start; // @property (nonatomic, readonly) UITextPosition *end; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UITextSelectionRect #define _REWRITER_typedef_UITextSelectionRect typedef struct objc_object UITextSelectionRect; typedef struct {} _objc_exc_UITextSelectionRect; #endif struct UITextSelectionRect_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) CGRect rect; // @property (nonatomic, readonly) NSWritingDirection writingDirection; // @property (nonatomic, readonly) BOOL containsStart; // @property (nonatomic, readonly) BOOL containsEnd; // @property (nonatomic, readonly) BOOL isVertical; /* @end */ // @protocol UITextInputDelegate <NSObject> // - (void)selectionWillChange:(nullable id <UITextInput>)textInput; // - (void)selectionDidChange:(nullable id <UITextInput>)textInput; // - (void)textWillChange:(nullable id <UITextInput>)textInput; // - (void)textDidChange:(nullable id <UITextInput>)textInput; /* @end */ // @protocol UITextInputTokenizer <NSObject> /* @required */ // - (nullable UITextRange *)rangeEnclosingPosition:(UITextPosition *)position withGranularity:(UITextGranularity)granularity inDirection:(UITextDirection)direction; // - (BOOL)isPosition:(UITextPosition *)position atBoundary:(UITextGranularity)granularity inDirection:(UITextDirection)direction; // - (nullable UITextPosition *)positionFromPosition:(UITextPosition *)position toBoundary:(UITextGranularity)granularity inDirection:(UITextDirection)direction; // - (BOOL)isPosition:(UITextPosition *)position withinTextUnit:(UITextGranularity)granularity inDirection:(UITextDirection)direction; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UITextInputStringTokenizer #define _REWRITER_typedef_UITextInputStringTokenizer typedef struct objc_object UITextInputStringTokenizer; typedef struct {} _objc_exc_UITextInputStringTokenizer; #endif struct UITextInputStringTokenizer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTextInput:(UIResponder <UITextInput> *)textInput; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) #ifndef _REWRITER_typedef_UITextInputMode #define _REWRITER_typedef_UITextInputMode typedef struct objc_object UITextInputMode; typedef struct {} _objc_exc_UITextInputMode; #endif struct UITextInputMode_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nullable, nonatomic, readonly, strong) NSString *primaryLanguage; // + (nullable UITextInputMode *)currentInputMode __attribute__((availability(ios,introduced=4.2,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); @property(class, nonatomic, readonly) NSArray<UITextInputMode *> *activeInputModes; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextInputCurrentInputModeDidChangeNotification __attribute__((availability(ios,introduced=4.2))); typedef NSWritingDirection UITextWritingDirection __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="NSWritingDirection"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="NSWritingDirection"))); static const UITextWritingDirection UITextWritingDirectionNatural __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="NSWritingDirectionNatural"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="NSWritingDirectionNatural"))) = NSWritingDirectionNatural; static const UITextWritingDirection UITextWritingDirectionLeftToRight __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="NSWritingDirectionLeftToRight"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="NSWritingDirectionLeftToRight"))) = NSWritingDirectionLeftToRight; static const UITextWritingDirection UITextWritingDirectionRightToLeft __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="NSWritingDirectionRightToLeft"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="NSWritingDirectionRightToLeft"))) = NSWritingDirectionRightToLeft; #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIAccessibilityCustomRotor; #ifndef _REWRITER_typedef_UIAccessibilityCustomRotor #define _REWRITER_typedef_UIAccessibilityCustomRotor typedef struct objc_object UIAccessibilityCustomRotor; typedef struct {} _objc_exc_UIAccessibilityCustomRotor; #endif #ifndef _REWRITER_typedef_UIAccessibilityCustomRotorItemResult #define _REWRITER_typedef_UIAccessibilityCustomRotorItemResult typedef struct objc_object UIAccessibilityCustomRotorItemResult; typedef struct {} _objc_exc_UIAccessibilityCustomRotorItemResult; #endif #ifndef _REWRITER_typedef_UIAccessibilityCustomRotorSearchPredicate #define _REWRITER_typedef_UIAccessibilityCustomRotorSearchPredicate typedef struct objc_object UIAccessibilityCustomRotorSearchPredicate; typedef struct {} _objc_exc_UIAccessibilityCustomRotorSearchPredicate; #endif typedef NSInteger UIAccessibilityCustomRotorDirection; enum { UIAccessibilityCustomRotorDirectionPrevious __attribute__((availability(ios,introduced=10.0))), UIAccessibilityCustomRotorDirectionNext __attribute__((availability(ios,introduced=10.0))), }; typedef NSInteger UIAccessibilityCustomSystemRotorType; enum { UIAccessibilityCustomSystemRotorTypeNone = 0, UIAccessibilityCustomSystemRotorTypeLink, UIAccessibilityCustomSystemRotorTypeVisitedLink, UIAccessibilityCustomSystemRotorTypeHeading, UIAccessibilityCustomSystemRotorTypeHeadingLevel1, UIAccessibilityCustomSystemRotorTypeHeadingLevel2, UIAccessibilityCustomSystemRotorTypeHeadingLevel3, UIAccessibilityCustomSystemRotorTypeHeadingLevel4, UIAccessibilityCustomSystemRotorTypeHeadingLevel5, UIAccessibilityCustomSystemRotorTypeHeadingLevel6, UIAccessibilityCustomSystemRotorTypeBoldText, UIAccessibilityCustomSystemRotorTypeItalicText, UIAccessibilityCustomSystemRotorTypeUnderlineText, UIAccessibilityCustomSystemRotorTypeMisspelledWord, UIAccessibilityCustomSystemRotorTypeImage, UIAccessibilityCustomSystemRotorTypeTextField, UIAccessibilityCustomSystemRotorTypeTable, UIAccessibilityCustomSystemRotorTypeList, UIAccessibilityCustomSystemRotorTypeLandmark, } __attribute__((availability(ios,introduced=11.0))); typedef UIAccessibilityCustomRotorItemResult *_Nullable(*UIAccessibilityCustomRotorSearch)(UIAccessibilityCustomRotorSearchPredicate *predicate); // @interface NSObject (UIAccessibilityCustomRotor) // @property (nonatomic, retain, nullable) NSArray<UIAccessibilityCustomRotor *> *accessibilityCustomRotors __attribute__((availability(ios,introduced=10.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIAccessibilityCustomRotorSearchPredicate #define _REWRITER_typedef_UIAccessibilityCustomRotorSearchPredicate typedef struct objc_object UIAccessibilityCustomRotorSearchPredicate; typedef struct {} _objc_exc_UIAccessibilityCustomRotorSearchPredicate; #endif struct UIAccessibilityCustomRotorSearchPredicate_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, retain) UIAccessibilityCustomRotorItemResult *currentItem; // @property (nonatomic) UIAccessibilityCustomRotorDirection searchDirection; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIAccessibilityCustomRotor #define _REWRITER_typedef_UIAccessibilityCustomRotor typedef struct objc_object UIAccessibilityCustomRotor; typedef struct {} _objc_exc_UIAccessibilityCustomRotor; #endif struct UIAccessibilityCustomRotor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithName:(NSString *)name itemSearchBlock:(UIAccessibilityCustomRotorSearch)itemSearchBlock; // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName itemSearchBlock:(UIAccessibilityCustomRotorSearch)itemSearchBlock __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (instancetype)initWithSystemType:(UIAccessibilityCustomSystemRotorType)type itemSearchBlock:(UIAccessibilityCustomRotorSearch)itemSearchBlock __attribute__((availability(ios,introduced=11.0))); // @property (nonatomic, copy) NSString *name; // @property (nonatomic, copy) NSAttributedString *attributedName __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic, copy) UIAccessibilityCustomRotorSearch itemSearchBlock; // @property (nonatomic, readonly) UIAccessibilityCustomSystemRotorType systemRotorType __attribute__((availability(ios,introduced=11.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIAccessibilityCustomRotorItemResult #define _REWRITER_typedef_UIAccessibilityCustomRotorItemResult typedef struct objc_object UIAccessibilityCustomRotorItemResult; typedef struct {} _objc_exc_UIAccessibilityCustomRotorItemResult; #endif struct UIAccessibilityCustomRotorItemResult_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTargetElement:(id<NSObject>)targetElement targetRange:(nullable UITextRange *)targetRange; // @property (nonatomic, weak) id<NSObject> targetElement; // @property (nullable, nonatomic, retain) UITextRange *targetRange; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIBarItem #define _REWRITER_typedef_UIBarItem typedef struct objc_object UIBarItem; typedef struct {} _objc_exc_UIBarItem; #endif struct UIBarItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic,getter=isEnabled) BOOL enabled; // @property(nullable, nonatomic,copy) NSString *title; // @property(nullable, nonatomic,strong) UIImage *image; // @property(nullable, nonatomic,strong) UIImage *landscapeImagePhone __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,strong) UIImage *largeContentSizeImage __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) UIEdgeInsets imageInsets; // @property(nonatomic) UIEdgeInsets landscapeImagePhoneInsets __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UIEdgeInsets largeContentSizeImageInsets __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) NSInteger tag; // - (void)setTitleTextAttributes:(nullable NSDictionary<NSAttributedStringKey,id> *)attributes forState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable NSDictionary<NSAttributedStringKey,id> *)titleTextAttributesForState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); /* @end */ #pragma clang assume_nonnull end extern "C" __attribute__((visibility ("default"))) NSString *const UITextAttributeFont __attribute__((availability(ios,introduced=5.0,deprecated=7.0,replacement="NSFontAttributeName"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UITextAttributeTextColor __attribute__((availability(ios,introduced=5.0,deprecated=7.0,replacement="NSForegroundColorAttributeName"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UITextAttributeTextShadowColor __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSShadowAttributeName with an NSShadow instance as the value"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UITextAttributeTextShadowOffset __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use NSShadowAttributeName with an NSShadow instance as the value"))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UILineBreakMode; enum { UILineBreakModeWordWrap = 0, UILineBreakModeCharacterWrap, UILineBreakModeClip, UILineBreakModeHeadTruncation, UILineBreakModeTailTruncation, UILineBreakModeMiddleTruncation, } __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UITextAlignment; enum { UITextAlignmentLeft = 0, UITextAlignmentCenter, UITextAlignmentRight, } __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UIBaselineAdjustment; enum { UIBaselineAdjustmentAlignBaselines = 0, UIBaselineAdjustmentAlignCenters, UIBaselineAdjustmentNone, }; // @class UIFont; #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif // @interface NSString(UIStringDrawing) // - (CGSize)sizeWithFont:(UIFont *)font __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="sizeWithAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)sizeWithFont:(UIFont *)font forWidth:(CGFloat)width lineBreakMode:(NSLineBreakMode)lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="boundingRectWithSize:options:attributes:context:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawAtPoint:(CGPoint)point withFont:(UIFont *)font __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawAtPoint:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawAtPoint:(CGPoint)point forWidth:(CGFloat)width withFont:(UIFont *)font lineBreakMode:(NSLineBreakMode)lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="boundingRectWithSize:options:attributes:context:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="boundingRectWithSize:options:attributes:context:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font lineBreakMode:(NSLineBreakMode)lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawInRect:(CGRect)rect withFont:(UIFont *)font lineBreakMode:(NSLineBreakMode)lineBreakMode alignment:(NSTextAlignment)alignment __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)sizeWithFont:(UIFont *)font minFontSize:(CGFloat)minFontSize actualFontSize:(CGFloat *)actualFontSize forWidth:(CGFloat)width lineBreakMode:(NSLineBreakMode)lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawAtPoint:(CGPoint)point forWidth:(CGFloat)width withFont:(UIFont *)font fontSize:(CGFloat)fontSize lineBreakMode:(NSLineBreakMode)lineBreakMode baselineAdjustment:(UIBaselineAdjustment)baselineAdjustment __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); // - (CGSize)drawAtPoint:(CGPoint)point forWidth:(CGFloat)width withFont:(UIFont *)font minFontSize:(CGFloat)minFontSize actualFontSize:(CGFloat *)actualFontSize lineBreakMode:(NSLineBreakMode)lineBreakMode baselineAdjustment:(UIBaselineAdjustment)baselineAdjustment __attribute__((availability(ios,introduced=2.0,deprecated=7.0,replacement="drawInRect:withAttributes:"))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull begin // @protocol UIDragAnimating, UIDropInteractionDelegate, UIDropSession; // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UITargetedDragPreview #define _REWRITER_typedef_UITargetedDragPreview typedef struct objc_object UITargetedDragPreview; typedef struct {} _objc_exc_UITargetedDragPreview; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDropInteraction #define _REWRITER_typedef_UIDropInteraction typedef struct objc_object UIDropInteraction; typedef struct {} _objc_exc_UIDropInteraction; #endif struct UIDropInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithDelegate:(id<UIDropInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, nullable, readonly, weak) id<UIDropInteractionDelegate> delegate; // @property (nonatomic, assign) BOOL allowsSimultaneousDropSessions; /* @end */ typedef NSUInteger UIDropOperation; enum { UIDropOperationCancel = 0, UIDropOperationForbidden = 1, UIDropOperationCopy = 2, UIDropOperationMove = 3, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDropProposal #define _REWRITER_typedef_UIDropProposal typedef struct objc_object UIDropProposal; typedef struct {} _objc_exc_UIDropProposal; #endif struct UIDropProposal_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithDropOperation:(UIDropOperation)operation __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) UIDropOperation operation; // @property (nonatomic, getter=isPrecise) BOOL precise; // @property (nonatomic) BOOL prefersFullSizePreview; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDropInteractionDelegate <NSObject> /* @optional */ // - (BOOL)dropInteraction:(UIDropInteraction *)interaction canHandleSession:(id<UIDropSession>)session; // - (void)dropInteraction:(UIDropInteraction *)interaction sessionDidEnter:(id<UIDropSession>)session; // - (UIDropProposal *)dropInteraction:(UIDropInteraction *)interaction sessionDidUpdate:(id<UIDropSession>)session; // - (void)dropInteraction:(UIDropInteraction *)interaction sessionDidExit:(id<UIDropSession>)session; // - (void)dropInteraction:(UIDropInteraction *)interaction performDrop:(id<UIDropSession>)session; // - (void)dropInteraction:(UIDropInteraction *)interaction concludeDrop:(id<UIDropSession>)session; // - (void)dropInteraction:(UIDropInteraction *)interaction sessionDidEnd:(id<UIDropSession>)session; // - (nullable UITargetedDragPreview *)dropInteraction:(UIDropInteraction *)interaction previewForDroppingItem:(UIDragItem *)item withDefault:(UITargetedDragPreview *)defaultPreview; // - (void)dropInteraction:(UIDropInteraction *)interaction item:(UIDragItem *)item willAnimateDropWithAnimator:(id<UIDragAnimating>)animator; /* @end */ #pragma clang assume_nonnull end typedef NSInteger UIViewAnimatingState; enum { UIViewAnimatingStateInactive, UIViewAnimatingStateActive, UIViewAnimatingStateStopped, } __attribute__((availability(ios,introduced=10.0))) ; typedef NSInteger UIViewAnimatingPosition; enum { UIViewAnimatingPositionEnd, UIViewAnimatingPositionStart, UIViewAnimatingPositionCurrent, } __attribute__((availability(ios,introduced=10.0))); #pragma clang assume_nonnull begin // @protocol UIViewAnimating <NSObject> // @property(nonatomic, readonly) UIViewAnimatingState state; // @property(nonatomic, readonly, getter=isRunning) BOOL running; // @property(nonatomic, getter=isReversed) BOOL reversed; // @property(nonatomic) CGFloat fractionComplete; // - (void)startAnimation; // - (void)startAnimationAfterDelay:(NSTimeInterval)delay; // - (void)pauseAnimation; // - (void)stopAnimation:(BOOL) withoutFinishing; // - (void)finishAnimationAtPosition:(UIViewAnimatingPosition)finalPosition; /* @end */ // @protocol UITimingCurveProvider; // @protocol UIViewImplicitlyAnimating <UIViewAnimating> /* @optional */ // - (void)addAnimations:(void (^)(void))animation delayFactor:(CGFloat)delayFactor; // - (void)addAnimations:(void (^)(void))animation; // - (void)addCompletion:(void (^)(UIViewAnimatingPosition finalPosition))completion; // - (void)continueAnimationWithTimingParameters:(nullable id <UITimingCurveProvider>)parameters durationFactor:(CGFloat)durationFactor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIDragInteractionDelegate, UIDragSession; // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UITargetedDragPreview #define _REWRITER_typedef_UITargetedDragPreview typedef struct objc_object UITargetedDragPreview; typedef struct {} _objc_exc_UITargetedDragPreview; #endif __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDragAnimating <NSObject> // - (void)addAnimations:(void (^)(void))animations; // - (void)addCompletion:(void (^)(UIViewAnimatingPosition finalPosition))completion; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDragInteraction #define _REWRITER_typedef_UIDragInteraction typedef struct objc_object UIDragInteraction; typedef struct {} _objc_exc_UIDragInteraction; #endif struct UIDragInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithDelegate:(id<UIDragInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, nullable, readonly, weak) id<UIDragInteractionDelegate> delegate; // @property (nonatomic) BOOL allowsSimultaneousRecognitionDuringLift; // @property (nonatomic, getter=isEnabled) BOOL enabled; @property (class, nonatomic, readonly, getter=isEnabledByDefault) BOOL enabledByDefault; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDragInteractionDelegate <NSObject> /* @required */ // - (NSArray<UIDragItem *> *)dragInteraction:(UIDragInteraction *)interaction itemsForBeginningSession:(id<UIDragSession>)session; /* @optional */ // - (nullable UITargetedDragPreview *)dragInteraction:(UIDragInteraction *)interaction previewForLiftingItem:(UIDragItem *)item session:(id<UIDragSession>)session; // - (void)dragInteraction:(UIDragInteraction *)interaction willAnimateLiftWithAnimator:(id<UIDragAnimating>)animator session:(id<UIDragSession>)session; // - (void)dragInteraction:(UIDragInteraction *)interaction sessionWillBegin:(id<UIDragSession>)session; // - (BOOL)dragInteraction:(UIDragInteraction *)interaction sessionAllowsMoveOperation:(id<UIDragSession>)session; // - (BOOL)dragInteraction:(UIDragInteraction *)interaction sessionIsRestrictedToDraggingApplication:(id<UIDragSession>)session; // - (BOOL)dragInteraction:(UIDragInteraction *)interaction prefersFullSizePreviewsForSession:(id<UIDragSession>)session; // - (void)dragInteraction:(UIDragInteraction *)interaction sessionDidMove:(id<UIDragSession>)session; // - (void)dragInteraction:(UIDragInteraction *)interaction session:(id<UIDragSession>)session willEndWithOperation:(UIDropOperation)operation; // - (void)dragInteraction:(UIDragInteraction *)interaction session:(id<UIDragSession>)session didEndWithOperation:(UIDropOperation)operation; // - (void)dragInteraction:(UIDragInteraction *)interaction sessionDidTransferItems:(id<UIDragSession>)session; // - (NSArray<UIDragItem *> *)dragInteraction:(UIDragInteraction *)interaction itemsForAddingToSession:(id<UIDragSession>)session withTouchAtPoint:(CGPoint)point; // - (nullable id<UIDragSession>)dragInteraction:(UIDragInteraction *)interaction sessionForAddingItems:(NSArray<id<UIDragSession>> *)sessions withTouchAtPoint:(CGPoint)point; // - (void)dragInteraction:(UIDragInteraction *)interaction session:(id<UIDragSession>)session willAddItems:(NSArray<UIDragItem *> *)items forInteraction:(UIDragInteraction *)addingInteraction; // - (nullable UITargetedDragPreview *)dragInteraction:(UIDragInteraction *)interaction previewForCancellingItem:(UIDragItem *)item withDefault:(UITargetedDragPreview *)defaultPreview; // - (void)dragInteraction:(UIDragInteraction *)interaction item:(UIDragItem *)item willAnimateCancelWithAnimator:(id<UIDragAnimating>)animator; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UITextDragOptions; enum { UITextDragOptionsNone = 0, UITextDragOptionStripTextColorFromPreviews = (1 << 0) } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @protocol UITextDragDelegate; __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDraggable <UITextInput> // @property (nonatomic, weak, nullable) id<UITextDragDelegate> textDragDelegate; // @property (nonatomic, readonly, nullable) UIDragInteraction *textDragInteraction; // @property (nonatomic, readonly, getter=isTextDragActive) BOOL textDragActive; // @property (nonatomic) UITextDragOptions textDragOptions; /* @end */ // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UITargetedDragPreview #define _REWRITER_typedef_UITargetedDragPreview typedef struct objc_object UITargetedDragPreview; typedef struct {} _objc_exc_UITargetedDragPreview; #endif // @protocol UIDragSession, UITextDragRequest; __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDragDelegate <NSObject> /* @optional */ // - (NSArray<UIDragItem *> *)textDraggableView:(UIView<UITextDraggable> *)textDraggableView itemsForDrag:(id<UITextDragRequest>)dragRequest; // - (nullable UITargetedDragPreview *)textDraggableView:(UIView<UITextDraggable> *)textDraggableView dragPreviewForLiftingItem:(UIDragItem *)item session:(id<UIDragSession>)session; // - (void)textDraggableView:(UIView<UITextDraggable> *)textDraggableView willAnimateLiftWithAnimator:(id<UIDragAnimating>)animator session:(id<UIDragSession>)session; // - (void)textDraggableView:(UIView<UITextDraggable> *)textDraggableView dragSessionWillBegin:(id<UIDragSession>)session; // - (void)textDraggableView:(UIView<UITextDraggable> *)textDraggableView dragSessionDidEnd:(id<UIDragSession>)session withOperation:(UIDropOperation)operation; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDragRequest <NSObject> /* @required */ // @property (nonatomic, readonly) UITextRange *dragRange; // @property (nonatomic, readonly) NSArray<UIDragItem *> *suggestedItems; // @property (nonatomic, readonly) NSArray<UIDragItem *> *existingItems; // @property (nonatomic, readonly, getter=isSelected) BOOL selected; // @property (nonatomic, readonly) id<UIDragSession> dragSession; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UITextDropAction; enum { UITextDropActionInsert = 0, UITextDropActionReplaceSelection, UITextDropActionReplaceAll, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UITextDropProgressMode; enum { UITextDropProgressModeSystem = 0, UITextDropProgressModeCustom } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UITextDropPerformer; enum { UITextDropPerformerView = 0, UITextDropPerformerDelegate, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UITextDropProposal #define _REWRITER_typedef_UITextDropProposal typedef struct objc_object UITextDropProposal; typedef struct {} _objc_exc_UITextDropProposal; #endif struct UITextDropProposal_IMPL { struct UIDropProposal_IMPL UIDropProposal_IVARS; }; // @property (nonatomic) UITextDropAction dropAction; // @property (nonatomic) UITextDropProgressMode dropProgressMode; // @property (nonatomic) BOOL useFastSameViewOperations; // @property (nonatomic) UITextDropPerformer dropPerformer; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPasteConfiguration #define _REWRITER_typedef_UIPasteConfiguration typedef struct objc_object UIPasteConfiguration; typedef struct {} _objc_exc_UIPasteConfiguration; #endif struct UIPasteConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, copy) NSArray<NSString *> *acceptableTypeIdentifiers; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithAcceptableTypeIdentifiers:(NSArray<NSString *> *)acceptableTypeIdentifiers; // - (void)addAcceptableTypeIdentifiers:(NSArray<NSString *> *)acceptableTypeIdentifiers; // - (instancetype)initWithTypeIdentifiersForAcceptingClass:(Class<NSItemProviderReading>)aClass; // - (void)addTypeIdentifiersForAcceptingClass:(Class<NSItemProviderReading>)aClass; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UITextPasteConfigurationSupporting; // @protocol UITextPasteItem; // @class UITextRange; #ifndef _REWRITER_typedef_UITextRange #define _REWRITER_typedef_UITextRange typedef struct objc_object UITextRange; typedef struct {} _objc_exc_UITextRange; #endif // @class NSTextAttachment; #ifndef _REWRITER_typedef_NSTextAttachment #define _REWRITER_typedef_NSTextAttachment typedef struct objc_object NSTextAttachment; typedef struct {} _objc_exc_NSTextAttachment; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextPasteDelegate <NSObject> /* @optional */ // - (void)textPasteConfigurationSupporting:(id<UITextPasteConfigurationSupporting>)textPasteConfigurationSupporting transformPasteItem:(id<UITextPasteItem>)item; // - (NSAttributedString *)textPasteConfigurationSupporting:(id<UITextPasteConfigurationSupporting>)textPasteConfigurationSupporting combineItemAttributedStrings:(NSArray<NSAttributedString *> *)itemStrings forRange:(UITextRange*)textRange; // - (UITextRange*)textPasteConfigurationSupporting:(id<UITextPasteConfigurationSupporting>)textPasteConfigurationSupporting performPasteOfAttributedString:(NSAttributedString*)attributedString toRange:(UITextRange*)textRange; // - (BOOL)textPasteConfigurationSupporting:(id<UITextPasteConfigurationSupporting>)textPasteConfigurationSupporting shouldAnimatePasteOfAttributedString:(NSAttributedString*)attributedString toRange:(UITextRange*)textRange; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextPasteItem <NSObject> // @property (nonatomic, readonly) __kindof NSItemProvider *itemProvider; // @property (nonatomic, readonly, nullable) id localObject; // @property (nonatomic, readonly) NSDictionary<NSAttributedStringKey, id> *defaultAttributes; // - (void)setStringResult:(NSString*)string; // - (void)setAttributedStringResult:(NSAttributedString*)string; // - (void)setAttachmentResult:(NSTextAttachment*)textAttachment; // - (void)setNoResult; // - (void)setDefaultResult; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextPasteConfigurationSupporting <UIPasteConfigurationSupporting> // @property (nonatomic, weak, nullable) id<UITextPasteDelegate> pasteDelegate; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDropInteraction; #ifndef _REWRITER_typedef_UIDropInteraction #define _REWRITER_typedef_UIDropInteraction typedef struct objc_object UIDropInteraction; typedef struct {} _objc_exc_UIDropInteraction; #endif // @protocol UITextDropDelegate; __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDroppable <UITextInput, UITextPasteConfigurationSupporting> // @property (nonatomic, weak, nullable) id<UITextDropDelegate> textDropDelegate; // @property (nonatomic, readonly, nullable) UIDropInteraction *textDropInteraction; // @property (nonatomic, readonly, getter=isTextDropActive) BOOL textDropActive; /* @end */ typedef NSUInteger UITextDropEditability; enum { UITextDropEditabilityNo = 0, UITextDropEditabilityTemporary, UITextDropEditabilityYes, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @protocol UITextDropRequest; __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDropDelegate <NSObject> /* @optional */ // - (UITextDropEditability)textDroppableView:(UIView<UITextDroppable> *)textDroppableView willBecomeEditableForDrop:(id<UITextDropRequest>)drop; // - (UITextDropProposal*)textDroppableView:(UIView<UITextDroppable> *)textDroppableView proposalForDrop:(id<UITextDropRequest>)drop; // - (void)textDroppableView:(UIView<UITextDroppable> *)textDroppableView willPerformDrop:(id<UITextDropRequest>)drop; // - (nullable UITargetedDragPreview *)textDroppableView:(UIView<UITextDroppable> *)textDroppableView previewForDroppingAllItemsWithDefault:(UITargetedDragPreview *)defaultPreview; // - (void)textDroppableView:(UIView<UITextDroppable> *)textDroppableView dropSessionDidEnter:(id<UIDropSession>)session; // - (void)textDroppableView:(UIView<UITextDroppable> *)textDroppableView dropSessionDidUpdate:(id<UIDropSession>)session; // - (void)textDroppableView:(UIView<UITextDroppable> *)textDroppableView dropSessionDidExit:(id<UIDropSession>)session; // - (void)textDroppableView:(UIView<UITextDroppable> *)textDroppableView dropSessionDidEnd:(id<UIDropSession>)session; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UITextDropRequest <NSObject> // @property (nonatomic, readonly) UITextPosition *dropPosition; // @property (nonatomic, readonly) UITextDropProposal *suggestedProposal; // @property (nonatomic, readonly, getter=isSameView) BOOL sameView; // @property (nonatomic, readonly) id<UIDropSession> dropSession; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) // @protocol UIContentSizeCategoryAdjusting <NSObject> // @property (nonatomic) BOOL adjustsFontForContentSizeCategory; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif // @class UITextInputTraits; #ifndef _REWRITER_typedef_UITextInputTraits #define _REWRITER_typedef_UITextInputTraits typedef struct objc_object UITextInputTraits; typedef struct {} _objc_exc_UITextInputTraits; #endif // @class UITextSelectionView; #ifndef _REWRITER_typedef_UITextSelectionView #define _REWRITER_typedef_UITextSelectionView typedef struct objc_object UITextSelectionView; typedef struct {} _objc_exc_UITextSelectionView; #endif // @class UITextInteractionAssistant; #ifndef _REWRITER_typedef_UITextInteractionAssistant #define _REWRITER_typedef_UITextInteractionAssistant typedef struct objc_object UITextInteractionAssistant; typedef struct {} _objc_exc_UITextInteractionAssistant; #endif // @class UIPopoverController; #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif // @protocol UITextFieldDelegate; // @protocol UITextSelecting; typedef NSInteger UITextBorderStyle; enum { UITextBorderStyleNone, UITextBorderStyleLine, UITextBorderStyleBezel, UITextBorderStyleRoundedRect }; typedef NSInteger UITextFieldViewMode; enum { UITextFieldViewModeNever, UITextFieldViewModeWhileEditing, UITextFieldViewModeUnlessEditing, UITextFieldViewModeAlways }; typedef NSInteger UITextFieldDidEndEditingReason; enum { UITextFieldDidEndEditingReasonCommitted, UITextFieldDidEndEditingReasonCancelled __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=10_0))) } __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITextField #define _REWRITER_typedef_UITextField typedef struct objc_object UITextField; typedef struct {} _objc_exc_UITextField; #endif struct UITextField_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property(nullable, nonatomic,copy) NSString *text; // @property(nullable, nonatomic,copy) NSAttributedString *attributedText __attribute__((availability(ios,introduced=6.0))); // @property(nullable, nonatomic,strong) UIColor *textColor; // @property(nullable, nonatomic,strong) UIFont *font; // @property(nonatomic) NSTextAlignment textAlignment; // @property(nonatomic) UITextBorderStyle borderStyle; // @property(nonatomic,copy) NSDictionary<NSAttributedStringKey,id> *defaultTextAttributes __attribute__((availability(ios,introduced=7.0))); // @property(nullable, nonatomic,copy) NSString *placeholder; // @property(nullable, nonatomic,copy) NSAttributedString *attributedPlaceholder __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic) BOOL clearsOnBeginEditing; // @property(nonatomic) BOOL adjustsFontSizeToFitWidth; // @property(nonatomic) CGFloat minimumFontSize; // @property(nullable, nonatomic,weak) id<UITextFieldDelegate> delegate; // @property(nullable, nonatomic,strong) UIImage *background; // @property(nullable, nonatomic,strong) UIImage *disabledBackground; // @property(nonatomic,readonly,getter=isEditing) BOOL editing; // @property(nonatomic) BOOL allowsEditingTextAttributes __attribute__((availability(ios,introduced=6.0))); // @property(nullable, nonatomic,copy) NSDictionary<NSAttributedStringKey,id> *typingAttributes __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic) UITextFieldViewMode clearButtonMode; // @property(nullable, nonatomic,strong) UIView *leftView; // @property(nonatomic) UITextFieldViewMode leftViewMode; // @property(nullable, nonatomic,strong) UIView *rightView; // @property(nonatomic) UITextFieldViewMode rightViewMode; // - (CGRect)borderRectForBounds:(CGRect)bounds; // - (CGRect)textRectForBounds:(CGRect)bounds; // - (CGRect)placeholderRectForBounds:(CGRect)bounds; // - (CGRect)editingRectForBounds:(CGRect)bounds; // - (CGRect)clearButtonRectForBounds:(CGRect)bounds; // - (CGRect)leftViewRectForBounds:(CGRect)bounds; // - (CGRect)rightViewRectForBounds:(CGRect)bounds; // - (void)drawTextInRect:(CGRect)rect; // - (void)drawPlaceholderInRect:(CGRect)rect; // @property (nullable, readwrite, strong) UIView *inputView; // @property (nullable, readwrite, strong) UIView *inputAccessoryView; // @property(nonatomic) BOOL clearsOnInsertion __attribute__((availability(ios,introduced=6.0))); /* @end */ // @interface UITextField () <UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting> /* @end */ // @interface UIView (UITextField) // - (BOOL)endEditing:(BOOL)force; /* @end */ // @protocol UITextFieldDelegate <NSObject> /* @optional */ // - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField; // - (void)textFieldDidBeginEditing:(UITextField *)textField; // - (BOOL)textFieldShouldEndEditing:(UITextField *)textField; // - (void)textFieldDidEndEditing:(UITextField *)textField; // - (void)textFieldDidEndEditing:(UITextField *)textField reason:(UITextFieldDidEndEditingReason)reason __attribute__((availability(ios,introduced=10.0))); // - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string; // - (void)textFieldDidChangeSelection:(UITextField *)textField __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // - (BOOL)textFieldShouldClear:(UITextField *)textField; // - (BOOL)textFieldShouldReturn:(UITextField *)textField; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextFieldTextDidBeginEditingNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextFieldTextDidEndEditingNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextFieldTextDidChangeNotification; extern "C" __attribute__((visibility ("default"))) NSString *const UITextFieldDidEndEditingReasonKey __attribute__((availability(ios,introduced=10.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIActionSheetDelegate; // @class UILabel; #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIToolbar #define _REWRITER_typedef_UIToolbar typedef struct objc_object UIToolbar; typedef struct {} _objc_exc_UIToolbar; #endif #ifndef _REWRITER_typedef_UITabBar #define _REWRITER_typedef_UITabBar typedef struct objc_object UITabBar; typedef struct {} _objc_exc_UITabBar; #endif #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif typedef NSInteger UIActionSheetStyle; enum { UIActionSheetStyleAutomatic = -1, UIActionSheetStyleDefault = UIBarStyleDefault, UIActionSheetStyleBlackTranslucent = UIBarStyleBlackTranslucent, UIActionSheetStyleBlackOpaque = UIBarStyleBlackOpaque , } __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead."))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="UIActionSheet is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet instead"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIActionSheet #define _REWRITER_typedef_UIActionSheet typedef struct objc_object UIActionSheet; typedef struct {} _objc_exc_UIActionSheet; #endif struct UIActionSheet_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithTitle:(nullable NSString *)title delegate:(nullable id<UIActionSheetDelegate>)delegate cancelButtonTitle:(nullable NSString *)cancelButtonTitle destructiveButtonTitle:(nullable NSString *)destructiveButtonTitle otherButtonTitles:(nullable NSString *)otherButtonTitles, ... __attribute__((sentinel(0,1))) __attribute__((availability(ios_app_extension,unavailable,message="Use UIAlertController instead."))); // @property(nullable,nonatomic,weak) id<UIActionSheetDelegate> delegate; // @property(nonatomic,copy) NSString *title; // @property(nonatomic) UIActionSheetStyle actionSheetStyle; // - (NSInteger)addButtonWithTitle:(nullable NSString *)title; // - (nullable NSString *)buttonTitleAtIndex:(NSInteger)buttonIndex; // @property(nonatomic,readonly) NSInteger numberOfButtons; // @property(nonatomic) NSInteger cancelButtonIndex; // @property(nonatomic) NSInteger destructiveButtonIndex; // @property(nonatomic,readonly) NSInteger firstOtherButtonIndex; // @property(nonatomic,readonly,getter=isVisible) BOOL visible; // - (void)showFromToolbar:(UIToolbar *)view; // - (void)showFromTabBar:(UITabBar *)view; // - (void)showFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated __attribute__((availability(ios,introduced=3.2))); // - (void)showFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated __attribute__((availability(ios,introduced=3.2))); // - (void)showInView:(UIView *)view; // - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated; /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIActionSheetDelegate <NSObject> /* @optional */ // - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); // - (void)actionSheetCancel:(UIActionSheet *)actionSheet __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); // - (void)willPresentActionSheet:(UIActionSheet *)actionSheet __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); // - (void)didPresentActionSheet:(UIActionSheet *)actionSheet __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); // - (void)actionSheet:(UIActionSheet *)actionSheet willDismissWithButtonIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); // - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=8.3,message="Use UIAlertController instead."))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIAlertViewStyle; enum { UIAlertViewStyleDefault = 0, UIAlertViewStyleSecureTextInput, UIAlertViewStylePlainTextInput, UIAlertViewStyleLoginAndPasswordInput } __attribute__((availability(tvos,unavailable))); // @protocol UIAlertViewDelegate; // @class UILabel; #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIToolbar #define _REWRITER_typedef_UIToolbar typedef struct objc_object UIToolbar; typedef struct {} _objc_exc_UIToolbar; #endif #ifndef _REWRITER_typedef_UITabBar #define _REWRITER_typedef_UITabBar typedef struct objc_object UITabBar; typedef struct {} _objc_exc_UITabBar; #endif #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIAlertView #define _REWRITER_typedef_UIAlertView typedef struct objc_object UIAlertView; typedef struct {} _objc_exc_UIAlertView; #endif struct UIAlertView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithTitle:(nullable NSString *)title message:(nullable NSString *)message delegate:(nullable id )delegate cancelButtonTitle:(nullable NSString *)cancelButtonTitle otherButtonTitles:(nullable NSString *)otherButtonTitles, ... __attribute__((sentinel(0,1))) __attribute__((availability(ios_app_extension,unavailable,message="Use UIAlertController instead."))); // - (id)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype) initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nullable,nonatomic,weak) id delegate; // @property(nonatomic,copy) NSString *title; // @property(nullable,nonatomic,copy) NSString *message; // - (NSInteger)addButtonWithTitle:(nullable NSString *)title; // - (nullable NSString *)buttonTitleAtIndex:(NSInteger)buttonIndex; // @property(nonatomic,readonly) NSInteger numberOfButtons; // @property(nonatomic) NSInteger cancelButtonIndex; // @property(nonatomic,readonly) NSInteger firstOtherButtonIndex; // @property(nonatomic,readonly,getter=isVisible) BOOL visible; // - (void)show; // - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated; // @property(nonatomic,assign) UIAlertViewStyle alertViewStyle __attribute__((availability(ios,introduced=5.0))); // - (nullable UITextField *)textFieldAtIndex:(NSInteger)textFieldIndex __attribute__((availability(ios,introduced=5.0))); /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIAlertViewDelegate <NSObject> /* @optional */ // - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (void)alertViewCancel:(UIAlertView *)alertView __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (void)willPresentAlertView:(UIAlertView *)alertView __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (void)didPresentAlertView:(UIAlertView *)alertView __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); // - (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use UIAlertController instead."))); /* @end */ #pragma clang assume_nonnull end typedef NSInteger UISceneActivationState; enum { UISceneActivationStateUnattached = -1, UISceneActivationStateForegroundActive, UISceneActivationStateForegroundInactive, UISceneActivationStateBackground } __attribute__((availability(ios,introduced=13.0))); typedef NSString * UISceneSessionRole __attribute__((swift_wrapper(enum))) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSErrorDomain const UISceneErrorDomain __attribute__((availability(ios,introduced=13.0))); typedef NSInteger UISceneErrorCode; enum { UISceneErrorCodeMultipleScenesNotSupported, UISceneErrorCodeRequestDenied } __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull begin typedef NSInteger UIStatusBarStyle; enum { UIStatusBarStyleDefault = 0, UIStatusBarStyleLightContent __attribute__((availability(ios,introduced=7.0))) = 1, UIStatusBarStyleDarkContent __attribute__((availability(ios,introduced=13.0))) = 3, UIStatusBarStyleBlackTranslucent __attribute__((availability(ios,introduced=2_0,deprecated=7_0,message="" "Use UIStatusBarStyleLightContent"))) = 1, UIStatusBarStyleBlackOpaque __attribute__((availability(ios,introduced=2_0,deprecated=7_0,message="" "Use UIStatusBarStyleLightContent"))) = 2, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIStatusBarAnimation; enum { UIStatusBarAnimationNone, UIStatusBarAnimationFade __attribute__((availability(ios,introduced=3.2))), UIStatusBarAnimationSlide __attribute__((availability(ios,introduced=3.2))), } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIInterfaceOrientation; enum { UIInterfaceOrientationUnknown = UIDeviceOrientationUnknown, UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait, UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown, UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight, UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft } __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSExceptionName const UIApplicationInvalidInterfaceOrientationException __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIInterfaceOrientationMask; enum { UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait), UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft), UIInterfaceOrientationMaskLandscapeRight = (1 << UIInterfaceOrientationLandscapeRight), UIInterfaceOrientationMaskPortraitUpsideDown = (1 << UIInterfaceOrientationPortraitUpsideDown), UIInterfaceOrientationMaskLandscape = (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown), UIInterfaceOrientationMaskAllButUpsideDown = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), } __attribute__((availability(tvos,unavailable))); static inline BOOL UIInterfaceOrientationIsPortrait(UIInterfaceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIInterfaceOrientationPortrait || (orientation) == UIInterfaceOrientationPortraitUpsideDown); } static inline BOOL UIInterfaceOrientationIsLandscape(UIInterfaceOrientation orientation) __attribute__((availability(tvos,unavailable))) { return ((orientation) == UIInterfaceOrientationLandscapeLeft || (orientation) == UIInterfaceOrientationLandscapeRight); } typedef NSUInteger UIRemoteNotificationType; enum { UIRemoteNotificationTypeNone = 0, UIRemoteNotificationTypeBadge = 1 << 0, UIRemoteNotificationTypeSound = 1 << 1, UIRemoteNotificationTypeAlert = 1 << 2, UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3, } __attribute__((availability(ios,introduced=3_0,deprecated=8_0,message="" "Use UserNotifications Framework's UNAuthorizationOptions for user notifications and registerForRemoteNotifications for receiving remote notifications instead."))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIBackgroundFetchResult; enum { UIBackgroundFetchResultNewData, UIBackgroundFetchResultNoData, UIBackgroundFetchResultFailed } __attribute__((availability(ios,introduced=7.0))); typedef NSInteger UIBackgroundRefreshStatus; enum { UIBackgroundRefreshStatusRestricted, UIBackgroundRefreshStatusDenied, UIBackgroundRefreshStatusAvailable } __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=11.0))); typedef NSInteger UIApplicationState; enum { UIApplicationStateActive, UIApplicationStateInactive, UIApplicationStateBackground } __attribute__((availability(ios,introduced=4.0))); typedef NSUInteger UIBackgroundTaskIdentifier __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) const UIBackgroundTaskIdentifier UIBackgroundTaskInvalid __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) const NSTimeInterval UIMinimumKeepAliveTimeout __attribute__((availability(ios,introduced=4.0,deprecated=13.0,message="Please use PushKit for VoIP applications."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use PushKit for VoIP applications."))); extern "C" __attribute__((visibility ("default"))) const NSTimeInterval UIApplicationBackgroundFetchIntervalMinimum __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) const NSTimeInterval UIApplicationBackgroundFetchIntervalNever __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=11.0))); typedef NSString * UIApplicationOpenExternalURLOptionsKey __attribute__((swift_wrapper(enum))); // @class CKShareMetadata; #ifndef _REWRITER_typedef_CKShareMetadata #define _REWRITER_typedef_CKShareMetadata typedef struct objc_object CKShareMetadata; typedef struct {} _objc_exc_CKShareMetadata; #endif // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif // @class UILocalNotification; #ifndef _REWRITER_typedef_UILocalNotification #define _REWRITER_typedef_UILocalNotification typedef struct objc_object UILocalNotification; typedef struct {} _objc_exc_UILocalNotification; #endif // @protocol UIApplicationDelegate; // @class INIntent; #ifndef _REWRITER_typedef_INIntent #define _REWRITER_typedef_INIntent typedef struct objc_object INIntent; typedef struct {} _objc_exc_INIntent; #endif // @class INIntentResponse; #ifndef _REWRITER_typedef_INIntentResponse #define _REWRITER_typedef_INIntentResponse typedef struct objc_object INIntentResponse; typedef struct {} _objc_exc_INIntentResponse; #endif // @class UIScene; #ifndef _REWRITER_typedef_UIScene #define _REWRITER_typedef_UIScene typedef struct objc_object UIScene; typedef struct {} _objc_exc_UIScene; #endif #ifndef _REWRITER_typedef_UIWindowScene #define _REWRITER_typedef_UIWindowScene typedef struct objc_object UIWindowScene; typedef struct {} _objc_exc_UIWindowScene; #endif #ifndef _REWRITER_typedef_UISceneSession #define _REWRITER_typedef_UISceneSession typedef struct objc_object UISceneSession; typedef struct {} _objc_exc_UISceneSession; #endif #ifndef _REWRITER_typedef_UISceneConfiguration #define _REWRITER_typedef_UISceneConfiguration typedef struct objc_object UISceneConfiguration; typedef struct {} _objc_exc_UISceneConfiguration; #endif #ifndef _REWRITER_typedef_UISceneConnectionOptions #define _REWRITER_typedef_UISceneConnectionOptions typedef struct objc_object UISceneConnectionOptions; typedef struct {} _objc_exc_UISceneConnectionOptions; #endif #ifndef _REWRITER_typedef_UISceneActivationRequestOptions #define _REWRITER_typedef_UISceneActivationRequestOptions typedef struct objc_object UISceneActivationRequestOptions; typedef struct {} _objc_exc_UISceneActivationRequestOptions; #endif #ifndef _REWRITER_typedef_UISceneDestructionRequestOptions #define _REWRITER_typedef_UISceneDestructionRequestOptions typedef struct objc_object UISceneDestructionRequestOptions; typedef struct {} _objc_exc_UISceneDestructionRequestOptions; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIApplication #define _REWRITER_typedef_UIApplication typedef struct objc_object UIApplication; typedef struct {} _objc_exc_UIApplication; #endif struct UIApplication_IMPL { struct UIResponder_IMPL UIResponder_IVARS; }; @property(class, nonatomic, readonly) UIApplication *sharedApplication __attribute__((availability(ios_app_extension,unavailable,message="Use view controller based solutions where appropriate instead."))); // @property(nullable, nonatomic, assign) id<UIApplicationDelegate> delegate; // - (void)beginIgnoringInteractionEvents __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIView's userInteractionEnabled property instead"))) __attribute__((availability(ios_app_extension,unavailable,message=""))); // - (void)endIgnoringInteractionEvents __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIView's userInteractionEnabled property instead"))) __attribute__((availability(ios_app_extension,unavailable,message=""))); // @property(nonatomic, readonly, getter=isIgnoringInteractionEvents) BOOL ignoringInteractionEvents __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIView's userInteractionEnabled property instead"))); // @property(nonatomic,getter=isIdleTimerDisabled) BOOL idleTimerDisabled; // - (BOOL)openURL:(NSURL*)url __attribute__((availability(ios,introduced=2.0,deprecated=10.0,replacement="openURL:options:completionHandler:"))) __attribute__((availability(ios_app_extension,unavailable,message=""))); // - (BOOL)canOpenURL:(NSURL *)url __attribute__((availability(ios,introduced=3.0))); // - (void)openURL:(NSURL*)url options:(NSDictionary<UIApplicationOpenExternalURLOptionsKey, id> *)options completionHandler:(void (^ _Nullable)(BOOL success))completion __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(ios_app_extension,unavailable,message=""))); // - (void)sendEvent:(UIEvent *)event; // @property(nullable, nonatomic,readonly) UIWindow *keyWindow __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes"))); // @property(nonatomic,readonly) NSArray<__kindof UIWindow *> *windows; // - (BOOL)sendAction:(SEL)action to:(nullable id)target from:(nullable id)sender forEvent:(nullable UIEvent *)event; // @property(nonatomic,getter=isNetworkActivityIndicatorVisible) BOOL networkActivityIndicatorVisible __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Provide a custom network activity UI in your app if desired."))); // @property(readonly, nonatomic) UIStatusBarStyle statusBarStyle __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the statusBarManager property of the window scene instead."))); // @property(readonly, nonatomic,getter=isStatusBarHidden) BOOL statusBarHidden __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the statusBarManager property of the window scene instead."))); // @property(readonly, nonatomic) UIInterfaceOrientation statusBarOrientation __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the interfaceOrientation property of the window scene instead."))); // - (UIInterfaceOrientationMask)supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) NSTimeInterval statusBarOrientationAnimationDuration __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); // @property(nonatomic,readonly) CGRect statusBarFrame __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use the statusBarManager property of the window scene instead."))); // @property(nonatomic) NSInteger applicationIconBadgeNumber; // @property(nonatomic) BOOL applicationSupportsShakeToEdit __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) UIApplicationState applicationState __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly) NSTimeInterval backgroundTimeRemaining __attribute__((availability(ios,introduced=4.0))); // - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^ _Nullable)(void))handler __attribute__((availability(ios,introduced=4.0))) __attribute__((objc_requires_super)); // - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithName:(nullable NSString *)taskName expirationHandler:(void(^ _Nullable)(void))handler __attribute__((availability(ios,introduced=7.0))) __attribute__((objc_requires_super)); // - (void)endBackgroundTask:(UIBackgroundTaskIdentifier)identifier __attribute__((availability(ios,introduced=4.0))) __attribute__((objc_requires_super)); // - (void)setMinimumBackgroundFetchInterval:(NSTimeInterval)minimumBackgroundFetchInterval __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Use a BGAppRefreshTask in the BackgroundTasks framework instead"))) __attribute__((availability(tvos,introduced=11.0,deprecated=13.0,message="Use a BGAppRefreshTask in the BackgroundTasks framework instead"))); ; // @property (nonatomic, readonly) UIBackgroundRefreshStatus backgroundRefreshStatus __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic,readonly,getter=isProtectedDataAvailable) BOOL protectedDataAvailable __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly) UIUserInterfaceLayoutDirection userInterfaceLayoutDirection __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) UIContentSizeCategory preferredContentSizeCategory __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly) NSSet<UIScene *> *connectedScenes __attribute__((availability(ios,introduced=13.0))); // @property(nonatomic, readonly) NSSet<UISceneSession *> *openSessions __attribute__((availability(ios,introduced=13.0))); // @property(nonatomic, readonly) BOOL supportsMultipleScenes __attribute__((availability(ios,introduced=13.0))); // - (void)requestSceneSessionActivation:(nullable UISceneSession *)sceneSession userActivity:(nullable NSUserActivity *)userActivity options:(nullable UISceneActivationRequestOptions *)options errorHandler:(nullable void (^)(NSError * error))errorHandler __attribute__((availability(ios,introduced=13.0))); // - (void)requestSceneSessionDestruction:(UISceneSession *)sceneSession options:(nullable UISceneDestructionRequestOptions *)options errorHandler:(nullable void (^)(NSError * error))errorHandler __attribute__((availability(ios,introduced=13.0))); // - (void)requestSceneSessionRefresh:(UISceneSession *)sceneSession __attribute__((availability(ios,introduced=13.0))); /* @end */ // @interface UIApplication (UIRemoteNotifications) // - (void)registerForRemoteNotifications __attribute__((availability(ios,introduced=8.0))); // - (void)unregisterForRemoteNotifications __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic, readonly, getter=isRegisteredForRemoteNotifications) BOOL registeredForRemoteNotifications __attribute__((availability(ios,introduced=8.0))); // - (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="Use -[UIApplication registerForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (UIRemoteNotificationType)enabledRemoteNotificationTypes __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="Use -[UIApplication isRegisteredForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote notification and user notification settings"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIApplication (UILocalNotifications) // - (void)presentLocalNotificationNow:(UILocalNotification *)notification __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)scheduleLocalNotification:(UILocalNotification *)notification __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)cancelLocalNotification:(UILocalNotification *)notification __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:]"))) __attribute__((availability(tvos,unavailable))); // - (void)cancelAllLocalNotifications __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests]"))) __attribute__((availability(tvos,unavailable))); // @property(nullable,nonatomic,copy) NSArray<UILocalNotification *> *scheduledLocalNotifications __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @class UIUserNotificationSettings; #ifndef _REWRITER_typedef_UIUserNotificationSettings #define _REWRITER_typedef_UIUserNotificationSettings typedef struct objc_object UIUserNotificationSettings; typedef struct {} _objc_exc_UIUserNotificationSettings; #endif // @interface UIApplication (UIUserNotificationSettings) // - (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly, nullable) UIUserNotificationSettings *currentUserNotificationSettings __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIApplication (UIRemoteControlEvents) // - (void)beginReceivingRemoteControlEvents __attribute__((availability(ios,introduced=4.0))); // - (void)endReceivingRemoteControlEvents __attribute__((availability(ios,introduced=4.0))); /* @end */ // @interface UIApplication (UINewsstand) // - (void)setNewsstandIconImage:(nullable UIImage *)image __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="Newsstand apps now behave like normal apps on SpringBoard"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @class UIApplicationShortcutItem; #ifndef _REWRITER_typedef_UIApplicationShortcutItem #define _REWRITER_typedef_UIApplicationShortcutItem typedef struct objc_object UIApplicationShortcutItem; typedef struct {} _objc_exc_UIApplicationShortcutItem; #endif // @interface UIApplication (UIShortcutItems) // @property (nullable, nonatomic, copy) NSArray<UIApplicationShortcutItem *> *shortcutItems __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIApplication (UIAlternateApplicationIcons) // @property (readonly, nonatomic) BOOL supportsAlternateIcons __attribute__((availability(macosx_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios,introduced=10.3))) __attribute__((availability(tvos,introduced=10.2))); // - (void)setAlternateIconName:(nullable NSString *)alternateIconName completionHandler:(nullable void (^)(NSError *_Nullable error))completionHandler __attribute__((availability(macosx_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios,introduced=10.3))) __attribute__((availability(tvos,introduced=10.2))); // @property (nullable, readonly, nonatomic) NSString *alternateIconName __attribute__((availability(macosx_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios_app_extension,unavailable,message="Extensions may not have alternate icons"))) __attribute__((availability(ios,introduced=10.3))) __attribute__((availability(tvos,introduced=10.2))); /* @end */ // @protocol UIStateRestoring; // @interface UIApplication (UIStateRestoration) // - (void)extendStateRestoration __attribute__((availability(ios,introduced=6.0))); // - (void)completeStateRestoration __attribute__((availability(ios,introduced=6.0))); // - (void)ignoreSnapshotOnNextApplicationLaunch __attribute__((availability(ios,introduced=7.0))); // + (void)registerObjectForStateRestoration:(id<UIStateRestoring>)object restorationIdentifier:(NSString *)restorationIdentifier __attribute__((availability(ios,introduced=7.0))); /* @end */ typedef NSString * UIApplicationLaunchOptionsKey __attribute__((swift_wrapper(enum))); // @protocol UIApplicationDelegate<NSObject> /* @optional */ // - (void)applicationDidFinishLaunching:(UIApplication *)application; // - (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(nullable NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions __attribute__((availability(ios,introduced=6.0))); // - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions __attribute__((availability(ios,introduced=3.0))); // - (void)applicationDidBecomeActive:(UIApplication *)application; // - (void)applicationWillResignActive:(UIApplication *)application; // - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url __attribute__((availability(ios,introduced=2.0,deprecated=9.0,replacement="application:openURL:options:"))) __attribute__((availability(tvos,unavailable))); // - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(id)annotation __attribute__((availability(ios,introduced=4.2,deprecated=9.0,replacement="application:openURL:options:"))) __attribute__((availability(tvos,unavailable))); typedef NSString * UIApplicationOpenURLOptionsKey __attribute__((swift_wrapper(enum))); // - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options __attribute__((availability(ios,introduced=9.0))); // - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application; // - (void)applicationWillTerminate:(UIApplication *)application; // - (void)applicationSignificantTimeChange:(UIApplication *)application; // - (void)application:(UIApplication *)application willChangeStatusBarOrientation:(UIInterfaceOrientation)newStatusBarOrientation duration:(NSTimeInterval)duration __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); // - (void)application:(UIApplication *)application didChangeStatusBarOrientation:(UIInterfaceOrientation)oldStatusBarOrientation __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); // - (void)application:(UIApplication *)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); // - (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); // - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken __attribute__((availability(ios,introduced=3.0))); // - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error __attribute__((availability(ios,introduced=3.0))); // - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo __attribute__((availability(ios,introduced=3.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:] for user visible notifications and -[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] for silent remote notifications"))); // - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate willPresentNotification:withCompletionHandler:] or -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application handleActionWithIdentifier:(nullable NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void (^)(void))completionHandler __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application handleActionWithIdentifier:(nullable NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)(void))completionHandler __attribute__((availability(ios,introduced=9.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application handleActionWithIdentifier:(nullable NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void (^)(void))completionHandler __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application handleActionWithIdentifier:(nullable NSString *)identifier forLocalNotification:(UILocalNotification *)notification withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)(void))completionHandler __attribute__((availability(ios,introduced=9.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler __attribute__((availability(ios,introduced=7.0))); // - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Use a BGAppRefreshTask in the BackgroundTasks framework instead"))) __attribute__((availability(tvos,introduced=11.0,deprecated=13.0,message="Use a BGAppRefreshTask in the BackgroundTasks framework instead"))); // - (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void(^)(BOOL succeeded))completionHandler __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); // - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler __attribute__((availability(ios,introduced=7.0))); // - (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(nullable NSDictionary *)userInfo reply:(void(^)(NSDictionary * _Nullable replyInfo))reply __attribute__((availability(ios,introduced=8.2))); // - (void)applicationShouldRequestHealthAuthorization:(UIApplication *)application __attribute__((availability(ios,introduced=9.0))); // - (nullable id)application:(UIApplication *)application handlerForIntent:(INIntent *)intent __attribute__((availability(ios,introduced=14.0))); // - (void)application:(UIApplication *)application handleIntent:(INIntent *)intent completionHandler:(void(^)(INIntentResponse *intentResponse))completionHandler __attribute__((availability(ios,introduced=11.0,deprecated=14.0,message="Use application:handlerForIntent: instead"))); // - (void)applicationDidEnterBackground:(UIApplication *)application __attribute__((availability(ios,introduced=4.0))); // - (void)applicationWillEnterForeground:(UIApplication *)application __attribute__((availability(ios,introduced=4.0))); // - (void)applicationProtectedDataWillBecomeUnavailable:(UIApplication *)application __attribute__((availability(ios,introduced=4.0))); // - (void)applicationProtectedDataDidBecomeAvailable:(UIApplication *)application __attribute__((availability(ios,introduced=4.0))); // @property (nullable, nonatomic, strong) UIWindow *window __attribute__((availability(ios,introduced=5.0))); // - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); typedef NSString * UIApplicationExtensionPointIdentifier __attribute__((swift_wrapper(enum))); // - (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(UIApplicationExtensionPointIdentifier)extensionPointIdentifier __attribute__((availability(ios,introduced=8.0))); // - (nullable UIViewController *) application:(UIApplication *)application viewControllerWithRestorationIdentifierPath:(NSArray<NSString *> *)identifierComponents coder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder __attribute__((availability(ios,introduced=13.2))); // - (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder __attribute__((availability(ios,introduced=13.2))); // - (void)application:(UIApplication *)application willEncodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (void)application:(UIApplication *)application didDecodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (BOOL)application:(UIApplication *)application shouldSaveApplicationState:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0,deprecated=13.2,message="Use application:shouldSaveSecureApplicationState: instead"))); // - (BOOL)application:(UIApplication *)application shouldRestoreApplicationState:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0,deprecated=13.2,message="Use application:shouldRestoreSecureApplicationState: instead"))); // - (BOOL)application:(UIApplication *)application willContinueUserActivityWithType:(NSString *)userActivityType __attribute__((availability(ios,introduced=8.0))); // - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * _Nullable restorableObjects))restorationHandler __attribute__((availability(ios,introduced=8.0))); // - (void)application:(UIApplication *)application didFailToContinueUserActivityWithType:(NSString *)userActivityType error:(NSError *)error __attribute__((availability(ios,introduced=8.0))); // - (void)application:(UIApplication *)application didUpdateUserActivity:(NSUserActivity *)userActivity __attribute__((availability(ios,introduced=8.0))); // - (void)application:(UIApplication *)application userDidAcceptCloudKitShareWithMetadata:(CKShareMetadata *)cloudKitShareMetadata __attribute__((availability(ios,introduced=10.0))); // - (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options __attribute__((availability(ios,introduced=13.0))); // - (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions __attribute__((availability(ios,introduced=13.0))); /* @end */ // @interface UIApplication(UIApplicationDeprecated) // @property(nonatomic,getter=isProximitySensingEnabled) BOOL proximitySensingEnabled __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)setStatusBarHidden:(BOOL)hidden animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=3.2,message="Use -[UIViewController prefersStatusBarHidden]"))) __attribute__((availability(tvos,unavailable))); // @property(readwrite, nonatomic) UIInterfaceOrientation statusBarOrientation __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Explicit setting of the status bar orientation is more limited in iOS 6.0 and later"))) __attribute__((availability(tvos,unavailable))); // - (void)setStatusBarOrientation:(UIInterfaceOrientation)interfaceOrientation animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Explicit setting of the status bar orientation is more limited in iOS 6.0 and later"))) __attribute__((availability(tvos,unavailable))); // @property(readwrite, nonatomic) UIStatusBarStyle statusBarStyle __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -[UIViewController preferredStatusBarStyle]"))) __attribute__((availability(tvos,unavailable))); // - (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -[UIViewController preferredStatusBarStyle]"))) __attribute__((availability(tvos,unavailable))); // @property(readwrite, nonatomic,getter=isStatusBarHidden) BOOL statusBarHidden __attribute__((availability(ios,introduced=2.0,deprecated=9.0,message="Use -[UIViewController prefersStatusBarHidden]"))) __attribute__((availability(tvos,unavailable))); // - (void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="Use -[UIViewController prefersStatusBarHidden]"))) __attribute__((availability(tvos,unavailable))); // - (BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout handler:(void(^ _Nullable)(void))keepAliveHandler __attribute__((availability(ios,introduced=4.0,deprecated=9.0,message="Please use PushKit for VoIP applications instead of calling this method"))) __attribute__((availability(tvos,unavailable))); // - (void)clearKeepAliveTimeout __attribute__((availability(ios,introduced=4.0,deprecated=9.0,message="Please use PushKit for VoIP applications instead of calling this method"))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) int UIApplicationMain(int argc, char * _Nullable argv[_Nonnull], NSString * _Nullable principalClassName, NSString * _Nullable delegateClassName); extern "C" __attribute__((visibility ("default"))) NSRunLoopMode const UITrackingRunLoopMode; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidEnterBackgroundNotification __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationWillEnterForegroundNotification __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidFinishLaunchingNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidBecomeActiveNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationWillResignActiveNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidReceiveMemoryWarningNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationWillTerminateNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationSignificantTimeChangeNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationWillChangeStatusBarOrientationNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidChangeStatusBarOrientationNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStatusBarOrientationUserInfoKey __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationWillChangeStatusBarFrameNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationDidChangeStatusBarFrameNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStatusBarFrameUserInfoKey __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use viewWillTransitionToSize:withTransitionCoordinator: instead."))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationBackgroundRefreshStatusDidChangeNotification __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationProtectedDataWillBecomeUnavailable __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationProtectedDataDidBecomeAvailable __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsURLKey __attribute__((swift_name("url"))) __attribute__((availability(ios,introduced=3.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsSourceApplicationKey __attribute__((swift_name("sourceApplication"))) __attribute__((availability(ios,introduced=3.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsRemoteNotificationKey __attribute__((swift_name("remoteNotification"))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsLocalNotificationKey __attribute__((swift_name("localNotification"))) __attribute__((availability(ios,introduced=4.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNUserNotificationCenterDelegate didReceiveNotificationResponse:withCompletionHandler:]"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsAnnotationKey __attribute__((swift_name("annotation"))) __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsLocationKey __attribute__((swift_name("location"))) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsNewsstandDownloadsKey __attribute__((swift_name("newsstandDownloads"))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsBluetoothCentralsKey __attribute__((swift_name("bluetoothCentrals"))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsBluetoothPeripheralsKey __attribute__((swift_name("bluetoothPeripherals"))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsShortcutItemKey __attribute__((swift_name("shortcutItem"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsUserActivityDictionaryKey __attribute__((swift_name("userActivityDictionary"))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsUserActivityTypeKey __attribute__((swift_name("userActivityType"))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationLaunchOptionsKey const UIApplicationLaunchOptionsCloudKitShareMetadataKey __attribute__((swift_name("cloudKitShareMetadata"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationOpenSettingsURLString __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey __attribute__((swift_name("sourceApplication"))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey __attribute__((swift_name("annotation"))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsOpenInPlaceKey __attribute__((swift_name("openInPlace"))) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIApplicationUserDidTakeScreenshotNotification __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationExtensionPointIdentifier const UIApplicationKeyboardExtensionPointIdentifier __attribute__((swift_name("keyboard"))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UIApplicationOpenExternalURLOptionsKey const UIApplicationOpenURLOptionUniversalLinksOnly __attribute__((availability(ios,introduced=10.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSString *const UIStateRestorationViewControllerStoryboardKey __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStateRestorationBundleVersionKey __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStateRestorationUserInterfaceIdiomKey __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStateRestorationTimestampKey __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIApplicationStateRestorationSystemVersionKey __attribute__((availability(ios,introduced=7.0))); // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif // @class UIViewController; #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif // @protocol UIViewControllerRestoration // + (nullable UIViewController *) viewControllerWithRestorationIdentifierPath:(NSArray<NSString *> *)identifierComponents coder:(NSCoder *)coder; /* @end */ // @protocol UIDataSourceModelAssociation // - (nullable NSString *) modelIdentifierForElementAtIndexPath:(NSIndexPath *)idx inView:(UIView *)view; // - (nullable NSIndexPath *) indexPathForElementWithModelIdentifier:(NSString *)identifier inView:(UIView *)view; /* @end */ // @protocol UIObjectRestoration; // @protocol UIStateRestoring <NSObject> /* @optional */ // @property (nonatomic, readonly, nullable) id<UIStateRestoring> restorationParent; // @property (nonatomic, readonly, nullable) Class<UIObjectRestoration> objectRestorationClass; // - (void) encodeRestorableStateWithCoder:(NSCoder *)coder; // - (void) decodeRestorableStateWithCoder:(NSCoder *)coder; // - (void) applicationFinishedRestoringState; /* @end */ // @protocol UIObjectRestoration // + (nullable id<UIStateRestoring>) objectWithRestorationIdentifierPath:(NSArray<NSString *> *)identifierComponents coder:(NSCoder *)coder; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UISceneSession; #ifndef _REWRITER_typedef_UISceneSession #define _REWRITER_typedef_UISceneSession typedef struct objc_object UISceneSession; typedef struct {} _objc_exc_UISceneSession; #endif #ifndef _REWRITER_typedef_UISceneConnectionOptions #define _REWRITER_typedef_UISceneConnectionOptions typedef struct objc_object UISceneConnectionOptions; typedef struct {} _objc_exc_UISceneConnectionOptions; #endif #ifndef _REWRITER_typedef_UIOpenURLContext #define _REWRITER_typedef_UIOpenURLContext typedef struct objc_object UIOpenURLContext; typedef struct {} _objc_exc_UIOpenURLContext; #endif #ifndef _REWRITER_typedef_UISceneOpenExternalURLOptions #define _REWRITER_typedef_UISceneOpenExternalURLOptions typedef struct objc_object UISceneOpenExternalURLOptions; typedef struct {} _objc_exc_UISceneOpenExternalURLOptions; #endif #ifndef _REWRITER_typedef_UISceneActivationConditions #define _REWRITER_typedef_UISceneActivationConditions typedef struct objc_object UISceneActivationConditions; typedef struct {} _objc_exc_UISceneActivationConditions; #endif // @protocol UISceneDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIScene #define _REWRITER_typedef_UIScene typedef struct objc_object UIScene; typedef struct {} _objc_exc_UIScene; #endif struct UIScene_IMPL { struct UIResponder_IMPL UIResponder_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithSession:(UISceneSession *)session connectionOptions:(UISceneConnectionOptions *)connectionOptions __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) UISceneSession *session; // @property (nullable, nonatomic, strong) id<UISceneDelegate> delegate; // @property (nonatomic, readonly) UISceneActivationState activationState; // - (void)openURL:(NSURL*)url options:(nullable UISceneOpenExternalURLOptions *)options completionHandler:(void (^ _Nullable)(BOOL success))completion; // @property (null_resettable, nonatomic, copy) NSString *title; // @property (nonatomic, strong) UISceneActivationConditions *activationConditions; /* @end */ __attribute__((availability(ios,introduced=13.0))) // @protocol UISceneDelegate <NSObject> /* @optional */ // - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions; // - (void)sceneDidDisconnect:(UIScene *)scene; // - (void)sceneDidBecomeActive:(UIScene *)scene; // - (void)sceneWillResignActive:(UIScene *)scene; // - (void)sceneWillEnterForeground:(UIScene *)scene; // - (void)sceneDidEnterBackground:(UIScene *)scene; // - (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts; // - (nullable NSUserActivity *)stateRestorationActivityForScene:(UIScene *)scene; // - (void)scene:(UIScene *)scene willContinueUserActivityWithType:(NSString *)userActivityType; // - (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity; // - (void)scene:(UIScene *)scene didFailToContinueUserActivityWithType:(NSString *)userActivityType error:(NSError *)error; // - (void)scene:(UIScene *)scene didUpdateUserActivity:(NSUserActivity *)userActivity; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneWillConnectNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneDidDisconnectNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneDidActivateNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneWillDeactivateNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneWillEnterForegroundNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UISceneDidEnterBackgroundNotification __attribute__((availability(ios,introduced=13.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIPointerLockState #define _REWRITER_typedef_UIPointerLockState typedef struct objc_object UIPointerLockState; typedef struct {} _objc_exc_UIPointerLockState; #endif struct UIPointerLockState_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly, getter=isLocked) BOOL locked; /* @end */ // @interface UIScene (PointerLockState) // @property (nonatomic, readonly, nullable) UIPointerLockState *pointerLockState __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIPointerLockStateDidChangeNotification __attribute__((swift_name("UIPointerLockState.didChangeNotification"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIPointerLockStateSceneUserInfoKey __attribute__((swift_name("UIPointerLockState.sceneUserInfoKey")))__attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif // @class UINavigationItem; #ifndef _REWRITER_typedef_UINavigationItem #define _REWRITER_typedef_UINavigationItem typedef struct objc_object UINavigationItem; typedef struct {} _objc_exc_UINavigationItem; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UITabBarItem #define _REWRITER_typedef_UITabBarItem typedef struct objc_object UITabBarItem; typedef struct {} _objc_exc_UITabBarItem; #endif // @class UISearchDisplayController; #ifndef _REWRITER_typedef_UISearchDisplayController #define _REWRITER_typedef_UISearchDisplayController typedef struct objc_object UISearchDisplayController; typedef struct {} _objc_exc_UISearchDisplayController; #endif // @class UIPopoverController; #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif // @class UIStoryboard; #ifndef _REWRITER_typedef_UIStoryboard #define _REWRITER_typedef_UIStoryboard typedef struct objc_object UIStoryboard; typedef struct {} _objc_exc_UIStoryboard; #endif #ifndef _REWRITER_typedef_UIStoryboardSegue #define _REWRITER_typedef_UIStoryboardSegue typedef struct objc_object UIStoryboardSegue; typedef struct {} _objc_exc_UIStoryboardSegue; #endif #ifndef _REWRITER_typedef_UIStoryboardUnwindSegueSource #define _REWRITER_typedef_UIStoryboardUnwindSegueSource typedef struct objc_object UIStoryboardUnwindSegueSource; typedef struct {} _objc_exc_UIStoryboardUnwindSegueSource; #endif // @class UIScrollView; #ifndef _REWRITER_typedef_UIScrollView #define _REWRITER_typedef_UIScrollView typedef struct objc_object UIScrollView; typedef struct {} _objc_exc_UIScrollView; #endif // @protocol UIViewControllerTransitionCoordinator; typedef NSInteger UIModalTransitionStyle; enum { UIModalTransitionStyleCoverVertical = 0, UIModalTransitionStyleFlipHorizontal __attribute__((availability(tvos,unavailable))), UIModalTransitionStyleCrossDissolve, UIModalTransitionStylePartialCurl __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), }; typedef NSInteger UIModalPresentationStyle; enum { UIModalPresentationFullScreen = 0, UIModalPresentationPageSheet __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), UIModalPresentationFormSheet __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), UIModalPresentationCurrentContext __attribute__((availability(ios,introduced=3.2))), UIModalPresentationCustom __attribute__((availability(ios,introduced=7.0))), UIModalPresentationOverFullScreen __attribute__((availability(ios,introduced=8.0))), UIModalPresentationOverCurrentContext __attribute__((availability(ios,introduced=8.0))), UIModalPresentationPopover __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))), UIModalPresentationBlurOverFullScreen __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIModalPresentationNone __attribute__((availability(ios,introduced=7.0))) = -1, UIModalPresentationAutomatic __attribute__((availability(ios,introduced=13.0))) = -2, }; // @protocol UIContentContainer <NSObject> // @property (nonatomic, readonly) CGSize preferredContentSize __attribute__((availability(ios,introduced=8.0))); // - (void)preferredContentSizeDidChangeForChildContentContainer:(id <UIContentContainer>)container __attribute__((availability(ios,introduced=8.0))); // - (void)systemLayoutFittingSizeDidChangeForChildContentContainer:(id <UIContentContainer>)container __attribute__((availability(ios,introduced=8.0))); // - (CGSize)sizeForChildContentContainer:(id <UIContentContainer>)container withParentContainerSize:(CGSize)parentSize __attribute__((availability(ios,introduced=8.0))); // - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator>)coordinator __attribute__((availability(ios,introduced=8.0))); // - (void)willTransitionToTraitCollection:(UITraitCollection *)newCollection withTransitionCoordinator:(id <UIViewControllerTransitionCoordinator>)coordinator __attribute__((availability(ios,introduced=8.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIViewControllerShowDetailTargetDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif struct UIViewController_IMPL { struct UIResponder_IMPL UIResponder_IVARS; }; // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(null_resettable, nonatomic,strong) UIView *view; // - (void)loadView; // - (void)loadViewIfNeeded __attribute__((availability(ios,introduced=9.0))); // @property(nullable, nonatomic, readonly, strong) UIView *viewIfLoaded __attribute__((availability(ios,introduced=9.0))); // - (void)viewWillUnload __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)viewDidUnload __attribute__((availability(ios,introduced=3.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)viewDidLoad; // @property(nonatomic, readonly, getter=isViewLoaded) BOOL viewLoaded __attribute__((availability(ios,introduced=3.0))); // @property(nullable, nonatomic, readonly, copy) NSString *nibName; // @property(nullable, nonatomic, readonly, strong) NSBundle *nibBundle; // @property(nullable, nonatomic, readonly, strong) UIStoryboard *storyboard __attribute__((availability(ios,introduced=5.0))); // - (void)performSegueWithIdentifier:(NSString *)identifier sender:(nullable id)sender __attribute__((availability(ios,introduced=5.0))); // - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(nullable id)sender __attribute__((availability(ios,introduced=6.0))); // - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(nullable id)sender __attribute__((availability(ios,introduced=5.0))); // - (BOOL)canPerformUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController sender:(nullable id)sender __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // - (BOOL)canPerformUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController withSender:(id)sender __attribute__((availability(ios,introduced=6.0,deprecated=13.0,replacement="canPerformUnwindSegueAction:fromViewController:sender:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="canPerformUnwindSegueAction:fromViewController:sender:"))); // - (NSArray<UIViewController *> *)allowedChildViewControllersForUnwindingFromSource:(UIStoryboardUnwindSegueSource *)source __attribute__((availability(ios,introduced=9.0))); // - (nullable UIViewController *)childViewControllerContainingSegueSource:(UIStoryboardUnwindSegueSource *)source __attribute__((availability(ios,introduced=9.0))); // - (nullable UIViewController *)viewControllerForUnwindSegueAction:(SEL)action fromViewController:(UIViewController *)fromViewController withSender:(nullable id)sender __attribute__((availability(ios,introduced=6.0,deprecated=9.0,message=""))); // - (void)unwindForSegue:(UIStoryboardSegue *)unwindSegue towardsViewController:(UIViewController *)subsequentVC __attribute__((availability(ios,introduced=9.0))); // - (nullable UIStoryboardSegue *)segueForUnwindingToViewController:(UIViewController *)toViewController fromViewController:(UIViewController *)fromViewController identifier:(nullable NSString *)identifier __attribute__((availability(ios,introduced=6.0,deprecated=9.0,message=""))); // - (void)viewWillAppear:(BOOL)animated; // - (void)viewDidAppear:(BOOL)animated; // - (void)viewWillDisappear:(BOOL)animated; // - (void)viewDidDisappear:(BOOL)animated; // - (void)viewWillLayoutSubviews __attribute__((availability(ios,introduced=5.0))); // - (void)viewDidLayoutSubviews __attribute__((availability(ios,introduced=5.0))); // @property(nullable, nonatomic,copy) NSString *title; // - (void)didReceiveMemoryWarning; // @property(nullable,nonatomic,weak,readonly) UIViewController *parentViewController; // @property(nullable, nonatomic,readonly) UIViewController *modalViewController __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,readonly) UIViewController *presentedViewController __attribute__((availability(ios,introduced=5.0))); // @property(nullable, nonatomic,readonly) UIViewController *presentingViewController __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,assign) BOOL definesPresentationContext __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,assign) BOOL providesPresentationContextTransitionStyle __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic) BOOL restoresFocusAfterTransition __attribute__((availability(ios,introduced=10.0))); // @property(nonatomic, readonly, getter=isBeingPresented) BOOL beingPresented __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly, getter=isBeingDismissed) BOOL beingDismissed __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly, getter=isMovingToParentViewController) BOOL movingToParentViewController __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly, getter=isMovingFromParentViewController) BOOL movingFromParentViewController __attribute__((availability(ios,introduced=5.0))); // - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^ _Nullable)(void))completion __attribute__((availability(ios,introduced=5.0))); // - (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ _Nullable)(void))completion __attribute__((availability(ios,introduced=5.0))); // - (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)dismissModalViewControllerAnimated:(BOOL)animated __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,assign) UIModalTransitionStyle modalTransitionStyle __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle __attribute__((availability(ios,introduced=3.2))); // @property(nonatomic,assign) BOOL modalPresentationCapturesStatusBarAppearance __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) BOOL disablesAutomaticKeyboardDismissal __attribute__((availability(ios,introduced=4.3))); // @property(nonatomic,assign) BOOL wantsFullScreenLayout __attribute__((availability(ios,introduced=3.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,assign) UIRectEdge edgesForExtendedLayout __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic,assign) BOOL extendedLayoutIncludesOpaqueBars __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets __attribute__((availability(ios,introduced=7.0,deprecated=11.0,message="Use UIScrollView's contentInsetAdjustmentBehavior instead"))) __attribute__((availability(tvos,introduced=7.0,deprecated=11.0,message="Use UIScrollView's contentInsetAdjustmentBehavior instead"))); // @property (nonatomic) CGSize preferredContentSize __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) BOOL prefersStatusBarHidden __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) UIStatusBarAnimation preferredStatusBarUpdateAnimation __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (void)setNeedsStatusBarAppearanceUpdate __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (nullable UIViewController *)targetViewControllerForAction:(SEL)action sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // - (void)showViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // - (void)showDetailViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly) UIUserInterfaceStyle preferredUserInterfaceStyle __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // - (void)setNeedsUserInterfaceAppearanceUpdate __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface UIViewController (UIViewControllerRotation) // + (void)attemptRotationToDeviceOrientation __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) BOOL shouldAutorotate __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) UIInterfaceOrientation preferredInterfaceOrientationForPresentation __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); // - (nullable UIView *)rotatingHeaderView __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Header views are animated along with the rest of the view hierarchy"))) __attribute__((availability(tvos,unavailable))); // - (nullable UIView *)rotatingFooterView __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Footer views are animated along with the rest of the view hierarchy"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) UIInterfaceOrientation interfaceOrientation __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Implement viewWillTransitionToSize:withTransitionCoordinator: instead"))) __attribute__((availability(tvos,unavailable))); // - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="Implement viewWillTransitionToSize:withTransitionCoordinator: instead"))) __attribute__((availability(tvos,unavailable))); // - (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration __attribute__((availability(ios,introduced=2.0,deprecated=5.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIViewController (UIViewControllerEditing) // @property(nonatomic,getter=isEditing) BOOL editing; // - (void)setEditing:(BOOL)editing animated:(BOOL)animated; // @property(nonatomic, readonly) UIBarButtonItem *editButtonItem; /* @end */ // @interface UIViewController (UISearchDisplayControllerSupport) // @property(nullable, nonatomic, readonly, strong) UISearchDisplayController *searchDisplayController __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSExceptionName const UIViewControllerHierarchyInconsistencyException __attribute__((availability(ios,introduced=5.0))); // @interface UIViewController (UIContainerViewControllerProtectedMethods) // @property(nonatomic,readonly) NSArray<__kindof UIViewController *> *childViewControllers __attribute__((availability(ios,introduced=5.0))); // - (void)addChildViewController:(UIViewController *)childController __attribute__((availability(ios,introduced=5.0))); // - (void)removeFromParentViewController __attribute__((availability(ios,introduced=5.0))); // - (void)transitionFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^ _Nullable)(void))animations completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=5.0))); // - (void)beginAppearanceTransition:(BOOL)isAppearing animated:(BOOL)animated __attribute__((availability(ios,introduced=5.0))); // - (void)endAppearanceTransition __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, readonly, nullable) UIViewController *childViewControllerForStatusBarStyle __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly, nullable) UIViewController *childViewControllerForStatusBarHidden __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (void)setOverrideTraitCollection:(nullable UITraitCollection *)collection forChildViewController:(UIViewController *)childViewController __attribute__((availability(ios,introduced=8.0))); // - (nullable UITraitCollection *)overrideTraitCollectionForChildViewController:(UIViewController *)childViewController __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly, nullable) UIViewController *childViewControllerForUserInterfaceStyle __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface UIViewController (UIContainerViewControllerCallbacks) // - (BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers __attribute__((availability(ios,introduced=5.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (BOOL)shouldAutomaticallyForwardRotationMethods __attribute__((availability(ios,introduced=6.0,deprecated=8.0,message="Manually forward viewWillTransitionToSize:withTransitionCoordinator: if necessary"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) BOOL shouldAutomaticallyForwardAppearanceMethods __attribute__((availability(ios,introduced=6.0))); // - (void)willMoveToParentViewController:(nullable UIViewController *)parent __attribute__((availability(ios,introduced=5.0))); // - (void)didMoveToParentViewController:(nullable UIViewController *)parent __attribute__((availability(ios,introduced=5.0))); /* @end */ // @interface UIViewController (UIStateRestoration) <UIStateRestoring> // @property (nullable, nonatomic, copy) NSString *restorationIdentifier __attribute__((availability(ios,introduced=6.0))); // @property (nullable, nonatomic, readwrite, assign) Class<UIViewControllerRestoration> restorationClass __attribute__((availability(ios,introduced=6.0))); // - (void) encodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (void) decodeRestorableStateWithCoder:(NSCoder *)coder __attribute__((availability(ios,introduced=6.0))); // - (void) applicationFinishedRestoringState __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UIViewController (UIConstraintBasedLayoutCoreMethods) // - (void)updateViewConstraints __attribute__((availability(ios,introduced=6.0))); /* @end */ // @protocol UIViewControllerTransitioningDelegate; // @interface UIViewController(UIViewControllerTransitioning) // @property (nullable, nonatomic, weak) id <UIViewControllerTransitioningDelegate> transitioningDelegate __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UIViewController (UILayoutSupport) // @property(nonatomic,readonly,strong) id<UILayoutSupport> topLayoutGuide __attribute__((availability(ios,introduced=7.0,deprecated=11.0,message="Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor"))) __attribute__((availability(tvos,introduced=7.0,deprecated=11.0,message="Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor"))); // @property(nonatomic,readonly,strong) id<UILayoutSupport> bottomLayoutGuide __attribute__((availability(ios,introduced=7.0,deprecated=11.0,message="Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor"))) __attribute__((availability(tvos,introduced=7.0,deprecated=11.0,message="Use view.safeAreaLayoutGuide.bottomAnchor instead of bottomLayoutGuide.topAnchor"))); // @property(nonatomic) UIEdgeInsets additionalSafeAreaInsets __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic,readonly) NSDirectionalEdgeInsets systemMinimumLayoutMargins __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic) BOOL viewRespectsSystemMinimumLayoutMargins __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)viewLayoutMarginsDidChange __attribute__((objc_requires_super)) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)viewSafeAreaInsetsDidChange __attribute__((objc_requires_super)) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface UIViewController (UIKeyCommand) // - (void)addKeyCommand:(UIKeyCommand *)keyCommand __attribute__((availability(ios,introduced=9.0))); // - (void)removeKeyCommand:(UIKeyCommand *)keyCommand __attribute__((availability(ios,introduced=9.0))); /* @end */ // @interface UIViewController (UIPerformsActions) // @property (nonatomic, readonly) BOOL performsActionsWhilePresentingModally __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @class NSExtensionContext; #ifndef _REWRITER_typedef_NSExtensionContext #define _REWRITER_typedef_NSExtensionContext typedef struct objc_object NSExtensionContext; typedef struct {} _objc_exc_NSExtensionContext; #endif // @interface UIViewController(NSExtensionAdditions) <NSExtensionRequestHandling> // @property (nullable, nonatomic,readonly,strong) NSExtensionContext *extensionContext __attribute__((availability(ios,introduced=8.0))); /* @end */ // @class UIPresentationController; #ifndef _REWRITER_typedef_UIPresentationController #define _REWRITER_typedef_UIPresentationController typedef struct objc_object UIPresentationController; typedef struct {} _objc_exc_UIPresentationController; #endif #ifndef _REWRITER_typedef_UIPopoverPresentationController #define _REWRITER_typedef_UIPopoverPresentationController typedef struct objc_object UIPopoverPresentationController; typedef struct {} _objc_exc_UIPopoverPresentationController; #endif // @interface UIViewController (UIPresentationController) // @property (nullable, nonatomic,readonly) UIPresentationController *presentationController __attribute__((availability(ios,introduced=8.0))); // @property (nullable, nonatomic,readonly) UIPopoverPresentationController *popoverPresentationController __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, getter=isModalInPresentation) BOOL modalInPresentation __attribute__((availability(ios,introduced=13.0))); /* @end */ // @protocol UIViewControllerPreviewingDelegate; // @protocol UIViewControllerPreviewing <NSObject> // @property (nonatomic, readonly) UIGestureRecognizer *previewingGestureRecognizerForFailureRelationship __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); // @property (nonatomic, readonly) id<UIViewControllerPreviewingDelegate> delegate __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); // @property (nonatomic, readonly) UIView *sourceView __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); // @property (nonatomic) CGRect sourceRect __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) // @protocol UIViewControllerPreviewingDelegate <NSObject> // - (nullable UIViewController *)previewingContext:(id <UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)location __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); // - (void)previewingContext:(id <UIViewControllerPreviewing>)previewingContext commitViewController:(UIViewController *)viewControllerToCommit __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); /* @end */ // @interface UIViewController (UIViewControllerPreviewingRegistration) // - (id <UIViewControllerPreviewing>)registerForPreviewingWithDelegate:(id<UIViewControllerPreviewingDelegate>)delegate sourceView:(UIView *)sourceView __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); // - (void)unregisterForPreviewingWithContext:(id <UIViewControllerPreviewing>)previewing __attribute__((availability(ios,introduced=9.0,deprecated=13.0,replacement="UIContextMenuInteraction"))); /* @end */ // @interface UIViewController (UIScreenEdgesDeferringSystemGestures) // @property (nonatomic, readonly, nullable) UIViewController *childViewControllerForScreenEdgesDeferringSystemGestures __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) UIRectEdge preferredScreenEdgesDeferringSystemGestures __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setNeedsUpdateOfScreenEdgesDeferringSystemGestures __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIViewController (UIHomeIndicatorAutoHidden) // @property (nonatomic, readonly, nullable) UIViewController *childViewControllerForHomeIndicatorAutoHidden __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) BOOL prefersHomeIndicatorAutoHidden __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setNeedsUpdateOfHomeIndicatorAutoHidden __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIViewController (UIPointerLockSupport) // @property (nonatomic, readonly, nullable) UIViewController *childViewControllerForPointerLock __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) BOOL prefersPointerLocked __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setNeedsUpdateOfPrefersPointerLocked __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol UIPreviewActionItem; // @interface UIViewController () // @property(nonatomic, readonly) NSArray <id <UIPreviewActionItem>> *previewActionItems __attribute__((availability(ios,introduced=9.0,deprecated=13.0,message="UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction."))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) // @protocol UIPreviewActionItem <NSObject> // @property(nonatomic, copy, readonly) NSString *title; /* @end */ typedef NSInteger UIPreviewActionStyle; enum { UIPreviewActionStyleDefault=0, UIPreviewActionStyleSelected, UIPreviewActionStyleDestructive, } __attribute__((availability(ios,introduced=9.0))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0,deprecated=13_0,message="" "UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction."))) extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIPreviewAction #define _REWRITER_typedef_UIPreviewAction typedef struct objc_object UIPreviewAction; typedef struct {} _objc_exc_UIPreviewAction; #endif struct UIPreviewAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic, copy, readonly) void (^handler)(id<UIPreviewActionItem> action, UIViewController *previewViewController); // + (instancetype)actionWithTitle:(NSString *)title style:(UIPreviewActionStyle)style handler:(void (^)(UIPreviewAction *action, UIViewController *previewViewController))handler; /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9_0,deprecated=13_0,message="" "UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction."))) extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIPreviewActionGroup #define _REWRITER_typedef_UIPreviewActionGroup typedef struct objc_object UIPreviewActionGroup; typedef struct {} _objc_exc_UIPreviewActionGroup; #endif struct UIPreviewActionGroup_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)actionGroupWithTitle:(NSString *)title style:(UIPreviewActionStyle)style actions:(NSArray<UIPreviewAction *> *)actions; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UISpringLoadedInteractionSupporting <NSObject> // @property (nonatomic, assign, getter=isSpringLoaded) BOOL springLoaded __attribute__((availability(ios,introduced=11_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIAlertActionStyle; enum { UIAlertActionStyleDefault = 0, UIAlertActionStyleCancel, UIAlertActionStyleDestructive } __attribute__((availability(ios,introduced=8.0))); typedef NSInteger UIAlertControllerStyle; enum { UIAlertControllerStyleActionSheet = 0, UIAlertControllerStyleAlert } __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIAlertAction #define _REWRITER_typedef_UIAlertAction typedef struct objc_object UIAlertAction; typedef struct {} _objc_exc_UIAlertAction; #endif struct UIAlertAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)actionWithTitle:(nullable NSString *)title style:(UIAlertActionStyle)style handler:(void (^ _Nullable)(UIAlertAction *action))handler; // @property (nullable, nonatomic, readonly) NSString *title; // @property (nonatomic, readonly) UIAlertActionStyle style; // @property (nonatomic, getter=isEnabled) BOOL enabled; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIAlertController #define _REWRITER_typedef_UIAlertController typedef struct objc_object UIAlertController; typedef struct {} _objc_exc_UIAlertController; #endif struct UIAlertController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // + (instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle; // - (void)addAction:(UIAlertAction *)action; // @property (nonatomic, readonly) NSArray<UIAlertAction *> *actions; // @property (nonatomic, strong, nullable) UIAlertAction *preferredAction __attribute__((availability(ios,introduced=9.0))); // - (void)addTextFieldWithConfigurationHandler:(void (^ _Nullable)(UITextField *textField))configurationHandler; // @property (nullable, nonatomic, readonly) NSArray<UITextField *> *textFields; // @property (nullable, nonatomic, copy) NSString *title; // @property (nullable, nonatomic, copy) NSString *message; // @property (nonatomic, readonly) UIAlertControllerStyle preferredStyle; /* @end */ // @interface UIAlertController (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIAccessibilityIdentification <NSObject> /* @required */ // @property(nullable, nonatomic, copy) NSString *accessibilityIdentifier __attribute__((availability(ios,introduced=5.0))); /* @end */ // @interface UIView (UIAccessibility) <UIAccessibilityIdentification> /* @end */ // @interface UIBarItem (UIAccessibility) <UIAccessibilityIdentification> /* @end */ // @interface UIAlertAction (UIAccessibility) <UIAccessibilityIdentification> /* @end */ // @interface UIMenuElement (UIAccessibility) <UIAccessibilityIdentification> /* @end */ // @interface UIImage (UIAccessibility) <UIAccessibilityIdentification> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.0))) #ifndef _REWRITER_typedef_UIAccessibilityElement #define _REWRITER_typedef_UIAccessibilityElement typedef struct objc_object UIAccessibilityElement; typedef struct {} _objc_exc_UIAccessibilityElement; #endif struct UIAccessibilityElement_IMPL { struct UIResponder_IMPL UIResponder_IVARS; }; // - (instancetype)initWithAccessibilityContainer:(id)container; // @property (nullable, nonatomic, weak) id accessibilityContainer; // @property (nonatomic, assign) BOOL isAccessibilityElement; // @property (nullable, nonatomic, strong) NSString *accessibilityLabel; // @property (nullable, nonatomic, strong) NSString *accessibilityHint; // @property (nullable, nonatomic, strong) NSString *accessibilityValue; // @property (nonatomic, assign) CGRect accessibilityFrame; // @property (nonatomic, assign) UIAccessibilityTraits accessibilityTraits; // @property (nonatomic, assign) CGRect accessibilityFrameInContainerSpace __attribute__((availability(ios,introduced=10.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIAccessibilityZoomType; enum { UIAccessibilityZoomTypeInsertionPoint, } __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) void UIAccessibilityZoomFocusChanged(UIAccessibilityZoomType type, CGRect frame, UIView * _Nonnull view) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) void UIAccessibilityRegisterGestureConflictWithZoom(void) __attribute__((availability(ios,introduced=5.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSErrorDomain const UIGuidedAccessErrorDomain __attribute__((availability(ios,introduced=12.2))); typedef NSInteger UIGuidedAccessErrorCode; enum { UIGuidedAccessErrorPermissionDenied, UIGuidedAccessErrorFailed = 9223372036854775807L } __attribute__((availability(ios,introduced=12.2))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UIGuidedAccessRestrictionState; enum { UIGuidedAccessRestrictionStateAllow, UIGuidedAccessRestrictionStateDeny }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) // @protocol UIGuidedAccessRestrictionDelegate <NSObject> /* @required */ // @property(nonatomic, readonly, nullable) NSArray<NSString *> *guidedAccessRestrictionIdentifiers; // - (void)guidedAccessRestrictionWithIdentifier:(NSString *)restrictionIdentifier didChangeState:(UIGuidedAccessRestrictionState)newRestrictionState; // - (nullable NSString *)textForGuidedAccessRestrictionWithIdentifier:(NSString *)restrictionIdentifier; /* @optional */ // - (nullable NSString *)detailTextForGuidedAccessRestrictionWithIdentifier:(NSString *)restrictionIdentifier; /* @end */ extern "C" __attribute__((visibility ("default"))) UIGuidedAccessRestrictionState UIGuidedAccessRestrictionStateForIdentifier(NSString *restrictionIdentifier) __attribute__((availability(ios,introduced=7.0))); typedef NSUInteger UIGuidedAccessAccessibilityFeature; enum { UIGuidedAccessAccessibilityFeatureVoiceOver = 1 << 0, UIGuidedAccessAccessibilityFeatureZoom = 1 << 1, UIGuidedAccessAccessibilityFeatureAssistiveTouch = 1 << 2, UIGuidedAccessAccessibilityFeatureInvertColors = 1 << 3, UIGuidedAccessAccessibilityFeatureGrayscaleDisplay = 1 << 4, } __attribute__((availability(ios,introduced=12.2))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) void UIGuidedAccessConfigureAccessibilityFeatures(UIGuidedAccessAccessibilityFeature features, BOOL enabled, void (^completion)(BOOL success, NSError * _Nullable error)) __attribute__((availability(ios,introduced=12.2))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIAccessibilityLocationDescriptor #define _REWRITER_typedef_UIAccessibilityLocationDescriptor typedef struct objc_object UIAccessibilityLocationDescriptor; typedef struct {} _objc_exc_UIAccessibilityLocationDescriptor; #endif struct UIAccessibilityLocationDescriptor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)initWithName:(NSString *)name view:(UIView *)view; // - (instancetype)initWithName:(NSString *)name point:(CGPoint)point inView:(UIView *)view; // - (instancetype)initWithAttributedName:(NSAttributedString *)attributedName point:(CGPoint)point inView:(UIView *)view __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly, weak) UIView *view; // @property (nonatomic, readonly) CGPoint point; // @property (nonatomic, readonly, strong) NSString *name; // @property (nonatomic, readonly, strong) NSAttributedString *attributedName; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface NSObject (UIAccessibility) // @property (nonatomic) BOOL isAccessibilityElement; // @property (nullable, nonatomic, copy) NSString *accessibilityLabel; // @property (nullable, nonatomic, copy) NSAttributedString *accessibilityAttributedLabel __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, nonatomic, copy) NSString *accessibilityHint; // @property (nullable, nonatomic, copy) NSAttributedString *accessibilityAttributedHint __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nullable, nonatomic, copy) NSString *accessibilityValue; // @property (nullable, nonatomic, copy) NSAttributedString *accessibilityAttributedValue __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic) UIAccessibilityTraits accessibilityTraits; // @property (nonatomic) CGRect accessibilityFrame; extern "C" __attribute__((visibility ("default"))) CGRect UIAccessibilityConvertFrameToScreenCoordinates(CGRect rect, UIView *view) __attribute__((availability(ios,introduced=7.0))); // @property (nullable, nonatomic, copy) UIBezierPath *accessibilityPath __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UIBezierPath *UIAccessibilityConvertPathToScreenCoordinates(UIBezierPath *path, UIView *view) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGPoint accessibilityActivationPoint __attribute__((availability(ios,introduced=5.0))); // @property (nullable, nonatomic, strong) NSString *accessibilityLanguage; // @property (nonatomic) BOOL accessibilityElementsHidden __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic) BOOL accessibilityViewIsModal __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic) BOOL shouldGroupAccessibilityChildren __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic) UIAccessibilityNavigationStyle accessibilityNavigationStyle __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) BOOL accessibilityRespondsToUserInteraction __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (null_resettable, nonatomic, strong) NSArray<NSString *> *accessibilityUserInputLabels __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (null_resettable, nonatomic, copy) NSArray<NSAttributedString *> *accessibilityAttributedUserInputLabels __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property(nullable, nonatomic, copy) NSArray *accessibilityHeaderElements __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=9_0))); // @property(nullable, nonatomic, strong) UIAccessibilityTextualContext accessibilityTextualContext __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @interface NSObject (UIAccessibilityFocus) // - (void)accessibilityElementDidBecomeFocused __attribute__((availability(ios,introduced=4.0))); // - (void)accessibilityElementDidLoseFocus __attribute__((availability(ios,introduced=4.0))); // - (BOOL)accessibilityElementIsFocused __attribute__((availability(ios,introduced=4.0))); // - (nullable NSSet<UIAccessibilityAssistiveTechnologyIdentifier> *)accessibilityAssistiveTechnologyFocusedIdentifiers __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) _Nullable id UIAccessibilityFocusedElement(UIAccessibilityAssistiveTechnologyIdentifier _Nullable assistiveTechnologyIdentifier) __attribute__((availability(ios,introduced=9.0))); /* @end */ // @interface NSObject (UIAccessibilityAction) // - (BOOL)accessibilityActivate __attribute__((availability(ios,introduced=7.0))); // - (void)accessibilityIncrement __attribute__((availability(ios,introduced=4.0))); // - (void)accessibilityDecrement __attribute__((availability(ios,introduced=4.0))); typedef NSInteger UIAccessibilityScrollDirection; enum { UIAccessibilityScrollDirectionRight = 1, UIAccessibilityScrollDirectionLeft, UIAccessibilityScrollDirectionUp, UIAccessibilityScrollDirectionDown, UIAccessibilityScrollDirectionNext __attribute__((availability(ios,introduced=5.0))), UIAccessibilityScrollDirectionPrevious __attribute__((availability(ios,introduced=5.0))), }; // - (BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction __attribute__((availability(ios,introduced=4.2))); // - (BOOL)accessibilityPerformEscape __attribute__((availability(ios,introduced=5.0))); // - (BOOL)accessibilityPerformMagicTap __attribute__((availability(ios,introduced=6.0))); // @property (nullable, nonatomic, strong) NSArray <UIAccessibilityCustomAction *> *accessibilityCustomActions __attribute__((availability(ios,introduced=8.0))); /* @end */ // @protocol UIAccessibilityReadingContent /* @required */ // - (NSInteger)accessibilityLineNumberForPoint:(CGPoint)point __attribute__((availability(ios,introduced=5.0))); // - (nullable NSString *)accessibilityContentForLineNumber:(NSInteger)lineNumber __attribute__((availability(ios,introduced=5.0))); // - (CGRect)accessibilityFrameForLineNumber:(NSInteger)lineNumber __attribute__((availability(ios,introduced=5.0))); // - (nullable NSString *)accessibilityPageContent __attribute__((availability(ios,introduced=5.0))); /* @optional */ // - (nullable NSAttributedString *)accessibilityAttributedContentForLineNumber:(NSInteger)lineNumber __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (nullable NSAttributedString *)accessibilityAttributedPageContent __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface NSObject(UIAccessibilityDragging) // @property (nullable, nonatomic, copy) NSArray<UIAccessibilityLocationDescriptor *> *accessibilityDragSourceDescriptors __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, copy) NSArray<UIAccessibilityLocationDescriptor *> *accessibilityDropPointDescriptors __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) void UIAccessibilityPostNotification(UIAccessibilityNotifications notification, _Nullable id argument); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsVoiceOverRunning(void) __attribute__((availability(ios,introduced=4.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityVoiceOverStatusChanged __attribute__((availability(ios,introduced=4.0,deprecated=11.0,replacement="UIAccessibilityVoiceOverStatusDidChangeNotification"))) __attribute__((availability(tvos,introduced=9.0,deprecated=11.0,replacement="UIAccessibilityVoiceOverStatusDidChangeNotification"))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityVoiceOverStatusDidChangeNotification __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsMonoAudioEnabled(void) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityMonoAudioStatusDidChangeNotification __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsClosedCaptioningEnabled(void) __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityClosedCaptioningStatusDidChangeNotification __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsInvertColorsEnabled(void) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityInvertColorsStatusDidChangeNotification __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsGuidedAccessEnabled(void) __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityGuidedAccessStatusDidChangeNotification __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsBoldTextEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityBoldTextStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityButtonShapesEnabled(void) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityButtonShapesEnabledStatusDidChangeNotification __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsGrayscaleEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityGrayscaleStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsReduceTransparencyEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityReduceTransparencyStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsReduceMotionEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityReduceMotionStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityPrefersCrossFadeTransitions(void) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityPrefersCrossFadeTransitionsStatusDidChangeNotification __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsVideoAutoplayEnabled(void) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityVideoAutoplayStatusDidChangeNotification __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityDarkerSystemColorsEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityDarkerSystemColorsStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsSwitchControlRunning(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilitySwitchControlStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsSpeakSelectionEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilitySpeakSelectionStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsSpeakScreenEnabled(void) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilitySpeakScreenStatusDidChangeNotification __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsShakeToUndoEnabled(void) __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityShakeToUndoDidChangeNotification __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsAssistiveTouchRunning(void) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityAssistiveTouchStatusDidChangeNotification __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityShouldDifferentiateWithoutColor(void) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UIAccessibilityShouldDifferentiateWithoutColorDidChangeNotification __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIAccessibilityIsOnOffSwitchLabelsEnabled(void) __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityOnOffSwitchLabelsDidChangeNotification __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) void UIAccessibilityRequestGuidedAccessSession(BOOL enable, void(^completionHandler)(BOOL didSucceed)) __attribute__((availability(ios,introduced=7.0))); typedef NSUInteger UIAccessibilityHearingDeviceEar; enum { UIAccessibilityHearingDeviceEarNone = 0, UIAccessibilityHearingDeviceEarLeft = 1 << 1, UIAccessibilityHearingDeviceEarRight = 1 << 2, UIAccessibilityHearingDeviceEarBoth = UIAccessibilityHearingDeviceEarLeft | UIAccessibilityHearingDeviceEarRight, } __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIAccessibilityHearingDeviceEar UIAccessibilityHearingDevicePairedEar(void) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIAccessibilityHearingDevicePairedEarDidChangeNotification __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIImageSymbolConfiguration #define _REWRITER_typedef_UIImageSymbolConfiguration typedef struct objc_object UIImageSymbolConfiguration; typedef struct {} _objc_exc_UIImageSymbolConfiguration; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif struct UIImageView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithImage:(nullable UIImage *)image; // - (instancetype)initWithImage:(nullable UIImage *)image highlightedImage:(nullable UIImage *)highlightedImage __attribute__((availability(ios,introduced=3.0))); // @property (nullable, nonatomic, strong) UIImage *image; // @property (nullable, nonatomic, strong) UIImage *highlightedImage __attribute__((availability(ios,introduced=3.0))); // @property (nullable, nonatomic, strong) UIImageSymbolConfiguration* preferredSymbolConfiguration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property (nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // @property (nonatomic, getter=isHighlighted) BOOL highlighted __attribute__((availability(ios,introduced=3.0))); // @property (nullable, nonatomic, copy) NSArray<UIImage *> *animationImages; // @property (nullable, nonatomic, copy) NSArray<UIImage *> *highlightedAnimationImages __attribute__((availability(ios,introduced=3.0))); // @property (nonatomic) NSTimeInterval animationDuration; // @property (nonatomic) NSInteger animationRepeatCount; // @property (null_resettable, nonatomic, strong) UIColor *tintColor __attribute__((availability(ios,introduced=7.0))); // - (void)startAnimating; // - (void)stopAnimating; // @property(nonatomic, readonly, getter=isAnimating) BOOL animating; // @property (nonatomic) BOOL adjustsImageWhenAncestorFocused __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=9_0))); // @property(readonly,strong) UILayoutGuide *focusedFrameGuide __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=9_0))); // @property (nonatomic, strong, readonly) UIView *overlayContentView __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=11_0))); // @property (nonatomic) BOOL masksFocusEffectToContents __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=11_0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIImageSymbolConfiguration #define _REWRITER_typedef_UIImageSymbolConfiguration typedef struct objc_object UIImageSymbolConfiguration; typedef struct {} _objc_exc_UIImageSymbolConfiguration; #endif typedef NSInteger UIButtonType; enum { UIButtonTypeCustom = 0, UIButtonTypeSystem __attribute__((availability(ios,introduced=7.0))), UIButtonTypeDetailDisclosure, UIButtonTypeInfoLight, UIButtonTypeInfoDark, UIButtonTypeContactAdd, UIButtonTypePlain __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIButtonTypeClose __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))), UIButtonTypeRoundedRect = UIButtonTypeSystem }; typedef NSInteger UIButtonRole; enum { UIButtonRoleNormal, UIButtonRolePrimary, UIButtonRoleCancel, UIButtonRoleDestructive } __attribute__((availability(ios,introduced=14.0))); // @class UIButton; #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif #ifndef _REWRITER_typedef_UIPointerStyle #define _REWRITER_typedef_UIPointerStyle typedef struct objc_object UIPointerStyle; typedef struct {} _objc_exc_UIPointerStyle; #endif #ifndef _REWRITER_typedef_UIPointerEffect #define _REWRITER_typedef_UIPointerEffect typedef struct objc_object UIPointerEffect; typedef struct {} _objc_exc_UIPointerEffect; #endif #ifndef _REWRITER_typedef_UIPointerShape #define _REWRITER_typedef_UIPointerShape typedef struct objc_object UIPointerShape; typedef struct {} _objc_exc_UIPointerShape; #endif typedef UIPointerStyle *_Nullable(*UIButtonPointerStyleProvider)(UIButton *button, UIPointerEffect *proposedEffect, UIPointerShape *proposedShape) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif struct UIButton_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithFrame:(CGRect)frame primaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // + (instancetype)buttonWithType:(UIButtonType)buttonType; // + (instancetype)systemButtonWithImage:(UIImage *)image target:(nullable id)target action:(nullable SEL)action __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // + (instancetype)systemButtonWithPrimaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // + (instancetype)buttonWithType:(UIButtonType)buttonType primaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic) UIEdgeInsets contentEdgeInsets __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) UIEdgeInsets titleEdgeInsets; // @property(nonatomic) BOOL reversesTitleShadowWhenHighlighted; // @property(nonatomic) UIEdgeInsets imageEdgeInsets; // @property(nonatomic) BOOL adjustsImageWhenHighlighted; // @property(nonatomic) BOOL adjustsImageWhenDisabled; // @property(nonatomic) BOOL showsTouchWhenHighlighted __attribute__((availability(tvos,unavailable))); // @property(null_resettable, nonatomic,strong) UIColor *tintColor __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) UIButtonType buttonType; // @property (nonatomic) UIButtonRole role __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, readwrite, assign, getter = isPointerInteractionEnabled) BOOL pointerInteractionEnabled __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, copy, nullable) UIButtonPointerStyleProvider pointerStyleProvider __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)); // @property (nonatomic, readwrite, copy, nullable) UIMenu *menu __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setTitle:(nullable NSString *)title forState:(UIControlState)state; // - (void)setTitleColor:(nullable UIColor *)color forState:(UIControlState)state __attribute__((annotate("ui_appearance_selector"))); // - (void)setTitleShadowColor:(nullable UIColor *)color forState:(UIControlState)state __attribute__((annotate("ui_appearance_selector"))); // - (void)setImage:(nullable UIImage *)image forState:(UIControlState)state; // - (void)setBackgroundImage:(nullable UIImage *)image forState:(UIControlState)state __attribute__((annotate("ui_appearance_selector"))); // - (void)setPreferredSymbolConfiguration:(nullable UIImageSymbolConfiguration *)configuration forImageInState:(UIControlState)state __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (void)setAttributedTitle:(nullable NSAttributedString *)title forState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))); // - (nullable NSString *)titleForState:(UIControlState)state; // - (nullable UIColor *)titleColorForState:(UIControlState)state; // - (nullable UIColor *)titleShadowColorForState:(UIControlState)state; // - (nullable UIImage *)imageForState:(UIControlState)state; // - (nullable UIImage *)backgroundImageForState:(UIControlState)state; // - (nullable UIImageSymbolConfiguration *)preferredSymbolConfigurationForImageInState:(UIControlState)state __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // - (nullable NSAttributedString *)attributedTitleForState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))); // @property(nullable, nonatomic,readonly,strong) NSString *currentTitle; // @property(nonatomic,readonly,strong) UIColor *currentTitleColor; // @property(nullable, nonatomic,readonly,strong) UIColor *currentTitleShadowColor; // @property(nullable, nonatomic,readonly,strong) UIImage *currentImage; // @property(nullable, nonatomic,readonly,strong) UIImage *currentBackgroundImage; // @property(nullable, nonatomic,readonly,strong) UIImageSymbolConfiguration *currentPreferredSymbolConfiguration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); // @property(nullable, nonatomic,readonly,strong) NSAttributedString *currentAttributedTitle __attribute__((availability(ios,introduced=6.0))); // @property(nullable, nonatomic,readonly,strong) UILabel *titleLabel __attribute__((availability(ios,introduced=3.0))); // @property(nullable, nonatomic,readonly,strong) UIImageView *imageView __attribute__((availability(ios,introduced=3.0))); // - (CGRect)backgroundRectForBounds:(CGRect)bounds; // - (CGRect)contentRectForBounds:(CGRect)bounds; // - (CGRect)titleRectForContentRect:(CGRect)contentRect; // - (CGRect)imageRectForContentRect:(CGRect)contentRect; /* @end */ // @interface UIButton(UIButtonDeprecated) // @property(nonatomic,strong) UIFont *font __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) NSLineBreakMode lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) CGSize titleShadowOffset __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIButton (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) // @protocol UIAccessibilityContentSizeCategoryImageAdjusting <NSObject> // @property (nonatomic) BOOL adjustsImageSizeForAccessibilityContentSizeCategory; /* @end */ // @interface UIImageView (UIAccessibilityContentSizeCategoryImageAdjusting) <UIAccessibilityContentSizeCategoryImageAdjusting> /* @end */ // @interface UIButton (UIAccessibilityContentSizeCategoryImageAdjusting) <UIAccessibilityContentSizeCategoryImageAdjusting> /* @end */ // @interface NSTextAttachment (UIAccessibilityContentSizeCategoryImageAdjusting) <UIAccessibilityContentSizeCategoryImageAdjusting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIActivityIndicatorViewStyle; enum { UIActivityIndicatorViewStyleMedium __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) = 100, UIActivityIndicatorViewStyleLarge __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) = 101, UIActivityIndicatorViewStyleWhiteLarge __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="UIActivityIndicatorViewStyleLarge"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="UIActivityIndicatorViewStyleLarge"))) = 0, UIActivityIndicatorViewStyleWhite __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="UIActivityIndicatorViewStyleMedium"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="UIActivityIndicatorViewStyleMedium"))) = 1, UIActivityIndicatorViewStyleGray __attribute__((availability(ios,introduced=2.0,deprecated=13.0,replacement="UIActivityIndicatorViewStyleMedium"))) __attribute__((availability(tvos,unavailable))) = 2, }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIActivityIndicatorView #define _REWRITER_typedef_UIActivityIndicatorView typedef struct objc_object UIActivityIndicatorView; typedef struct {} _objc_exc_UIActivityIndicatorView; #endif struct UIActivityIndicatorView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style __attribute__((objc_designated_initializer)); // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle; // @property(nonatomic) BOOL hidesWhenStopped; // @property (null_resettable, readwrite, nonatomic, strong) UIColor *color __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)startAnimating; // - (void)stopAnimating; // @property(nonatomic, readonly, getter=isAnimating) BOOL animating; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIBarMetrics; enum { UIBarMetricsDefault, UIBarMetricsCompact, UIBarMetricsDefaultPrompt = 101, UIBarMetricsCompactPrompt, UIBarMetricsLandscapePhone __attribute__((availability(ios,introduced=5_0,deprecated=8_0,message="" "Use UIBarMetricsCompact instead"))) = UIBarMetricsCompact, UIBarMetricsLandscapePhonePrompt __attribute__((availability(ios,introduced=7_0,deprecated=8_0,message="" "Use UIBarMetricsCompactPrompt"))) = UIBarMetricsCompactPrompt, }; typedef NSInteger UIBarPosition; enum { UIBarPositionAny = 0, UIBarPositionBottom = 1, UIBarPositionTop = 2, UIBarPositionTopAttached = 3, } __attribute__((availability(ios,introduced=7.0))); // @protocol UIBarPositioning <NSObject> // @property(nonatomic,readonly) UIBarPosition barPosition; /* @end */ // @protocol UIBarPositioningDelegate <NSObject> /* @optional */ // - (UIBarPosition)positionForBar:(id <UIBarPositioning>)bar; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIBarButtonItemStyle; enum { UIBarButtonItemStylePlain, UIBarButtonItemStyleBordered __attribute__((availability(ios,introduced=2_0,deprecated=8_0,message="" "Use UIBarButtonItemStylePlain when minimum deployment target is iOS7 or later"))), UIBarButtonItemStyleDone, }; typedef NSInteger UIBarButtonSystemItem; enum { UIBarButtonSystemItemDone, UIBarButtonSystemItemCancel, UIBarButtonSystemItemEdit, UIBarButtonSystemItemSave, UIBarButtonSystemItemAdd, UIBarButtonSystemItemFlexibleSpace, UIBarButtonSystemItemFixedSpace, UIBarButtonSystemItemCompose, UIBarButtonSystemItemReply, UIBarButtonSystemItemAction, UIBarButtonSystemItemOrganize, UIBarButtonSystemItemBookmarks, UIBarButtonSystemItemSearch, UIBarButtonSystemItemRefresh, UIBarButtonSystemItemStop, UIBarButtonSystemItemCamera, UIBarButtonSystemItemTrash, UIBarButtonSystemItemPlay, UIBarButtonSystemItemPause, UIBarButtonSystemItemRewind, UIBarButtonSystemItemFastForward, UIBarButtonSystemItemUndo __attribute__((availability(ios,introduced=3.0))), UIBarButtonSystemItemRedo __attribute__((availability(ios,introduced=3.0))), UIBarButtonSystemItemPageCurl __attribute__((availability(ios,introduced=4_0,deprecated=11_0,message="" ))), UIBarButtonSystemItemClose __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) }; // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif struct UIBarButtonItem_IMPL { struct UIBarItem_IMPL UIBarItem_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithImage:(nullable UIImage *)image style:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action; // - (instancetype)initWithImage:(nullable UIImage *)image landscapeImagePhone:(nullable UIImage *)landscapeImagePhone style:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action __attribute__((availability(ios,introduced=5.0))); // - (instancetype)initWithTitle:(nullable NSString *)title style:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action; // - (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(nullable id)target action:(nullable SEL)action; // - (instancetype)initWithCustomView:(UIView *)customView; // - (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem primaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithPrimaryAction:(nullable UIAction *)primaryAction __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem menu:(nullable UIMenu *)menu __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithTitle:(nullable NSString *)title menu:(nullable UIMenu *)menu __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithImage:(nullable UIImage *)image menu:(nullable UIMenu *)menu __attribute__((availability(ios,introduced=14.0))); // + (instancetype)fixedSpaceItemOfWidth:(CGFloat)width __attribute__((availability(ios,introduced=14.0))); // + (instancetype)flexibleSpaceItem __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, readwrite, assign) UIBarButtonItemStyle style; // @property (nonatomic, readwrite, assign) CGFloat width; // @property (nonatomic, readwrite, copy , nullable) NSSet<NSString *> *possibleTitles; // @property (nonatomic, readwrite, strong, nullable) __kindof UIView *customView; // @property (nonatomic, readwrite, assign, nullable) SEL action; // @property (nonatomic, readwrite, weak , nullable) id target; // @property (nonatomic, readwrite, copy, nullable) UIAction *primaryAction __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, readwrite, copy, nullable) UIMenu *menu __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state style:(UIBarButtonItemStyle)style barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForState:(UIControlState)state style:(UIBarButtonItemStyle)style barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIColor *tintColor __attribute__((availability(ios,introduced=5.0))); // - (void)setBackgroundVerticalPositionAdjustment:(CGFloat)adjustment forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (CGFloat)backgroundVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setTitlePositionAdjustment:(UIOffset)adjustment forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (UIOffset)titlePositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackButtonBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // - (nullable UIImage *)backButtonBackgroundImageForState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // - (void)setBackButtonTitlePositionAdjustment:(UIOffset)adjustment forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // - (UIOffset)backButtonTitlePositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // - (void)setBackButtonBackgroundVerticalPositionAdjustment:(CGFloat)adjustment forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // - (CGFloat)backButtonBackgroundVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIBarButtonItem (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIBarButtonItemGroup #define _REWRITER_typedef_UIBarButtonItemGroup typedef struct objc_object UIBarButtonItemGroup; typedef struct {} _objc_exc_UIBarButtonItemGroup; #endif struct UIBarButtonItemGroup_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithBarButtonItems:(NSArray<UIBarButtonItem *> *)barButtonItems representativeItem:(nullable UIBarButtonItem *)representativeItem __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, readwrite, copy) NSArray<UIBarButtonItem *> *barButtonItems; // @property (nonatomic, readwrite, strong, nullable) UIBarButtonItem *representativeItem; // @property (nonatomic, readonly, assign, getter = isDisplayingRepresentativeItem) BOOL displayingRepresentativeItem; /* @end */ // @interface UIBarButtonItem (UIBarButtonItemGroup) // @property (nonatomic, readonly, weak, nullable) UIBarButtonItemGroup *buttonGroup __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface NSIndexPath (UIKitAdditions) // + (instancetype)indexPathForRow:(NSInteger)row inSection:(NSInteger)section; // + (instancetype)indexPathForItem:(NSInteger)item inSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic, readonly) NSInteger section; // @property (nonatomic, readonly) NSInteger row; // @property (nonatomic, readonly) NSInteger item __attribute__((availability(ios,introduced=6.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) // @protocol UIDataSourceTranslating <NSObject> // - (NSInteger)presentationSectionIndexForDataSourceSectionIndex:(NSInteger)dataSourceSectionIndex; // - (NSInteger)dataSourceSectionIndexForPresentationSectionIndex:(NSInteger)presentationSectionIndex; // - (nullable NSIndexPath *)presentationIndexPathForDataSourceIndexPath:(nullable NSIndexPath *)dataSourceIndexPath; // - (nullable NSIndexPath *)dataSourceIndexPathForPresentationIndexPath:(nullable NSIndexPath *)presentationIndexPath; // - (void)performUsingPresentationValues:(void (__attribute__((noescape)) ^)(void))actionsToTranslate __attribute__((swift_name("performUsingPresentationValues(_:)"))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UICollectionViewScrollPosition; enum { UICollectionViewScrollPositionNone = 0, UICollectionViewScrollPositionTop = 1 << 0, UICollectionViewScrollPositionCenteredVertically = 1 << 1, UICollectionViewScrollPositionBottom = 1 << 2, UICollectionViewScrollPositionLeft = 1 << 3, UICollectionViewScrollPositionCenteredHorizontally = 1 << 4, UICollectionViewScrollPositionRight = 1 << 5 }; typedef NSInteger UICollectionViewReorderingCadence; enum { UICollectionViewReorderingCadenceImmediate, UICollectionViewReorderingCadenceFast, UICollectionViewReorderingCadenceSlow } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @class UICollectionView; #ifndef _REWRITER_typedef_UICollectionView #define _REWRITER_typedef_UICollectionView typedef struct objc_object UICollectionView; typedef struct {} _objc_exc_UICollectionView; #endif #ifndef _REWRITER_typedef_UICollectionReusableView #define _REWRITER_typedef_UICollectionReusableView typedef struct objc_object UICollectionReusableView; typedef struct {} _objc_exc_UICollectionReusableView; #endif #ifndef _REWRITER_typedef_UICollectionViewCell #define _REWRITER_typedef_UICollectionViewCell typedef struct objc_object UICollectionViewCell; typedef struct {} _objc_exc_UICollectionViewCell; #endif #ifndef _REWRITER_typedef_UICollectionViewLayout #define _REWRITER_typedef_UICollectionViewLayout typedef struct objc_object UICollectionViewLayout; typedef struct {} _objc_exc_UICollectionViewLayout; #endif #ifndef _REWRITER_typedef_UICollectionViewTransitionLayout #define _REWRITER_typedef_UICollectionViewTransitionLayout typedef struct objc_object UICollectionViewTransitionLayout; typedef struct {} _objc_exc_UICollectionViewTransitionLayout; #endif #ifndef _REWRITER_typedef_UICollectionViewLayoutAttributes #define _REWRITER_typedef_UICollectionViewLayoutAttributes typedef struct objc_object UICollectionViewLayoutAttributes; typedef struct {} _objc_exc_UICollectionViewLayoutAttributes; #endif #ifndef _REWRITER_typedef_UITouch #define _REWRITER_typedef_UITouch typedef struct objc_object UITouch; typedef struct {} _objc_exc_UITouch; #endif #ifndef _REWRITER_typedef_UINib #define _REWRITER_typedef_UINib typedef struct objc_object UINib; typedef struct {} _objc_exc_UINib; #endif // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UIDragPreviewParameters #define _REWRITER_typedef_UIDragPreviewParameters typedef struct objc_object UIDragPreviewParameters; typedef struct {} _objc_exc_UIDragPreviewParameters; #endif #ifndef _REWRITER_typedef_UIDragPreviewTarget #define _REWRITER_typedef_UIDragPreviewTarget typedef struct objc_object UIDragPreviewTarget; typedef struct {} _objc_exc_UIDragPreviewTarget; #endif // @class UICollectionViewDropProposal; #ifndef _REWRITER_typedef_UICollectionViewDropProposal #define _REWRITER_typedef_UICollectionViewDropProposal typedef struct objc_object UICollectionViewDropProposal; typedef struct {} _objc_exc_UICollectionViewDropProposal; #endif #ifndef _REWRITER_typedef_UICollectionViewPlaceholder #define _REWRITER_typedef_UICollectionViewPlaceholder typedef struct objc_object UICollectionViewPlaceholder; typedef struct {} _objc_exc_UICollectionViewPlaceholder; #endif #ifndef _REWRITER_typedef_UICollectionViewDropPlaceholder #define _REWRITER_typedef_UICollectionViewDropPlaceholder typedef struct objc_object UICollectionViewDropPlaceholder; typedef struct {} _objc_exc_UICollectionViewDropPlaceholder; #endif // @class UICollectionViewCellRegistration; #ifndef _REWRITER_typedef_UICollectionViewCellRegistration #define _REWRITER_typedef_UICollectionViewCellRegistration typedef struct objc_object UICollectionViewCellRegistration; typedef struct {} _objc_exc_UICollectionViewCellRegistration; #endif #ifndef _REWRITER_typedef_UICollectionViewSupplementaryRegistration #define _REWRITER_typedef_UICollectionViewSupplementaryRegistration typedef struct objc_object UICollectionViewSupplementaryRegistration; typedef struct {} _objc_exc_UICollectionViewSupplementaryRegistration; #endif // @protocol UIDataSourceTranslating, UISpringLoadedInteractionContext; // @protocol UIDragSession, UIDropSession; // @protocol UICollectionViewDragDelegate, UICollectionViewDropDelegate, UICollectionViewDropCoordinator, UICollectionViewDropItem, UICollectionViewDropPlaceholderContext; typedef void (*UICollectionViewLayoutInteractiveTransitionCompletion)(BOOL completed, BOOL finished); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UICollectionViewFocusUpdateContext #define _REWRITER_typedef_UICollectionViewFocusUpdateContext typedef struct objc_object UICollectionViewFocusUpdateContext; typedef struct {} _objc_exc_UICollectionViewFocusUpdateContext; #endif struct UICollectionViewFocusUpdateContext_IMPL { struct UIFocusUpdateContext_IMPL UIFocusUpdateContext_IVARS; }; // @property (nonatomic, strong, readonly, nullable) NSIndexPath *previouslyFocusedIndexPath; // @property (nonatomic, strong, readonly, nullable) NSIndexPath *nextFocusedIndexPath; /* @end */ // @protocol UICollectionViewDataSource <NSObject> /* @required */ // - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section; // - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath; /* @optional */ // - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView; // - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath; // - (BOOL)collectionView:(UICollectionView *)collectionView canMoveItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=9.0))); // - (void)collectionView:(UICollectionView *)collectionView moveItemAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath*)destinationIndexPath __attribute__((availability(ios,introduced=9.0))); // - (nullable NSArray<NSString *> *)indexTitlesForCollectionView:(UICollectionView *)collectionView __attribute__((availability(tvos,introduced=10.2))); // - (NSIndexPath *)collectionView:(UICollectionView *)collectionView indexPathForIndexTitle:(NSString *)title atIndex:(NSInteger)index __attribute__((availability(tvos,introduced=10.2))); /* @end */ // @protocol UICollectionViewDataSourcePrefetching <NSObject> /* @required */ // - (void)collectionView:(UICollectionView *)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths __attribute__((availability(ios,introduced=10.0))); /* @optional */ // - (void)collectionView:(UICollectionView *)collectionView cancelPrefetchingForItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths __attribute__((availability(ios,introduced=10.0))); /* @end */ // @protocol UICollectionViewDelegate <UIScrollViewDelegate> /* @optional */ // - (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView didHighlightItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView didUnhighlightItemAtIndexPath:(NSIndexPath *)indexPath; // - (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath; // - (BOOL)collectionView:(UICollectionView *)collectionView shouldDeselectItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=8.0))); // - (void)collectionView:(UICollectionView *)collectionView willDisplaySupplementaryView:(UICollectionReusableView *)view forElementKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=8.0))); // - (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView didEndDisplayingSupplementaryView:(UICollectionReusableView *)view forElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath; // - (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0,deprecated=13.0,replacement="collectionView:contextMenuConfigurationForItemAtIndexPath:"))); // - (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(nullable id)sender __attribute__((availability(ios,introduced=6.0,deprecated=13.0,replacement="collectionView:contextMenuConfigurationForItemAtIndexPath:"))); // - (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(nullable id)sender __attribute__((availability(ios,introduced=6.0,deprecated=13.0,replacement="collectionView:contextMenuConfigurationForItemAtIndexPath:"))); // - (nonnull UICollectionViewTransitionLayout *)collectionView:(UICollectionView *)collectionView transitionLayoutForOldLayout:(UICollectionViewLayout *)fromLayout newLayout:(UICollectionViewLayout *)toLayout; // - (BOOL)collectionView:(UICollectionView *)collectionView canFocusItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=9.0))); // - (BOOL)collectionView:(UICollectionView *)collectionView shouldUpdateFocusInContext:(UICollectionViewFocusUpdateContext *)context __attribute__((availability(ios,introduced=9.0))); // - (void)collectionView:(UICollectionView *)collectionView didUpdateFocusInContext:(UICollectionViewFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator __attribute__((availability(ios,introduced=9.0))); // - (nullable NSIndexPath *)indexPathForPreferredFocusedViewInCollectionView:(UICollectionView *)collectionView __attribute__((availability(ios,introduced=9.0))); // - (NSIndexPath *)collectionView:(UICollectionView *)collectionView targetIndexPathForMoveFromItemAtIndexPath:(NSIndexPath *)originalIndexPath toProposedIndexPath:(NSIndexPath *)proposedIndexPath __attribute__((availability(ios,introduced=9.0))); // - (CGPoint)collectionView:(UICollectionView *)collectionView targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset __attribute__((availability(ios,introduced=9.0))); // - (BOOL)collectionView:(UICollectionView *)collectionView canEditItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (BOOL)collectionView:(UICollectionView *)collectionView shouldSpringLoadItemAtIndexPath:(NSIndexPath *)indexPath withContext:(id<UISpringLoadedInteractionContext>)context __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (BOOL)collectionView:(UICollectionView *)collectionView shouldBeginMultipleSelectionInteractionAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (void)collectionView:(UICollectionView *)collectionView didBeginMultipleSelectionInteractionAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (void)collectionViewDidEndMultipleSelectionInteraction:(UICollectionView *)collectionView __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (nullable UIContextMenuConfiguration *)collectionView:(UICollectionView *)collectionView contextMenuConfigurationForItemAtIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable UITargetedPreview *)collectionView:(UICollectionView *)collectionView previewForHighlightingContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable UITargetedPreview *)collectionView:(UICollectionView *)collectionView previewForDismissingContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)collectionView:(UICollectionView *)collectionView willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)collectionView:(UICollectionView *)collectionView willDisplayContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((availability(ios,introduced=13.2))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)collectionView:(UICollectionView *)collectionView willEndContextMenuInteractionWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((availability(ios,introduced=13.2))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionView #define _REWRITER_typedef_UICollectionView typedef struct objc_object UICollectionView; typedef struct {} _objc_exc_UICollectionView; #endif struct UICollectionView_IMPL { struct UIScrollView_IMPL UIScrollView_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, strong) UICollectionViewLayout *collectionViewLayout; // @property (nonatomic, weak, nullable) id <UICollectionViewDelegate> delegate; // @property (nonatomic, weak, nullable) id <UICollectionViewDataSource> dataSource; // @property (nonatomic, weak, nullable) id<UICollectionViewDataSourcePrefetching> prefetchDataSource __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, getter=isPrefetchingEnabled) BOOL prefetchingEnabled __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, weak, nullable) id <UICollectionViewDragDelegate> dragDelegate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, weak, nullable) id <UICollectionViewDropDelegate> dropDelegate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) BOOL dragInteractionEnabled __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly, nullable) UIContextMenuInteraction *contextMenuInteraction __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) UICollectionViewReorderingCadence reorderingCadence __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, strong, nullable) UIView *backgroundView; // - (void)registerClass:(nullable Class)cellClass forCellWithReuseIdentifier:(NSString *)identifier; // - (void)registerNib:(nullable UINib *)nib forCellWithReuseIdentifier:(NSString *)identifier; // - (void)registerClass:(nullable Class)viewClass forSupplementaryViewOfKind:(NSString *)elementKind withReuseIdentifier:(NSString *)identifier; // - (void)registerNib:(nullable UINib *)nib forSupplementaryViewOfKind:(NSString *)kind withReuseIdentifier:(NSString *)identifier; // - (__kindof UICollectionViewCell *)dequeueReusableCellWithReuseIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath; // - (__kindof UICollectionReusableView *)dequeueReusableSupplementaryViewOfKind:(NSString *)elementKind withReuseIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath; // - (__kindof UICollectionViewCell *)dequeueConfiguredReusableCellWithRegistration:(UICollectionViewCellRegistration*)registration forIndexPath:(NSIndexPath*)indexPath item:(id)item __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (__kindof UICollectionReusableView *)dequeueConfiguredReusableSupplementaryViewWithRegistration:(UICollectionViewSupplementaryRegistration*)registration forIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // @property (nonatomic) BOOL allowsSelection; // @property (nonatomic) BOOL allowsMultipleSelection; // @property (nonatomic, readonly, nullable) NSArray<NSIndexPath *> *indexPathsForSelectedItems; // - (void)selectItemAtIndexPath:(nullable NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UICollectionViewScrollPosition)scrollPosition; // - (void)deselectItemAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated; // @property (nonatomic, readonly) BOOL hasUncommittedUpdates __attribute__((availability(ios,introduced=11.0))); // - (void)reloadData; // - (void)setCollectionViewLayout:(UICollectionViewLayout *)layout animated:(BOOL)animated; // - (void)setCollectionViewLayout:(UICollectionViewLayout *)layout animated:(BOOL)animated completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=7.0))); // - (UICollectionViewTransitionLayout *)startInteractiveTransitionToCollectionViewLayout:(UICollectionViewLayout *)layout completion:(nullable UICollectionViewLayoutInteractiveTransitionCompletion)completion __attribute__((availability(ios,introduced=7.0))); // - (void)finishInteractiveTransition __attribute__((availability(ios,introduced=7.0))); // - (void)cancelInteractiveTransition __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readonly) NSInteger numberOfSections; // - (NSInteger)numberOfItemsInSection:(NSInteger)section; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath; // - (nullable NSIndexPath *)indexPathForItemAtPoint:(CGPoint)point; // - (nullable NSIndexPath *)indexPathForCell:(UICollectionViewCell *)cell; // - (nullable UICollectionViewCell *)cellForItemAtIndexPath:(NSIndexPath *)indexPath; // @property (nonatomic, readonly) NSArray<__kindof UICollectionViewCell *> *visibleCells; // @property (nonatomic, readonly) NSArray<NSIndexPath *> *indexPathsForVisibleItems; // - (nullable UICollectionReusableView *)supplementaryViewForElementKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=9.0))); // - (NSArray<UICollectionReusableView *> *)visibleSupplementaryViewsOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=9.0))); // - (NSArray<NSIndexPath *> *)indexPathsForVisibleSupplementaryElementsOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=9.0))); // - (void)scrollToItemAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UICollectionViewScrollPosition)scrollPosition animated:(BOOL)animated; // - (void)insertSections:(NSIndexSet *)sections; // - (void)deleteSections:(NSIndexSet *)sections; // - (void)reloadSections:(NSIndexSet *)sections; // - (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection; // - (void)insertItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths; // - (void)deleteItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths; // - (void)reloadItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths; // - (void)moveItemAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath; // - (void)performBatchUpdates:(void (__attribute__((noescape)) ^ _Nullable)(void))updates completion:(void (^ _Nullable)(BOOL finished))completion; // - (BOOL)beginInteractiveMovementForItemAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=9.0))); // - (void)updateInteractiveMovementTargetPosition:(CGPoint)targetPosition __attribute__((availability(ios,introduced=9.0))); // - (void)endInteractiveMovement __attribute__((availability(ios,introduced=9.0))); // - (void)cancelInteractiveMovement __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL remembersLastFocusedIndexPath __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL selectionFollowsFocus __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) BOOL hasActiveDrag __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) BOOL hasActiveDrop __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, getter=isEditing) BOOL editing __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL allowsSelectionDuringEditing __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL allowsMultipleSelectionDuringEditing __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); /* @end */ // @interface UICollectionView (UIDragAndDrop) <UISpringLoadedInteractionSupporting> /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICollectionViewDragDelegate <NSObject> /* @required */ // - (NSArray<UIDragItem *> *)collectionView:(UICollectionView *)collectionView itemsForBeginningDragSession:(id<UIDragSession>)session atIndexPath:(NSIndexPath *)indexPath; /* @optional */ // - (NSArray<UIDragItem *> *)collectionView:(UICollectionView *)collectionView itemsForAddingToDragSession:(id<UIDragSession>)session atIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point; // - (nullable UIDragPreviewParameters *)collectionView:(UICollectionView *)collectionView dragPreviewParametersForItemAtIndexPath:(NSIndexPath *)indexPath; // - (void)collectionView:(UICollectionView *)collectionView dragSessionWillBegin:(id<UIDragSession>)session; // - (void)collectionView:(UICollectionView *)collectionView dragSessionDidEnd:(id<UIDragSession>)session; // - (BOOL)collectionView:(UICollectionView *)collectionView dragSessionAllowsMoveOperation:(id<UIDragSession>)session; // - (BOOL)collectionView:(UICollectionView *)collectionView dragSessionIsRestrictedToDraggingApplication:(id<UIDragSession>)session; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICollectionViewDropDelegate <NSObject> /* @required */ // - (void)collectionView:(UICollectionView *)collectionView performDropWithCoordinator:(id<UICollectionViewDropCoordinator>)coordinator; /* @optional */ // - (BOOL)collectionView:(UICollectionView *)collectionView canHandleDropSession:(id<UIDropSession>)session; // - (void)collectionView:(UICollectionView *)collectionView dropSessionDidEnter:(id<UIDropSession>)session; // - (UICollectionViewDropProposal *)collectionView:(UICollectionView *)collectionView dropSessionDidUpdate:(id<UIDropSession>)session withDestinationIndexPath:(nullable NSIndexPath *)destinationIndexPath; // - (void)collectionView:(UICollectionView *)collectionView dropSessionDidExit:(id<UIDropSession>)session; // - (void)collectionView:(UICollectionView *)collectionView dropSessionDidEnd:(id<UIDropSession>)session; // - (nullable UIDragPreviewParameters *)collectionView:(UICollectionView *)collectionView dropPreviewParametersForItemAtIndexPath:(NSIndexPath *)indexPath; /* @end */ typedef NSInteger UICollectionViewDropIntent; enum { UICollectionViewDropIntentUnspecified, UICollectionViewDropIntentInsertAtDestinationIndexPath, UICollectionViewDropIntentInsertIntoDestinationIndexPath, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UICollectionViewDropProposal #define _REWRITER_typedef_UICollectionViewDropProposal typedef struct objc_object UICollectionViewDropProposal; typedef struct {} _objc_exc_UICollectionViewDropProposal; #endif struct UICollectionViewDropProposal_IMPL { struct UIDropProposal_IMPL UIDropProposal_IVARS; }; // - (instancetype)initWithDropOperation:(UIDropOperation)operation intent:(UICollectionViewDropIntent)intent; // @property (nonatomic, readonly) UICollectionViewDropIntent intent; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICollectionViewDropCoordinator <NSObject> // @property (nonatomic, readonly) NSArray<id<UICollectionViewDropItem>> *items; // @property (nonatomic, readonly, nullable) NSIndexPath *destinationIndexPath; // @property (nonatomic, readonly) UICollectionViewDropProposal *proposal; // @property (nonatomic, readonly) id<UIDropSession> session; // - (id<UICollectionViewDropPlaceholderContext>)dropItem:(UIDragItem *)dragItem toPlaceholder:(UICollectionViewDropPlaceholder*)placeholder; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toItemAtIndexPath:(NSIndexPath *)indexPath; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem intoItemAtIndexPath:(NSIndexPath *)indexPath rect:(CGRect)rect; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toTarget:(UIDragPreviewTarget *)target; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UICollectionViewPlaceholder #define _REWRITER_typedef_UICollectionViewPlaceholder typedef struct objc_object UICollectionViewPlaceholder; typedef struct {} _objc_exc_UICollectionViewPlaceholder; #endif struct UICollectionViewPlaceholder_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithInsertionIndexPath:(NSIndexPath*)insertionIndexPath reuseIdentifier:(NSString *)reuseIdentifier __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, nullable, copy) void(^cellUpdateHandler)(__kindof UICollectionViewCell *); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UICollectionViewDropPlaceholder #define _REWRITER_typedef_UICollectionViewDropPlaceholder typedef struct objc_object UICollectionViewDropPlaceholder; typedef struct {} _objc_exc_UICollectionViewDropPlaceholder; #endif struct UICollectionViewDropPlaceholder_IMPL { struct UICollectionViewPlaceholder_IMPL UICollectionViewPlaceholder_IVARS; }; // @property (nonatomic, nullable, copy) UIDragPreviewParameters * _Nullable (^previewParametersProvider)(__kindof UICollectionViewCell *); /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICollectionViewDropItem <NSObject> // @property (nonatomic, readonly) UIDragItem *dragItem; // @property (nonatomic, readonly, nullable) NSIndexPath *sourceIndexPath; // @property (nonatomic, readonly) CGSize previewSize; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICollectionViewDropPlaceholderContext <UIDragAnimating> // @property (nonatomic, readonly) UIDragItem *dragItem; // - (BOOL)commitInsertionWithDataSourceUpdates:(void(__attribute__((noescape)) ^)(NSIndexPath *insertionIndexPath))dataSourceUpdates; // - (BOOL)deletePlaceholder; // - (void)setNeedsCellUpdate; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UICollectionViewLayout; #ifndef _REWRITER_typedef_UICollectionViewLayout #define _REWRITER_typedef_UICollectionViewLayout typedef struct objc_object UICollectionViewLayout; typedef struct {} _objc_exc_UICollectionViewLayout; #endif // @class UICollectionView; #ifndef _REWRITER_typedef_UICollectionView #define _REWRITER_typedef_UICollectionView typedef struct objc_object UICollectionView; typedef struct {} _objc_exc_UICollectionView; #endif // @class UICollectionViewLayoutAttributes; #ifndef _REWRITER_typedef_UICollectionViewLayoutAttributes #define _REWRITER_typedef_UICollectionViewLayoutAttributes typedef struct objc_object UICollectionViewLayoutAttributes; typedef struct {} _objc_exc_UICollectionViewLayoutAttributes; #endif // @class UILongPressGestureRecognizer; #ifndef _REWRITER_typedef_UILongPressGestureRecognizer #define _REWRITER_typedef_UILongPressGestureRecognizer typedef struct objc_object UILongPressGestureRecognizer; typedef struct {} _objc_exc_UILongPressGestureRecognizer; #endif // @class UICellConfigurationState; #ifndef _REWRITER_typedef_UICellConfigurationState #define _REWRITER_typedef_UICellConfigurationState typedef struct objc_object UICellConfigurationState; typedef struct {} _objc_exc_UICellConfigurationState; #endif // @class UIBackgroundConfiguration; #ifndef _REWRITER_typedef_UIBackgroundConfiguration #define _REWRITER_typedef_UIBackgroundConfiguration typedef struct objc_object UIBackgroundConfiguration; typedef struct {} _objc_exc_UIBackgroundConfiguration; #endif // @protocol UIContentConfiguration; typedef NSInteger UICollectionViewCellDragState; enum { UICollectionViewCellDragStateNone, UICollectionViewCellDragStateLifting, UICollectionViewCellDragStateDragging } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionReusableView #define _REWRITER_typedef_UICollectionReusableView typedef struct objc_object UICollectionReusableView; typedef struct {} _objc_exc_UICollectionReusableView; #endif struct UICollectionReusableView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property (nonatomic, readonly, copy, nullable) NSString *reuseIdentifier; // - (void)prepareForReuse __attribute__((objc_requires_super)); // - (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes; // - (void)willTransitionFromLayout:(UICollectionViewLayout *)oldLayout toLayout:(UICollectionViewLayout *)newLayout; // - (void)didTransitionFromLayout:(UICollectionViewLayout *)oldLayout toLayout:(UICollectionViewLayout *)newLayout; // - (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes __attribute__((availability(ios,introduced=8.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewCell #define _REWRITER_typedef_UICollectionViewCell typedef struct objc_object UICollectionViewCell; typedef struct {} _objc_exc_UICollectionViewCell; #endif struct UICollectionViewCell_IMPL { struct UICollectionReusableView_IMPL UICollectionReusableView_IVARS; }; // @property (nonatomic, readonly) UICellConfigurationState *configurationState __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)setNeedsUpdateConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)updateConfigurationUsingState:(UICellConfigurationState *)state __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, copy, nullable) id<UIContentConfiguration> contentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesContentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, readonly) UIView *contentView; // @property (nonatomic, getter=isSelected) BOOL selected; // @property (nonatomic, getter=isHighlighted) BOOL highlighted; // - (void)dragStateDidChange:(UICollectionViewCellDragState)dragState __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, copy, nullable) UIBackgroundConfiguration *backgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesBackgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, strong, nullable) UIView *backgroundView; // @property (nonatomic, strong, nullable) UIView *selectedBackgroundView; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UICollectionViewLayout; #ifndef _REWRITER_typedef_UICollectionViewLayout #define _REWRITER_typedef_UICollectionViewLayout typedef struct objc_object UICollectionViewLayout; typedef struct {} _objc_exc_UICollectionViewLayout; #endif // @class UICollectionViewController; #ifndef _REWRITER_typedef_UICollectionViewController #define _REWRITER_typedef_UICollectionViewController typedef struct objc_object UICollectionViewController; typedef struct {} _objc_exc_UICollectionViewController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewController #define _REWRITER_typedef_UICollectionViewController typedef struct objc_object UICollectionViewController; typedef struct {} _objc_exc_UICollectionViewController; #endif struct UICollectionViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (null_resettable, nonatomic, strong) __kindof UICollectionView *collectionView; // @property (nonatomic) BOOL clearsSelectionOnViewWillAppear; // @property (nonatomic, assign) BOOL useLayoutToLayoutNavigationTransitions __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readonly) UICollectionViewLayout *collectionViewLayout __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) BOOL installsStandardGestureForInteractiveMovement __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSString *const UICollectionElementKindSectionHeader __attribute__((availability(ios,introduced=6.0))); extern "C" __attribute__((visibility ("default"))) NSString *const UICollectionElementKindSectionFooter __attribute__((availability(ios,introduced=6.0))); typedef NSInteger UICollectionViewScrollDirection; enum { UICollectionViewScrollDirectionVertical, UICollectionViewScrollDirectionHorizontal }; typedef NSUInteger UICollectionElementCategory; enum { UICollectionElementCategoryCell, UICollectionElementCategorySupplementaryView, UICollectionElementCategoryDecorationView }; // @class UICollectionViewLayoutAttributes; #ifndef _REWRITER_typedef_UICollectionViewLayoutAttributes #define _REWRITER_typedef_UICollectionViewLayoutAttributes typedef struct objc_object UICollectionViewLayoutAttributes; typedef struct {} _objc_exc_UICollectionViewLayoutAttributes; #endif // @class UICollectionView; #ifndef _REWRITER_typedef_UICollectionView #define _REWRITER_typedef_UICollectionView typedef struct objc_object UICollectionView; typedef struct {} _objc_exc_UICollectionView; #endif // @class UINib; #ifndef _REWRITER_typedef_UINib #define _REWRITER_typedef_UINib typedef struct objc_object UINib; typedef struct {} _objc_exc_UINib; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewLayoutAttributes #define _REWRITER_typedef_UICollectionViewLayoutAttributes typedef struct objc_object UICollectionViewLayoutAttributes; typedef struct {} _objc_exc_UICollectionViewLayoutAttributes; #endif struct UICollectionViewLayoutAttributes_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic) CGRect frame; // @property (nonatomic) CGPoint center; // @property (nonatomic) CGSize size; // @property (nonatomic) CATransform3D transform3D; // @property (nonatomic) CGRect bounds __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGAffineTransform transform __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat alpha; // @property (nonatomic) NSInteger zIndex; // @property (nonatomic, getter=isHidden) BOOL hidden; // @property (nonatomic, strong) NSIndexPath *indexPath; // @property (nonatomic, readonly) UICollectionElementCategory representedElementCategory; // @property (nonatomic, readonly, nullable) NSString *representedElementKind; // + (instancetype)layoutAttributesForCellWithIndexPath:(NSIndexPath *)indexPath; // + (instancetype)layoutAttributesForSupplementaryViewOfKind:(NSString *)elementKind withIndexPath:(NSIndexPath *)indexPath; // + (instancetype)layoutAttributesForDecorationViewOfKind:(NSString *)decorationViewKind withIndexPath:(NSIndexPath *)indexPath; /* @end */ typedef NSInteger UICollectionUpdateAction; enum { UICollectionUpdateActionInsert, UICollectionUpdateActionDelete, UICollectionUpdateActionReload, UICollectionUpdateActionMove, UICollectionUpdateActionNone }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewUpdateItem #define _REWRITER_typedef_UICollectionViewUpdateItem typedef struct objc_object UICollectionViewUpdateItem; typedef struct {} _objc_exc_UICollectionViewUpdateItem; #endif struct UICollectionViewUpdateItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly, nullable) NSIndexPath *indexPathBeforeUpdate; // @property (nonatomic, readonly, nullable) NSIndexPath *indexPathAfterUpdate; // @property (nonatomic, readonly) UICollectionUpdateAction updateAction; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UICollectionViewLayoutInvalidationContext #define _REWRITER_typedef_UICollectionViewLayoutInvalidationContext typedef struct objc_object UICollectionViewLayoutInvalidationContext; typedef struct {} _objc_exc_UICollectionViewLayoutInvalidationContext; #endif struct UICollectionViewLayoutInvalidationContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) BOOL invalidateEverything; // @property (nonatomic, readonly) BOOL invalidateDataSourceCounts; // - (void)invalidateItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths __attribute__((availability(ios,introduced=8.0))); // - (void)invalidateSupplementaryElementsOfKind:(NSString *)elementKind atIndexPaths:(NSArray<NSIndexPath *> *)indexPaths __attribute__((availability(ios,introduced=8.0))); // - (void)invalidateDecorationElementsOfKind:(NSString *)elementKind atIndexPaths:(NSArray<NSIndexPath *> *)indexPaths __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly, nullable) NSArray<NSIndexPath *> *invalidatedItemIndexPaths __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSArray<NSIndexPath *> *> *invalidatedSupplementaryIndexPaths __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSArray<NSIndexPath *> *> *invalidatedDecorationIndexPaths __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) CGPoint contentOffsetAdjustment __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) CGSize contentSizeAdjustment __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly, copy, nullable) NSArray<NSIndexPath *> *previousIndexPathsForInteractivelyMovingItems __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly, copy, nullable) NSArray<NSIndexPath *> *targetIndexPathsForInteractivelyMovingItems __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly) CGPoint interactiveMovementTarget __attribute__((availability(ios,introduced=9.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewLayout #define _REWRITER_typedef_UICollectionViewLayout typedef struct objc_object UICollectionViewLayout; typedef struct {} _objc_exc_UICollectionViewLayout; #endif struct UICollectionViewLayout_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nullable, nonatomic, readonly) UICollectionView *collectionView; // - (void)invalidateLayout; // - (void)invalidateLayoutWithContext:(UICollectionViewLayoutInvalidationContext *)context __attribute__((availability(ios,introduced=7.0))); // - (void)registerClass:(nullable Class)viewClass forDecorationViewOfKind:(NSString *)elementKind; // - (void)registerNib:(nullable UINib *)nib forDecorationViewOfKind:(NSString *)elementKind; /* @end */ // @interface UICollectionViewLayout (UISubclassingHooks) @property(class, nonatomic, readonly) Class layoutAttributesClass; @property(class, nonatomic, readonly) Class invalidationContextClass __attribute__((availability(ios,introduced=7.0))); // - (void)prepareLayout; // - (nullable NSArray<__kindof UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(CGRect)rect; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForDecorationViewOfKind:(NSString*)elementKind atIndexPath:(NSIndexPath *)indexPath; // - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds; // - (UICollectionViewLayoutInvalidationContext *)invalidationContextForBoundsChange:(CGRect)newBounds __attribute__((availability(ios,introduced=7.0))); // - (BOOL)shouldInvalidateLayoutForPreferredLayoutAttributes:(UICollectionViewLayoutAttributes *)preferredAttributes withOriginalAttributes:(UICollectionViewLayoutAttributes *)originalAttributes __attribute__((availability(ios,introduced=8.0))); // - (UICollectionViewLayoutInvalidationContext *)invalidationContextForPreferredLayoutAttributes:(UICollectionViewLayoutAttributes *)preferredAttributes withOriginalAttributes:(UICollectionViewLayoutAttributes *)originalAttributes __attribute__((availability(ios,introduced=8.0))); // - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity; // - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly) CGSize collectionViewContentSize; // @property (nonatomic, readonly) UIUserInterfaceLayoutDirection developmentLayoutDirection; // @property(nonatomic, readonly) BOOL flipsHorizontallyInOppositeLayoutDirection; /* @end */ // @interface UICollectionViewLayout (UIUpdateSupportHooks) // - (void)prepareForCollectionViewUpdates:(NSArray<UICollectionViewUpdateItem *> *)updateItems; // - (void)finalizeCollectionViewUpdates; // - (void)prepareForAnimatedBoundsChange:(CGRect)oldBounds; // - (void)finalizeAnimatedBoundsChange; // - (void)prepareForTransitionToLayout:(UICollectionViewLayout *)newLayout __attribute__((availability(ios,introduced=7.0))); // - (void)prepareForTransitionFromLayout:(UICollectionViewLayout *)oldLayout __attribute__((availability(ios,introduced=7.0))); // - (void)finalizeLayoutTransition __attribute__((availability(ios,introduced=7.0))); // - (nullable UICollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingItemAtIndexPath:(NSIndexPath *)itemIndexPath; // - (nullable UICollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingItemAtIndexPath:(NSIndexPath *)itemIndexPath; // - (nullable UICollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingSupplementaryElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)elementIndexPath; // - (nullable UICollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingSupplementaryElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)elementIndexPath; // - (nullable UICollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingDecorationElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)decorationIndexPath; // - (nullable UICollectionViewLayoutAttributes *)finalLayoutAttributesForDisappearingDecorationElementOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)decorationIndexPath; // - (NSArray<NSIndexPath *> *)indexPathsToDeleteForSupplementaryViewOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=7.0))); // - (NSArray<NSIndexPath *> *)indexPathsToDeleteForDecorationViewOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=7.0))); // - (NSArray<NSIndexPath *> *)indexPathsToInsertForSupplementaryViewOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=7.0))); // - (NSArray<NSIndexPath *> *)indexPathsToInsertForDecorationViewOfKind:(NSString *)elementKind __attribute__((availability(ios,introduced=7.0))); /* @end */ // @interface UICollectionViewLayout (UIReorderingSupportHooks) // - (NSIndexPath *)targetIndexPathForInteractivelyMovingItem:(NSIndexPath *)previousIndexPath withPosition:(CGPoint)position __attribute__((availability(ios,introduced=9.0))); // - (UICollectionViewLayoutAttributes *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath *)indexPath withTargetPosition:(CGPoint)position __attribute__((availability(ios,introduced=9.0))); // - (UICollectionViewLayoutInvalidationContext *)invalidationContextForInteractivelyMovingItems:(NSArray<NSIndexPath *> *)targetIndexPaths withTargetPosition:(CGPoint)targetPosition previousIndexPaths:(NSArray<NSIndexPath *> *)previousIndexPaths previousPosition:(CGPoint)previousPosition __attribute__((availability(ios,introduced=9.0))); // - (UICollectionViewLayoutInvalidationContext *)invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPaths:(NSArray<NSIndexPath *> *)indexPaths previousIndexPaths:(NSArray<NSIndexPath *> *)previousIndexPaths movementCancelled:(BOOL)movementCancelled __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) const CGSize UICollectionViewFlowLayoutAutomaticSize __attribute__((availability(ios,introduced=10.0))); typedef NSInteger UICollectionViewFlowLayoutSectionInsetReference; enum { UICollectionViewFlowLayoutSectionInsetFromContentInset, UICollectionViewFlowLayoutSectionInsetFromSafeArea, UICollectionViewFlowLayoutSectionInsetFromLayoutMargins } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UICollectionViewFlowLayoutInvalidationContext #define _REWRITER_typedef_UICollectionViewFlowLayoutInvalidationContext typedef struct objc_object UICollectionViewFlowLayoutInvalidationContext; typedef struct {} _objc_exc_UICollectionViewFlowLayoutInvalidationContext; #endif struct UICollectionViewFlowLayoutInvalidationContext_IMPL { struct UICollectionViewLayoutInvalidationContext_IMPL UICollectionViewLayoutInvalidationContext_IVARS; }; // @property (nonatomic) BOOL invalidateFlowLayoutDelegateMetrics; // @property (nonatomic) BOOL invalidateFlowLayoutAttributes; /* @end */ // @protocol UICollectionViewDelegateFlowLayout <UICollectionViewDelegate> /* @optional */ // - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath; // - (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section; // - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section; // - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section; // - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section; // - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewFlowLayout #define _REWRITER_typedef_UICollectionViewFlowLayout typedef struct objc_object UICollectionViewFlowLayout; typedef struct {} _objc_exc_UICollectionViewFlowLayout; #endif struct UICollectionViewFlowLayout_IMPL { struct UICollectionViewLayout_IMPL UICollectionViewLayout_IVARS; }; // @property (nonatomic) CGFloat minimumLineSpacing; // @property (nonatomic) CGFloat minimumInteritemSpacing; // @property (nonatomic) CGSize itemSize; // @property (nonatomic) CGSize estimatedItemSize __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) UICollectionViewScrollDirection scrollDirection; // @property (nonatomic) CGSize headerReferenceSize; // @property (nonatomic) CGSize footerReferenceSize; // @property (nonatomic) UIEdgeInsets sectionInset; // @property (nonatomic) UICollectionViewFlowLayoutSectionInsetReference sectionInsetReference __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) BOOL sectionHeadersPinToVisibleBounds __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL sectionFootersPinToVisibleBounds __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UICollectionViewTransitionLayout #define _REWRITER_typedef_UICollectionViewTransitionLayout typedef struct objc_object UICollectionViewTransitionLayout; typedef struct {} _objc_exc_UICollectionViewTransitionLayout; #endif struct UICollectionViewTransitionLayout_IMPL { struct UICollectionViewLayout_IMPL UICollectionViewLayout_IVARS; }; // @property (assign, nonatomic) CGFloat transitionProgress; // @property (readonly, nonatomic) UICollectionViewLayout *currentLayout; // @property (readonly, nonatomic) UICollectionViewLayout *nextLayout; // - (instancetype)initWithCurrentLayout:(UICollectionViewLayout *)currentLayout nextLayout:(UICollectionViewLayout *)newLayout __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // - (void)updateValue:(CGFloat)value forAnimatedKey:(NSString *)key; // - (CGFloat)valueForAnimatedKey:(NSString *)key; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSCollectionLayoutSection; #ifndef _REWRITER_typedef_NSCollectionLayoutSection #define _REWRITER_typedef_NSCollectionLayoutSection typedef struct objc_object NSCollectionLayoutSection; typedef struct {} _objc_exc_NSCollectionLayoutSection; #endif // @class NSCollectionLayoutGroup; #ifndef _REWRITER_typedef_NSCollectionLayoutGroup #define _REWRITER_typedef_NSCollectionLayoutGroup typedef struct objc_object NSCollectionLayoutGroup; typedef struct {} _objc_exc_NSCollectionLayoutGroup; #endif // @class NSCollectionLayoutItem; #ifndef _REWRITER_typedef_NSCollectionLayoutItem #define _REWRITER_typedef_NSCollectionLayoutItem typedef struct objc_object NSCollectionLayoutItem; typedef struct {} _objc_exc_NSCollectionLayoutItem; #endif // @class NSCollectionLayoutSupplementaryItem; #ifndef _REWRITER_typedef_NSCollectionLayoutSupplementaryItem #define _REWRITER_typedef_NSCollectionLayoutSupplementaryItem typedef struct objc_object NSCollectionLayoutSupplementaryItem; typedef struct {} _objc_exc_NSCollectionLayoutSupplementaryItem; #endif // @class NSCollectionLayoutBoundarySupplementaryItem; #ifndef _REWRITER_typedef_NSCollectionLayoutBoundarySupplementaryItem #define _REWRITER_typedef_NSCollectionLayoutBoundarySupplementaryItem typedef struct objc_object NSCollectionLayoutBoundarySupplementaryItem; typedef struct {} _objc_exc_NSCollectionLayoutBoundarySupplementaryItem; #endif // @class NSCollectionLayoutDecorationItem; #ifndef _REWRITER_typedef_NSCollectionLayoutDecorationItem #define _REWRITER_typedef_NSCollectionLayoutDecorationItem typedef struct objc_object NSCollectionLayoutDecorationItem; typedef struct {} _objc_exc_NSCollectionLayoutDecorationItem; #endif // @class NSCollectionLayoutSize; #ifndef _REWRITER_typedef_NSCollectionLayoutSize #define _REWRITER_typedef_NSCollectionLayoutSize typedef struct objc_object NSCollectionLayoutSize; typedef struct {} _objc_exc_NSCollectionLayoutSize; #endif // @class NSCollectionLayoutDimension; #ifndef _REWRITER_typedef_NSCollectionLayoutDimension #define _REWRITER_typedef_NSCollectionLayoutDimension typedef struct objc_object NSCollectionLayoutDimension; typedef struct {} _objc_exc_NSCollectionLayoutDimension; #endif // @class NSCollectionLayoutSpacing; #ifndef _REWRITER_typedef_NSCollectionLayoutSpacing #define _REWRITER_typedef_NSCollectionLayoutSpacing typedef struct objc_object NSCollectionLayoutSpacing; typedef struct {} _objc_exc_NSCollectionLayoutSpacing; #endif // @class NSCollectionLayoutEdgeSpacing; #ifndef _REWRITER_typedef_NSCollectionLayoutEdgeSpacing #define _REWRITER_typedef_NSCollectionLayoutEdgeSpacing typedef struct objc_object NSCollectionLayoutEdgeSpacing; typedef struct {} _objc_exc_NSCollectionLayoutEdgeSpacing; #endif // @class NSCollectionLayoutAnchor; #ifndef _REWRITER_typedef_NSCollectionLayoutAnchor #define _REWRITER_typedef_NSCollectionLayoutAnchor typedef struct objc_object NSCollectionLayoutAnchor; typedef struct {} _objc_exc_NSCollectionLayoutAnchor; #endif // @protocol NSCollectionLayoutEnvironment; // @protocol NSCollectionLayoutContainer; // @protocol NSCollectionLayoutVisibleItem; typedef NSInteger UIContentInsetsReference; enum { UIContentInsetsReferenceAutomatic, UIContentInsetsReferenceNone, UIContentInsetsReferenceSafeArea, UIContentInsetsReferenceLayoutMargins, UIContentInsetsReferenceReadableContent, } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewCompositionalLayoutConfiguration #define _REWRITER_typedef_UICollectionViewCompositionalLayoutConfiguration typedef struct objc_object UICollectionViewCompositionalLayoutConfiguration; typedef struct {} _objc_exc_UICollectionViewCompositionalLayoutConfiguration; #endif struct UICollectionViewCompositionalLayoutConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic) UICollectionViewScrollDirection scrollDirection; // @property(nonatomic) CGFloat interSectionSpacing; // @property(nonatomic,copy) NSArray<NSCollectionLayoutBoundarySupplementaryItem*> *boundarySupplementaryItems; // @property(nonatomic) UIContentInsetsReference contentInsetsReference __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); /* @end */ typedef NSCollectionLayoutSection * _Nullable (*UICollectionViewCompositionalLayoutSectionProvider)(NSInteger section, id/*<NSCollectionLayoutEnvironment>*/); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewCompositionalLayout #define _REWRITER_typedef_UICollectionViewCompositionalLayout typedef struct objc_object UICollectionViewCompositionalLayout; typedef struct {} _objc_exc_UICollectionViewCompositionalLayout; #endif struct UICollectionViewCompositionalLayout_IMPL { struct UICollectionViewLayout_IMPL UICollectionViewLayout_IVARS; }; // - (instancetype)initWithSection:(NSCollectionLayoutSection*)section; // - (instancetype)initWithSection:(NSCollectionLayoutSection*)section configuration:(UICollectionViewCompositionalLayoutConfiguration*)configuration; // - (instancetype)initWithSectionProvider:(UICollectionViewCompositionalLayoutSectionProvider)sectionProvider; // - (instancetype)initWithSectionProvider:(UICollectionViewCompositionalLayoutSectionProvider)sectionProvider configuration:(UICollectionViewCompositionalLayoutConfiguration*)configuration; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,copy) UICollectionViewCompositionalLayoutConfiguration *configuration; /* @end */ typedef NSInteger UICollectionLayoutSectionOrthogonalScrollingBehavior; enum { UICollectionLayoutSectionOrthogonalScrollingBehaviorNone, UICollectionLayoutSectionOrthogonalScrollingBehaviorContinuous, UICollectionLayoutSectionOrthogonalScrollingBehaviorContinuousGroupLeadingBoundary, UICollectionLayoutSectionOrthogonalScrollingBehaviorPaging, UICollectionLayoutSectionOrthogonalScrollingBehaviorGroupPaging, UICollectionLayoutSectionOrthogonalScrollingBehaviorGroupPagingCentered, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))); typedef void (*NSCollectionLayoutSectionVisibleItemsInvalidationHandler)(NSArray/*<id<NSCollectionLayoutVisibleItem>*/> *visibleItems, CGPoint contentOffset, id/*<NSCollectionLayoutEnvironment>*/ layoutEnvironment); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutSection #define _REWRITER_typedef_NSCollectionLayoutSection typedef struct objc_object NSCollectionLayoutSection; typedef struct {} _objc_exc_NSCollectionLayoutSection; #endif struct NSCollectionLayoutSection_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)sectionWithGroup:(NSCollectionLayoutGroup*)group; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic) NSDirectionalEdgeInsets contentInsets; // @property(nonatomic) CGFloat interGroupSpacing; // @property(nonatomic) UIContentInsetsReference contentInsetsReference __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property(nonatomic) UICollectionLayoutSectionOrthogonalScrollingBehavior orthogonalScrollingBehavior; // @property(nonatomic,copy) NSArray<NSCollectionLayoutBoundarySupplementaryItem*> *boundarySupplementaryItems; // @property(nonatomic) BOOL supplementariesFollowContentInsets; // @property(nonatomic,copy,nullable) NSCollectionLayoutSectionVisibleItemsInvalidationHandler visibleItemsInvalidationHandler; // @property(nonatomic,copy) NSArray<NSCollectionLayoutDecorationItem*> *decorationItems; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutItem #define _REWRITER_typedef_NSCollectionLayoutItem typedef struct objc_object NSCollectionLayoutItem; typedef struct {} _objc_exc_NSCollectionLayoutItem; #endif struct NSCollectionLayoutItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize; // + (instancetype)itemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize supplementaryItems:(NSArray<NSCollectionLayoutSupplementaryItem*>*)supplementaryItems; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic) NSDirectionalEdgeInsets contentInsets; // @property(nonatomic,copy,nullable) NSCollectionLayoutEdgeSpacing *edgeSpacing; // @property(nonatomic,readonly) NSCollectionLayoutSize *layoutSize; // @property(nonatomic,readonly) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutGroupCustomItem #define _REWRITER_typedef_NSCollectionLayoutGroupCustomItem typedef struct objc_object NSCollectionLayoutGroupCustomItem; typedef struct {} _objc_exc_NSCollectionLayoutGroupCustomItem; #endif struct NSCollectionLayoutGroupCustomItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)customItemWithFrame:(CGRect)frame; // + (instancetype)customItemWithFrame:(CGRect)frame zIndex:(NSInteger)zIndex; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly) CGRect frame; // @property(nonatomic,readonly) NSInteger zIndex; /* @end */ typedef NSArray<NSCollectionLayoutGroupCustomItem*> * _Nonnull(*NSCollectionLayoutGroupCustomItemProvider)(id/*<NSCollectionLayoutEnvironment>*/ layoutEnvironment); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutGroup #define _REWRITER_typedef_NSCollectionLayoutGroup typedef struct objc_object NSCollectionLayoutGroup; typedef struct {} _objc_exc_NSCollectionLayoutGroup; #endif struct NSCollectionLayoutGroup_IMPL { struct NSCollectionLayoutItem_IMPL NSCollectionLayoutItem_IVARS; }; // + (instancetype)horizontalGroupWithLayoutSize:(NSCollectionLayoutSize*)layoutSize subitem:(NSCollectionLayoutItem*)subitem count:(NSInteger)count; // + (instancetype)horizontalGroupWithLayoutSize:(NSCollectionLayoutSize*)layoutSize subitems:(NSArray<NSCollectionLayoutItem*>*)subitems; // + (instancetype)verticalGroupWithLayoutSize:(NSCollectionLayoutSize*)layoutSize subitem:(NSCollectionLayoutItem*)subitem count:(NSInteger)count; // + (instancetype)verticalGroupWithLayoutSize:(NSCollectionLayoutSize*)layoutSize subitems:(NSArray<NSCollectionLayoutItem*>*)subitems; // + (instancetype)customGroupWithLayoutSize:(NSCollectionLayoutSize*)layoutSize itemProvider:(NSCollectionLayoutGroupCustomItemProvider)itemProvider; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,copy) NSArray<NSCollectionLayoutSupplementaryItem*> *supplementaryItems; // @property(nonatomic,copy,nullable) NSCollectionLayoutSpacing *interItemSpacing; // @property(nonatomic,readonly) NSArray<NSCollectionLayoutItem*> *subitems; // - (NSString*)visualDescription; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutDimension #define _REWRITER_typedef_NSCollectionLayoutDimension typedef struct objc_object NSCollectionLayoutDimension; typedef struct {} _objc_exc_NSCollectionLayoutDimension; #endif struct NSCollectionLayoutDimension_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)fractionalWidthDimension:(CGFloat)fractionalWidth; // + (instancetype)fractionalHeightDimension:(CGFloat)fractionalHeight; // + (instancetype)absoluteDimension:(CGFloat)absoluteDimension; // + (instancetype)estimatedDimension:(CGFloat)estimatedDimension; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly) BOOL isFractionalWidth; // @property(nonatomic,readonly) BOOL isFractionalHeight; // @property(nonatomic,readonly) BOOL isAbsolute; // @property(nonatomic,readonly) BOOL isEstimated; // @property(nonatomic,readonly) CGFloat dimension; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutSize #define _REWRITER_typedef_NSCollectionLayoutSize typedef struct objc_object NSCollectionLayoutSize; typedef struct {} _objc_exc_NSCollectionLayoutSize; #endif struct NSCollectionLayoutSize_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)sizeWithWidthDimension:(NSCollectionLayoutDimension*)width heightDimension:(NSCollectionLayoutDimension*)height; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly) NSCollectionLayoutDimension *widthDimension; // @property(nonatomic,readonly) NSCollectionLayoutDimension *heightDimension; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutSpacing #define _REWRITER_typedef_NSCollectionLayoutSpacing typedef struct objc_object NSCollectionLayoutSpacing; typedef struct {} _objc_exc_NSCollectionLayoutSpacing; #endif struct NSCollectionLayoutSpacing_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)flexibleSpacing:(CGFloat)flexibleSpacing; // + (instancetype)fixedSpacing:(CGFloat)fixedSpacing; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly) CGFloat spacing; // @property(nonatomic,readonly) BOOL isFlexibleSpacing; // @property(nonatomic,readonly) BOOL isFixedSpacing; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutEdgeSpacing #define _REWRITER_typedef_NSCollectionLayoutEdgeSpacing typedef struct objc_object NSCollectionLayoutEdgeSpacing; typedef struct {} _objc_exc_NSCollectionLayoutEdgeSpacing; #endif struct NSCollectionLayoutEdgeSpacing_IMPL { struct NSObject_IMPL NSObject_IVARS; }; #if 0 + (instancetype)spacingForLeading:(nullable NSCollectionLayoutSpacing *)leading top:(nullable NSCollectionLayoutSpacing *)top trailing:(nullable NSCollectionLayoutSpacing *)trailing bottom:(nullable NSCollectionLayoutSpacing *)bottom; #endif // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly,nullable) NSCollectionLayoutSpacing *leading; // @property(nonatomic,readonly,nullable) NSCollectionLayoutSpacing *top; // @property(nonatomic,readonly,nullable) NSCollectionLayoutSpacing *trailing; // @property(nonatomic,readonly,nullable) NSCollectionLayoutSpacing *bottom; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutSupplementaryItem #define _REWRITER_typedef_NSCollectionLayoutSupplementaryItem typedef struct objc_object NSCollectionLayoutSupplementaryItem; typedef struct {} _objc_exc_NSCollectionLayoutSupplementaryItem; #endif struct NSCollectionLayoutSupplementaryItem_IMPL { struct NSCollectionLayoutItem_IMPL NSCollectionLayoutItem_IVARS; }; // + (instancetype)supplementaryItemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize elementKind:(NSString*)elementKind containerAnchor:(NSCollectionLayoutAnchor*)containerAnchor; // + (instancetype)supplementaryItemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize elementKind:(NSString*)elementKind containerAnchor:(NSCollectionLayoutAnchor*)containerAnchor itemAnchor:(NSCollectionLayoutAnchor*)itemAnchor; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic) NSInteger zIndex; // @property(nonatomic,readonly) NSString *elementKind; // @property(nonatomic,readonly) NSCollectionLayoutAnchor *containerAnchor; // @property(nonatomic,readonly,nullable) NSCollectionLayoutAnchor *itemAnchor; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutBoundarySupplementaryItem #define _REWRITER_typedef_NSCollectionLayoutBoundarySupplementaryItem typedef struct objc_object NSCollectionLayoutBoundarySupplementaryItem; typedef struct {} _objc_exc_NSCollectionLayoutBoundarySupplementaryItem; #endif struct NSCollectionLayoutBoundarySupplementaryItem_IMPL { struct NSCollectionLayoutSupplementaryItem_IMPL NSCollectionLayoutSupplementaryItem_IVARS; }; // + (instancetype)boundarySupplementaryItemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize elementKind:(NSString*)elementKind alignment:(NSRectAlignment)alignment; // + (instancetype)boundarySupplementaryItemWithLayoutSize:(NSCollectionLayoutSize*)layoutSize elementKind:(NSString*)elementKind alignment:(NSRectAlignment)alignment absoluteOffset:(CGPoint)absoluteOffset; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic) BOOL extendsBoundary; // @property(nonatomic) BOOL pinToVisibleBounds; // @property(nonatomic,readonly) NSRectAlignment alignment; // @property(nonatomic,readonly) CGPoint offset; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutDecorationItem #define _REWRITER_typedef_NSCollectionLayoutDecorationItem typedef struct objc_object NSCollectionLayoutDecorationItem; typedef struct {} _objc_exc_NSCollectionLayoutDecorationItem; #endif struct NSCollectionLayoutDecorationItem_IMPL { struct NSCollectionLayoutItem_IMPL NSCollectionLayoutItem_IVARS; }; // + (instancetype)backgroundDecorationItemWithElementKind:(NSString*)elementKind; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic) NSInteger zIndex; // @property(nonatomic,readonly) NSString *elementKind; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSCollectionLayoutAnchor #define _REWRITER_typedef_NSCollectionLayoutAnchor typedef struct objc_object NSCollectionLayoutAnchor; typedef struct {} _objc_exc_NSCollectionLayoutAnchor; #endif struct NSCollectionLayoutAnchor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)layoutAnchorWithEdges:(NSDirectionalRectEdge)edges; // + (instancetype)layoutAnchorWithEdges:(NSDirectionalRectEdge)edges absoluteOffset:(CGPoint)absoluteOffset; // + (instancetype)layoutAnchorWithEdges:(NSDirectionalRectEdge)edges fractionalOffset:(CGPoint)fractionalOffset; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,readonly) NSDirectionalRectEdge edges; // @property(nonatomic,readonly) CGPoint offset; // @property(nonatomic,readonly) BOOL isAbsoluteOffset; // @property(nonatomic,readonly) BOOL isFractionalOffset; /* @end */ __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) // @protocol NSCollectionLayoutContainer<NSObject> // @property(nonatomic,readonly) CGSize contentSize; // @property(nonatomic,readonly) CGSize effectiveContentSize; // @property(nonatomic,readonly) NSDirectionalEdgeInsets contentInsets; // @property(nonatomic,readonly) NSDirectionalEdgeInsets effectiveContentInsets; /* @end */ __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) // @protocol NSCollectionLayoutEnvironment<NSObject> // @property(nonatomic,readonly) id<NSCollectionLayoutContainer> container; // @property(nonatomic,readonly) UITraitCollection *traitCollection; /* @end */ __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) // @protocol NSCollectionLayoutVisibleItem<NSObject,UIDynamicItem> // @property(nonatomic) CGFloat alpha; // @property(nonatomic) NSInteger zIndex; // @property(nonatomic, getter=isHidden) BOOL hidden; // @property(nonatomic) CGPoint center; // @property(nonatomic) CGAffineTransform transform; // @property(nonatomic) CATransform3D transform3D; // @property(nonatomic,readonly) NSString *name; // @property(nonatomic,readonly) NSIndexPath *indexPath; // @property(nonatomic,readonly) CGRect frame; // @property(nonatomic,readonly) CGRect bounds; // @property(nonatomic,readonly) UICollectionElementCategory representedElementCategory; // @property(nonatomic,readonly,nullable) NSString *representedElementKind; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif // @class UIFont; #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif typedef NSInteger UICellAccessoryDisplayedState; enum { UICellAccessoryDisplayedAlways, UICellAccessoryDisplayedWhenEditing, UICellAccessoryDisplayedWhenNotEditing } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) const CGFloat UICellAccessoryStandardDimension __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessory #define _REWRITER_typedef_UICellAccessory typedef struct objc_object UICellAccessory; typedef struct {} _objc_exc_UICellAccessory; #endif struct UICellAccessory_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic) UICellAccessoryDisplayedState displayedState; // @property (nonatomic, getter=isHidden) BOOL hidden; // @property (nonatomic) CGFloat reservedLayoutWidth; // @property (nonatomic, strong, nullable) UIColor *tintColor; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((objc_designated_initializer)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryDisclosureIndicator #define _REWRITER_typedef_UICellAccessoryDisclosureIndicator typedef struct objc_object UICellAccessoryDisclosureIndicator; typedef struct {} _objc_exc_UICellAccessoryDisclosureIndicator; #endif struct UICellAccessoryDisclosureIndicator_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryCheckmark #define _REWRITER_typedef_UICellAccessoryCheckmark typedef struct objc_object UICellAccessoryCheckmark; typedef struct {} _objc_exc_UICellAccessoryCheckmark; #endif struct UICellAccessoryCheckmark_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryDelete #define _REWRITER_typedef_UICellAccessoryDelete typedef struct objc_object UICellAccessoryDelete; typedef struct {} _objc_exc_UICellAccessoryDelete; #endif struct UICellAccessoryDelete_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // @property (nonatomic, strong, nullable) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) void (^actionHandler)(void); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryInsert #define _REWRITER_typedef_UICellAccessoryInsert typedef struct objc_object UICellAccessoryInsert; typedef struct {} _objc_exc_UICellAccessoryInsert; #endif struct UICellAccessoryInsert_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // @property (nonatomic, strong, nullable) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) void (^actionHandler)(void); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryReorder #define _REWRITER_typedef_UICellAccessoryReorder typedef struct objc_object UICellAccessoryReorder; typedef struct {} _objc_exc_UICellAccessoryReorder; #endif struct UICellAccessoryReorder_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // @property (nonatomic) BOOL showsVerticalSeparator; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryMultiselect #define _REWRITER_typedef_UICellAccessoryMultiselect typedef struct objc_object UICellAccessoryMultiselect; typedef struct {} _objc_exc_UICellAccessoryMultiselect; #endif struct UICellAccessoryMultiselect_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // @property (nonatomic, strong, nullable) UIColor *backgroundColor; /* @end */ typedef NSInteger UICellAccessoryOutlineDisclosureStyle; enum { UICellAccessoryOutlineDisclosureStyleAutomatic, UICellAccessoryOutlineDisclosureStyleHeader, UICellAccessoryOutlineDisclosureStyleCell } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UICellAccessoryOutlineDisclosure #define _REWRITER_typedef_UICellAccessoryOutlineDisclosure typedef struct objc_object UICellAccessoryOutlineDisclosure; typedef struct {} _objc_exc_UICellAccessoryOutlineDisclosure; #endif struct UICellAccessoryOutlineDisclosure_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // @property (nonatomic) UICellAccessoryOutlineDisclosureStyle style; // @property (nonatomic, copy, nullable) void (^actionHandler)(void); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryLabel #define _REWRITER_typedef_UICellAccessoryLabel typedef struct objc_object UICellAccessoryLabel; typedef struct {} _objc_exc_UICellAccessoryLabel; #endif struct UICellAccessoryLabel_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // - (instancetype)initWithText:(NSString *)text __attribute__((objc_designated_initializer)); // @property (nonatomic, copy, readonly) NSString *text; // @property (nonatomic, strong) UIFont *font; // @property (nonatomic) BOOL adjustsFontForContentSizeCategory; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ typedef NSInteger UICellAccessoryPlacement; enum { UICellAccessoryPlacementLeading, UICellAccessoryPlacementTrailing } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); typedef NSUInteger (*UICellAccessoryPosition)(NSArray<__kindof UICellAccessory *> *accessories) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UICellAccessoryPosition UICellAccessoryPositionBeforeAccessoryOfClass(Class accessoryClass) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UICellAccessoryPosition UICellAccessoryPositionAfterAccessoryOfClass(Class accessoryClass) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellAccessoryCustomView #define _REWRITER_typedef_UICellAccessoryCustomView typedef struct objc_object UICellAccessoryCustomView; typedef struct {} _objc_exc_UICellAccessoryCustomView; #endif struct UICellAccessoryCustomView_IMPL { struct UICellAccessory_IMPL UICellAccessory_IVARS; }; // - (instancetype)initWithCustomView:(UIView *)customView placement:(UICellAccessoryPlacement)placement __attribute__((objc_designated_initializer)); // @property (nonatomic, strong, readonly) UIView *customView; // @property (nonatomic, readonly) UICellAccessoryPlacement placement; // @property (nonatomic) BOOL maintainsFixedSize; // @property (nonatomic, copy, null_resettable) UICellAccessoryPosition position; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end // @class UIListContentConfiguration; #ifndef _REWRITER_typedef_UIListContentConfiguration #define _REWRITER_typedef_UIListContentConfiguration typedef struct objc_object UIListContentConfiguration; typedef struct {} _objc_exc_UIListContentConfiguration; #endif #ifndef _REWRITER_typedef_UICellAccessory #define _REWRITER_typedef_UICellAccessory typedef struct objc_object UICellAccessory; typedef struct {} _objc_exc_UICellAccessory; #endif #ifndef _REWRITER_typedef_UILayoutGuide #define _REWRITER_typedef_UILayoutGuide typedef struct objc_object UILayoutGuide; typedef struct {} _objc_exc_UILayoutGuide; #endif #ifndef _REWRITER_typedef_UISwipeActionsConfiguration #define _REWRITER_typedef_UISwipeActionsConfiguration typedef struct objc_object UISwipeActionsConfiguration; typedef struct {} _objc_exc_UISwipeActionsConfiguration; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14_0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICollectionViewListCell #define _REWRITER_typedef_UICollectionViewListCell typedef struct objc_object UICollectionViewListCell; typedef struct {} _objc_exc_UICollectionViewListCell; #endif struct UICollectionViewListCell_IMPL { struct UICollectionViewCell_IMPL UICollectionViewCell_IVARS; }; // - (UIListContentConfiguration *)defaultContentConfiguration; // @property (nonatomic) NSInteger indentationLevel; // @property (nonatomic) CGFloat indentationWidth; // @property (nonatomic) BOOL indentsAccessories; // @property (nonatomic, copy) NSArray<UICellAccessory *> *accessories; // @property (nonatomic, readonly) UILayoutGuide *separatorLayoutGuide __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIGestureRecognizerDelegate; // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif #ifndef _REWRITER_typedef_UITouch #define _REWRITER_typedef_UITouch typedef struct objc_object UITouch; typedef struct {} _objc_exc_UITouch; #endif #ifndef _REWRITER_typedef_UIPress #define _REWRITER_typedef_UIPress typedef struct objc_object UIPress; typedef struct {} _objc_exc_UIPress; #endif typedef NSInteger UIGestureRecognizerState; enum { UIGestureRecognizerStatePossible, UIGestureRecognizerStateBegan, UIGestureRecognizerStateChanged, UIGestureRecognizerStateEnded, UIGestureRecognizerStateCancelled, UIGestureRecognizerStateFailed, UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UIGestureRecognizer #define _REWRITER_typedef_UIGestureRecognizer typedef struct objc_object UIGestureRecognizer; typedef struct {} _objc_exc_UIGestureRecognizer; #endif struct UIGestureRecognizer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTarget:(nullable id)target action:(nullable SEL)action __attribute__((objc_designated_initializer)); // - (instancetype)init; // - (nullable instancetype)initWithCoder:(NSCoder *)coder; // - (void)addTarget:(id)target action:(SEL)action; // - (void)removeTarget:(nullable id)target action:(nullable SEL)action; // @property(nonatomic,readonly) UIGestureRecognizerState state; // @property(nullable,nonatomic,weak) id <UIGestureRecognizerDelegate> delegate; // @property(nonatomic, getter=isEnabled) BOOL enabled; // @property(nullable, nonatomic,readonly) UIView *view; // @property(nonatomic) BOOL cancelsTouchesInView; // @property(nonatomic) BOOL delaysTouchesBegan; // @property(nonatomic) BOOL delaysTouchesEnded; // @property(nonatomic, copy) NSArray<NSNumber *> *allowedTouchTypes __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic, copy) NSArray<NSNumber *> *allowedPressTypes __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL requiresExclusiveTouchType __attribute__((availability(ios,introduced=9.2))); // - (void)requireGestureRecognizerToFail:(UIGestureRecognizer *)otherGestureRecognizer; // - (CGPoint)locationInView:(nullable UIView*)view; // @property(nonatomic, readonly) NSUInteger numberOfTouches; // - (CGPoint)locationOfTouch:(NSUInteger)touchIndex inView:(nullable UIView*)view; // @property (nullable, nonatomic, copy) NSString *name __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic, readonly) UIKeyModifierFlags modifierFlags __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) UIEventButtonMask buttonMask __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ // @protocol UIGestureRecognizerDelegate <NSObject> /* @optional */ // - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer; // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer; // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0))); // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0))); // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch; // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceivePress:(UIPress *)press; // - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveEvent:(UIEvent *)event __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UISwipeGestureRecognizerDirection; enum { UISwipeGestureRecognizerDirectionRight = 1 << 0, UISwipeGestureRecognizerDirectionLeft = 1 << 1, UISwipeGestureRecognizerDirectionUp = 1 << 2, UISwipeGestureRecognizerDirectionDown = 1 << 3 }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UISwipeGestureRecognizer #define _REWRITER_typedef_UISwipeGestureRecognizer typedef struct objc_object UISwipeGestureRecognizer; typedef struct {} _objc_exc_UISwipeGestureRecognizer; #endif struct UISwipeGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property(nonatomic) NSUInteger numberOfTouchesRequired __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UISwipeGestureRecognizerDirection direction; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIContextualAction; #ifndef _REWRITER_typedef_UIContextualAction #define _REWRITER_typedef_UIContextualAction typedef struct objc_object UIContextualAction; typedef struct {} _objc_exc_UIContextualAction; #endif typedef void (*UIContextualActionHandler)(UIContextualAction *action, __kindof UIView *sourceView, void(^completionHandler)(BOOL actionPerformed)); typedef NSInteger UIContextualActionStyle; enum { UIContextualActionStyleNormal, UIContextualActionStyleDestructive } __attribute__((swift_name("UIContextualAction.Style"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIContextualAction #define _REWRITER_typedef_UIContextualAction typedef struct objc_object UIContextualAction; typedef struct {} _objc_exc_UIContextualAction; #endif struct UIContextualAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)contextualActionWithStyle:(UIContextualActionStyle)style title:(nullable NSString *)title handler:(UIContextualActionHandler)handler; // @property (nonatomic, readonly) UIContextualActionStyle style; // @property (nonatomic, copy, readonly) UIContextualActionHandler handler; // @property (nonatomic, copy, nullable) NSString *title; // @property (nonatomic, copy, null_resettable) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) UIImage *image; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISwipeActionsConfiguration #define _REWRITER_typedef_UISwipeActionsConfiguration typedef struct objc_object UISwipeActionsConfiguration; typedef struct {} _objc_exc_UISwipeActionsConfiguration; #endif struct UISwipeActionsConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)configurationWithActions:(NSArray<UIContextualAction *> *)actions; // @property (nonatomic, copy, readonly) NSArray<UIContextualAction *> *actions; // @property (nonatomic) BOOL performsFirstActionWithFullSwipe; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif #ifndef _REWRITER_typedef_UITextField #define _REWRITER_typedef_UITextField typedef struct objc_object UITextField; typedef struct {} _objc_exc_UITextField; #endif #ifndef _REWRITER_typedef_UITableView #define _REWRITER_typedef_UITableView typedef struct objc_object UITableView; typedef struct {} _objc_exc_UITableView; #endif #ifndef _REWRITER_typedef_UILongPressGestureRecognizer #define _REWRITER_typedef_UILongPressGestureRecognizer typedef struct objc_object UILongPressGestureRecognizer; typedef struct {} _objc_exc_UILongPressGestureRecognizer; #endif // @class UICellConfigurationState; #ifndef _REWRITER_typedef_UICellConfigurationState #define _REWRITER_typedef_UICellConfigurationState typedef struct objc_object UICellConfigurationState; typedef struct {} _objc_exc_UICellConfigurationState; #endif // @class UIBackgroundConfiguration; #ifndef _REWRITER_typedef_UIBackgroundConfiguration #define _REWRITER_typedef_UIBackgroundConfiguration typedef struct objc_object UIBackgroundConfiguration; typedef struct {} _objc_exc_UIBackgroundConfiguration; #endif // @protocol UIContentConfiguration; // @class UIListContentConfiguration; #ifndef _REWRITER_typedef_UIListContentConfiguration #define _REWRITER_typedef_UIListContentConfiguration typedef struct objc_object UIListContentConfiguration; typedef struct {} _objc_exc_UIListContentConfiguration; #endif typedef NSInteger UITableViewCellStyle; enum { UITableViewCellStyleDefault, UITableViewCellStyleValue1, UITableViewCellStyleValue2, UITableViewCellStyleSubtitle }; typedef NSInteger UITableViewCellSeparatorStyle; enum { UITableViewCellSeparatorStyleNone, UITableViewCellSeparatorStyleSingleLine, UITableViewCellSeparatorStyleSingleLineEtched __attribute__((availability(ios,introduced=2_0,deprecated=11_0,message="" "Use UITableViewCellSeparatorStyleSingleLine for a single line separator."))) } __attribute__((availability(tvos,unavailable))); typedef NSInteger UITableViewCellSelectionStyle; enum { UITableViewCellSelectionStyleNone, UITableViewCellSelectionStyleBlue, UITableViewCellSelectionStyleGray, UITableViewCellSelectionStyleDefault __attribute__((availability(ios,introduced=7.0))) }; typedef NSInteger UITableViewCellFocusStyle; enum { UITableViewCellFocusStyleDefault, UITableViewCellFocusStyleCustom } __attribute__((availability(ios,introduced=9.0))); typedef NSInteger UITableViewCellEditingStyle; enum { UITableViewCellEditingStyleNone, UITableViewCellEditingStyleDelete, UITableViewCellEditingStyleInsert }; typedef NSInteger UITableViewCellAccessoryType; enum { UITableViewCellAccessoryNone, UITableViewCellAccessoryDisclosureIndicator, UITableViewCellAccessoryDetailDisclosureButton __attribute__((availability(tvos,unavailable))), UITableViewCellAccessoryCheckmark, UITableViewCellAccessoryDetailButton __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))) }; typedef NSUInteger UITableViewCellStateMask; enum { UITableViewCellStateDefaultMask = 0, UITableViewCellStateShowingEditControlMask = 1 << 0, UITableViewCellStateShowingDeleteConfirmationMask = 1 << 1 }; typedef NSInteger UITableViewCellDragState; enum { UITableViewCellDragStateNone, UITableViewCellDragStateLifting, UITableViewCellDragStateDragging } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITableViewCell #define _REWRITER_typedef_UITableViewCell typedef struct objc_object UITableViewCell; typedef struct {} _objc_exc_UITableViewCell; #endif struct UITableViewCell_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier __attribute__((availability(ios,introduced=3.0))) __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) UICellConfigurationState *configurationState __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)setNeedsUpdateConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)updateConfigurationUsingState:(UICellConfigurationState *)state __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (UIListContentConfiguration *)defaultContentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, copy, nullable) id<UIContentConfiguration> contentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesContentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, readonly, strong) UIView *contentView; // @property (nonatomic, readonly, strong, nullable) UIImageView *imageView __attribute__((availability(ios,introduced=3.0,deprecated=100000,message="Use UIListContentConfiguration instead, this property will be deprecated in a future release."))); // @property (nonatomic, readonly, strong, nullable) UILabel *textLabel __attribute__((availability(ios,introduced=3.0,deprecated=100000,message="Use UIListContentConfiguration instead, this property will be deprecated in a future release."))); // @property (nonatomic, readonly, strong, nullable) UILabel *detailTextLabel __attribute__((availability(ios,introduced=3.0,deprecated=100000,message="Use UIListContentConfiguration instead, this property will be deprecated in a future release."))); // @property (nonatomic, copy, nullable) UIBackgroundConfiguration *backgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesBackgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, strong, nullable) UIView *backgroundView; // @property (nonatomic, strong, nullable) UIView *selectedBackgroundView; // @property (nonatomic, strong, nullable) UIView *multipleSelectionBackgroundView __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, readonly, copy, nullable) NSString *reuseIdentifier; // - (void)prepareForReuse __attribute__((objc_requires_super)); // @property (nonatomic) UITableViewCellSelectionStyle selectionStyle; // @property (nonatomic, getter=isSelected) BOOL selected; // @property (nonatomic, getter=isHighlighted) BOOL highlighted; // - (void)setSelected:(BOOL)selected animated:(BOOL)animated; // - (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated; // @property (nonatomic, readonly) UITableViewCellEditingStyle editingStyle; // @property (nonatomic) BOOL showsReorderControl; // @property (nonatomic) BOOL shouldIndentWhileEditing; // @property (nonatomic) UITableViewCellAccessoryType accessoryType; // @property (nonatomic, strong, nullable) UIView *accessoryView; // @property (nonatomic) UITableViewCellAccessoryType editingAccessoryType; // @property (nonatomic, strong, nullable) UIView *editingAccessoryView; // @property (nonatomic) NSInteger indentationLevel; // @property (nonatomic) CGFloat indentationWidth; // @property (nonatomic) UIEdgeInsets separatorInset __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, getter=isEditing) BOOL editing; // - (void)setEditing:(BOOL)editing animated:(BOOL)animated; // @property(nonatomic, readonly) BOOL showingDeleteConfirmation; // @property (nonatomic) UITableViewCellFocusStyle focusStyle __attribute__((availability(ios,introduced=9.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)willTransitionToState:(UITableViewCellStateMask)state __attribute__((availability(ios,introduced=3.0))); // - (void)didTransitionToState:(UITableViewCellStateMask)state __attribute__((availability(ios,introduced=3.0))); // - (void)dragStateDidChange:(UITableViewCellDragState)dragState __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) BOOL userInteractionEnabledWhileDragging __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface UITableViewCell (UIDeprecated) // - (id)initWithFrame:(CGRect)frame reuseIdentifier:(nullable NSString *)reuseIdentifier __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, copy, nullable) NSString *text __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIFont *font __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) NSTextAlignment textAlignment __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) NSLineBreakMode lineBreakMode __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIColor *textColor __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIColor *selectedTextColor __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIImage *image __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIImage *selectedImage __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) BOOL hidesAccessoryWhenEditing __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, nullable) id target __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, nullable) SEL editAction __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, nullable) SEL accessoryAction __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UITableViewStyle; enum { UITableViewStylePlain, UITableViewStyleGrouped, UITableViewStyleInsetGrouped __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) }; typedef NSInteger UITableViewScrollPosition; enum { UITableViewScrollPositionNone, UITableViewScrollPositionTop, UITableViewScrollPositionMiddle, UITableViewScrollPositionBottom }; typedef NSInteger UITableViewRowAnimation; enum { UITableViewRowAnimationFade, UITableViewRowAnimationRight, UITableViewRowAnimationLeft, UITableViewRowAnimationTop, UITableViewRowAnimationBottom, UITableViewRowAnimationNone, UITableViewRowAnimationMiddle, UITableViewRowAnimationAutomatic = 100 }; extern "C" __attribute__((visibility ("default"))) NSString *const UITableViewIndexSearch __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) const CGFloat UITableViewAutomaticDimension __attribute__((availability(ios,introduced=5.0))); // @class UITableView; #ifndef _REWRITER_typedef_UITableView #define _REWRITER_typedef_UITableView typedef struct objc_object UITableView; typedef struct {} _objc_exc_UITableView; #endif #ifndef _REWRITER_typedef_UINib #define _REWRITER_typedef_UINib typedef struct objc_object UINib; typedef struct {} _objc_exc_UINib; #endif #ifndef _REWRITER_typedef_UITableViewHeaderFooterView #define _REWRITER_typedef_UITableViewHeaderFooterView typedef struct objc_object UITableViewHeaderFooterView; typedef struct {} _objc_exc_UITableViewHeaderFooterView; #endif #ifndef _REWRITER_typedef_UIVisualEffect #define _REWRITER_typedef_UIVisualEffect typedef struct objc_object UIVisualEffect; typedef struct {} _objc_exc_UIVisualEffect; #endif // @protocol UITableViewDataSource, UITableViewDataSourcePrefetching; // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UIDragPreviewParameters #define _REWRITER_typedef_UIDragPreviewParameters typedef struct objc_object UIDragPreviewParameters; typedef struct {} _objc_exc_UIDragPreviewParameters; #endif #ifndef _REWRITER_typedef_UIDragPreviewTarget #define _REWRITER_typedef_UIDragPreviewTarget typedef struct objc_object UIDragPreviewTarget; typedef struct {} _objc_exc_UIDragPreviewTarget; #endif #ifndef _REWRITER_typedef_UITableViewDropProposal #define _REWRITER_typedef_UITableViewDropProposal typedef struct objc_object UITableViewDropProposal; typedef struct {} _objc_exc_UITableViewDropProposal; #endif #ifndef _REWRITER_typedef_UITableViewPlaceholder #define _REWRITER_typedef_UITableViewPlaceholder typedef struct objc_object UITableViewPlaceholder; typedef struct {} _objc_exc_UITableViewPlaceholder; #endif #ifndef _REWRITER_typedef_UITableViewDropPlaceholder #define _REWRITER_typedef_UITableViewDropPlaceholder typedef struct objc_object UITableViewDropPlaceholder; typedef struct {} _objc_exc_UITableViewDropPlaceholder; #endif // @protocol UISpringLoadedInteractionContext, UIDragSession, UIDropSession; // @protocol UITableViewDragDelegate, UITableViewDropDelegate, UITableViewDropCoordinator, UITableViewDropItem, UITableViewDropPlaceholderContext; typedef NSInteger UITableViewRowActionStyle; enum { UITableViewRowActionStyleDefault = 0, UITableViewRowActionStyleDestructive = UITableViewRowActionStyleDefault, UITableViewRowActionStyleNormal } __attribute__((availability(ios,introduced=8.0,deprecated=13.0,message="Use UIContextualAction and related APIs instead."))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=13.0,message="Use UIContextualAction and related APIs instead."))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UITableViewRowAction #define _REWRITER_typedef_UITableViewRowAction typedef struct objc_object UITableViewRowAction; typedef struct {} _objc_exc_UITableViewRowAction; #endif struct UITableViewRowAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)rowActionWithStyle:(UITableViewRowActionStyle)style title:(nullable NSString *)title handler:(void (^)(UITableViewRowAction *action, NSIndexPath *indexPath))handler; // @property (nonatomic, readonly) UITableViewRowActionStyle style; // @property (nonatomic, copy, nullable) NSString *title; // @property (nonatomic, copy, nullable) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) UIVisualEffect* backgroundEffect; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UITableViewFocusUpdateContext #define _REWRITER_typedef_UITableViewFocusUpdateContext typedef struct objc_object UITableViewFocusUpdateContext; typedef struct {} _objc_exc_UITableViewFocusUpdateContext; #endif struct UITableViewFocusUpdateContext_IMPL { struct UIFocusUpdateContext_IMPL UIFocusUpdateContext_IVARS; }; // @property (nonatomic, strong, readonly, nullable) NSIndexPath *previouslyFocusedIndexPath; // @property (nonatomic, strong, readonly, nullable) NSIndexPath *nextFocusedIndexPath; /* @end */ // @protocol UITableViewDelegate<NSObject, UIScrollViewDelegate> /* @optional */ // - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath; // - (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath*)indexPath __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView didEndDisplayingHeaderView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView didEndDisplayingFooterView:(UIView *)view forSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; // - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section; // - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section; // - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=7.0))); // - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForHeaderInSection:(NSInteger)section __attribute__((availability(ios,introduced=7.0))); // - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForFooterInSection:(NSInteger)section __attribute__((availability(ios,introduced=7.0))); // - (nullable UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section; // - (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section; // - (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath; // - (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0))); // - (void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0))); // - (nullable NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath; // - (nullable NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=3.0))); // - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; // - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=3.0))); // - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath; // - (nullable NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // - (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=8.0,deprecated=13.0,replacement="tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:"))) __attribute__((availability(tvos,unavailable))); // - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // - (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath; // - (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(tvos,unavailable))); // - (void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(nullable NSIndexPath *)indexPath __attribute__((availability(tvos,unavailable))); // - (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath; // - (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath; // - (BOOL)tableView:(UITableView *)tableView shouldShowMenuForRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=5.0,deprecated=13.0,replacement="tableView:contextMenuConfigurationForRowAtIndexPath:point:"))); // - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(nullable id)sender __attribute__((availability(ios,introduced=5.0,deprecated=13.0,replacement="tableView:contextMenuConfigurationForRowAtIndexPath:point:"))); // - (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(nullable id)sender __attribute__((availability(ios,introduced=5.0,deprecated=13.0,replacement="tableView:contextMenuConfigurationForRowAtIndexPath:"))); // - (BOOL)tableView:(UITableView *)tableView canFocusRowAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=9.0))); // - (BOOL)tableView:(UITableView *)tableView shouldUpdateFocusInContext:(UITableViewFocusUpdateContext *)context __attribute__((availability(ios,introduced=9.0))); // - (void)tableView:(UITableView *)tableView didUpdateFocusInContext:(UITableViewFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator __attribute__((availability(ios,introduced=9.0))); // - (nullable NSIndexPath *)indexPathForPreferredFocusedViewInTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=9.0))); // - (BOOL)tableView:(UITableView *)tableView shouldSpringLoadRowAtIndexPath:(NSIndexPath *)indexPath withContext:(id<UISpringLoadedInteractionContext>)context __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (BOOL)tableView:(UITableView *)tableView shouldBeginMultipleSelectionInteractionAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (void)tableView:(UITableView *)tableView didBeginMultipleSelectionInteractionAtIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (void)tableViewDidEndMultipleSelectionInteraction:(UITableView *)tableView __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // - (nullable UIContextMenuConfiguration *)tableView:(UITableView *)tableView contextMenuConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable UITargetedPreview *)tableView:(UITableView *)tableView previewForHighlightingContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable UITargetedPreview *)tableView:(UITableView *)tableView previewForDismissingContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)tableView:(UITableView *)tableView willPerformPreviewActionForMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(id<UIContextMenuInteractionCommitAnimating>)animator __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)tableView:(UITableView *)tableView willDisplayContextMenuWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)tableView:(UITableView *)tableView willEndContextMenuInteractionWithConfiguration:(UIContextMenuConfiguration *)configuration animator:(nullable id<UIContextMenuInteractionAnimating>)animator __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITableViewSelectionDidChangeNotification; typedef NSInteger UITableViewSeparatorInsetReference; enum { UITableViewSeparatorInsetFromCellEdges, UITableViewSeparatorInsetFromAutomaticInsets } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITableView #define _REWRITER_typedef_UITableView typedef struct objc_object UITableView; typedef struct {} _objc_exc_UITableView; #endif struct UITableView_IMPL { struct UIScrollView_IMPL UIScrollView_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) UITableViewStyle style; // @property (nonatomic, weak, nullable) id <UITableViewDataSource> dataSource; // @property (nonatomic, weak, nullable) id <UITableViewDelegate> delegate; // @property (nonatomic, weak, nullable) id <UITableViewDataSourcePrefetching> prefetchDataSource __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, weak, nullable) id <UITableViewDragDelegate> dragDelegate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, weak, nullable) id <UITableViewDropDelegate> dropDelegate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) CGFloat rowHeight; // @property (nonatomic) CGFloat sectionHeaderHeight; // @property (nonatomic) CGFloat sectionFooterHeight; // @property (nonatomic) CGFloat estimatedRowHeight __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat estimatedSectionHeaderHeight __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat estimatedSectionFooterHeight __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) UIEdgeInsets separatorInset __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic) UITableViewSeparatorInsetReference separatorInsetReference __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic, strong, nullable) UIView *backgroundView __attribute__((availability(ios,introduced=3.2))); // @property (nonatomic, readonly, nullable) UIContextMenuInteraction *contextMenuInteraction __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) NSInteger numberOfSections; // - (NSInteger)numberOfRowsInSection:(NSInteger)section; // - (CGRect)rectForSection:(NSInteger)section; // - (CGRect)rectForHeaderInSection:(NSInteger)section; // - (CGRect)rectForFooterInSection:(NSInteger)section; // - (CGRect)rectForRowAtIndexPath:(NSIndexPath *)indexPath; // - (nullable NSIndexPath *)indexPathForRowAtPoint:(CGPoint)point; // - (nullable NSIndexPath *)indexPathForCell:(UITableViewCell *)cell; // - (nullable NSArray<NSIndexPath *> *)indexPathsForRowsInRect:(CGRect)rect; // - (nullable __kindof UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath; // @property (nonatomic, readonly) NSArray<__kindof UITableViewCell *> *visibleCells; // @property (nonatomic, readonly, nullable) NSArray<NSIndexPath *> *indexPathsForVisibleRows; // - (nullable UITableViewHeaderFooterView *)headerViewForSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (nullable UITableViewHeaderFooterView *)footerViewForSection:(NSInteger)section __attribute__((availability(ios,introduced=6.0))); // - (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated; // - (void)scrollToNearestSelectedRowAtScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated; // - (void)performBatchUpdates:(void (__attribute__((noescape)) ^ _Nullable)(void))updates completion:(void (^ _Nullable)(BOOL finished))completion __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)beginUpdates; // - (void)endUpdates; // - (void)insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation; // - (void)deleteSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation; // - (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation __attribute__((availability(ios,introduced=3.0))); // - (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection __attribute__((availability(ios,introduced=5.0))); // - (void)insertRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation; // - (void)deleteRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation; // - (void)reloadRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation __attribute__((availability(ios,introduced=3.0))); // - (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, readonly) BOOL hasUncommittedUpdates __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)reloadData; // - (void)reloadSectionIndexTitles __attribute__((availability(ios,introduced=3.0))); // @property (nonatomic, getter=isEditing) BOOL editing; // - (void)setEditing:(BOOL)editing animated:(BOOL)animated; // @property (nonatomic) BOOL allowsSelection __attribute__((availability(ios,introduced=3.0))); // @property (nonatomic) BOOL allowsSelectionDuringEditing; // @property (nonatomic) BOOL allowsMultipleSelection __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic) BOOL allowsMultipleSelectionDuringEditing __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, readonly, nullable) NSIndexPath *indexPathForSelectedRow; // @property (nonatomic, readonly, nullable) NSArray<NSIndexPath *> *indexPathsForSelectedRows __attribute__((availability(ios,introduced=5.0))); // - (void)selectRowAtIndexPath:(nullable NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UITableViewScrollPosition)scrollPosition; // - (void)deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated; // @property (nonatomic) NSInteger sectionIndexMinimumDisplayRowCount; // @property (nonatomic, strong, nullable) UIColor *sectionIndexColor __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, strong, nullable) UIColor *sectionIndexBackgroundColor __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, strong, nullable) UIColor *sectionIndexTrackingBackgroundColor __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic) UITableViewCellSeparatorStyle separatorStyle __attribute__((availability(tvos,unavailable))); // @property (nonatomic, strong, nullable) UIColor *separatorColor __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, copy, nullable) UIVisualEffect *separatorEffect __attribute__((availability(ios,introduced=8.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) BOOL cellLayoutMarginsFollowReadableWidth __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL insetsContentViewsToSafeArea __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property (nonatomic, strong, nullable) UIView *tableHeaderView; // @property (nonatomic, strong, nullable) UIView *tableFooterView; // - (nullable __kindof UITableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier; // - (__kindof UITableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath __attribute__((availability(ios,introduced=6.0))); // - (nullable __kindof UITableViewHeaderFooterView *)dequeueReusableHeaderFooterViewWithIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=6.0))); // - (void)registerNib:(nullable UINib *)nib forCellReuseIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=5.0))); // - (void)registerClass:(nullable Class)cellClass forCellReuseIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=6.0))); // - (void)registerNib:(nullable UINib *)nib forHeaderFooterViewReuseIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=6.0))); // - (void)registerClass:(nullable Class)aClass forHeaderFooterViewReuseIdentifier:(NSString *)identifier __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic) BOOL remembersLastFocusedIndexPath __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL selectionFollowsFocus __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) BOOL dragInteractionEnabled __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) BOOL hasActiveDrag __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) BOOL hasActiveDrop __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ // @interface UITableView (UIDragAndDrop) <UISpringLoadedInteractionSupporting> /* @end */ // @protocol UITableViewDataSource<NSObject> /* @required */ // - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section; // - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; /* @optional */ // - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; // - (nullable NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section; // - (nullable NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section; // - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath; // - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath; // - (nullable NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView; // - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index; // - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath; // - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath; /* @end */ // @protocol UITableViewDataSourcePrefetching <NSObject> /* @required */ // - (void)tableView:(UITableView *)tableView prefetchRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths; /* @optional */ // - (void)tableView:(UITableView *)tableView cancelPrefetchingForRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UITableViewDragDelegate <NSObject> /* @required */ // - (NSArray<UIDragItem *> *)tableView:(UITableView *)tableView itemsForBeginningDragSession:(id<UIDragSession>)session atIndexPath:(NSIndexPath *)indexPath; /* @optional */ // - (NSArray<UIDragItem *> *)tableView:(UITableView *)tableView itemsForAddingToDragSession:(id<UIDragSession>)session atIndexPath:(NSIndexPath *)indexPath point:(CGPoint)point; // - (nullable UIDragPreviewParameters *)tableView:(UITableView *)tableView dragPreviewParametersForRowAtIndexPath:(NSIndexPath *)indexPath; // - (void)tableView:(UITableView *)tableView dragSessionWillBegin:(id<UIDragSession>)session; // - (void)tableView:(UITableView *)tableView dragSessionDidEnd:(id<UIDragSession>)session; // - (BOOL)tableView:(UITableView *)tableView dragSessionAllowsMoveOperation:(id<UIDragSession>)session; // - (BOOL)tableView:(UITableView *)tableView dragSessionIsRestrictedToDraggingApplication:(id<UIDragSession>)session; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UITableViewDropDelegate <NSObject> /* @required */ // - (void)tableView:(UITableView *)tableView performDropWithCoordinator:(id<UITableViewDropCoordinator>)coordinator; /* @optional */ // - (BOOL)tableView:(UITableView *)tableView canHandleDropSession:(id<UIDropSession>)session; // - (void)tableView:(UITableView *)tableView dropSessionDidEnter:(id<UIDropSession>)session; // - (UITableViewDropProposal *)tableView:(UITableView *)tableView dropSessionDidUpdate:(id<UIDropSession>)session withDestinationIndexPath:(nullable NSIndexPath *)destinationIndexPath; // - (void)tableView:(UITableView *)tableView dropSessionDidExit:(id<UIDropSession>)session; // - (void)tableView:(UITableView *)tableView dropSessionDidEnd:(id<UIDropSession>)session; // - (nullable UIDragPreviewParameters *)tableView:(UITableView *)tableView dropPreviewParametersForRowAtIndexPath:(NSIndexPath *)indexPath; /* @end */ typedef NSInteger UITableViewDropIntent; enum { UITableViewDropIntentUnspecified, UITableViewDropIntentInsertAtDestinationIndexPath, UITableViewDropIntentInsertIntoDestinationIndexPath, UITableViewDropIntentAutomatic } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UITableViewDropProposal #define _REWRITER_typedef_UITableViewDropProposal typedef struct objc_object UITableViewDropProposal; typedef struct {} _objc_exc_UITableViewDropProposal; #endif struct UITableViewDropProposal_IMPL { struct UIDropProposal_IMPL UIDropProposal_IVARS; }; // - (instancetype)initWithDropOperation:(UIDropOperation)operation intent:(UITableViewDropIntent)intent; // @property (nonatomic, readonly) UITableViewDropIntent intent; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UITableViewDropCoordinator <NSObject> // @property (nonatomic, readonly) NSArray<id<UITableViewDropItem>> *items; // @property (nonatomic, readonly, nullable) NSIndexPath *destinationIndexPath; // @property (nonatomic, readonly) UITableViewDropProposal *proposal; // @property (nonatomic, readonly) id<UIDropSession> session; // - (id<UITableViewDropPlaceholderContext>)dropItem:(UIDragItem *)dragItem toPlaceholder:(UITableViewDropPlaceholder *)placeholder; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toRowAtIndexPath:(NSIndexPath *)indexPath; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem intoRowAtIndexPath:(NSIndexPath *)indexPath rect:(CGRect)rect; // - (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toTarget:(UIDragPreviewTarget *)target; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UITableViewPlaceholder #define _REWRITER_typedef_UITableViewPlaceholder typedef struct objc_object UITableViewPlaceholder; typedef struct {} _objc_exc_UITableViewPlaceholder; #endif struct UITableViewPlaceholder_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithInsertionIndexPath:(NSIndexPath *)insertionIndexPath reuseIdentifier:(NSString *)reuseIdentifier rowHeight:(CGFloat)rowHeight __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, nullable, copy) void(^cellUpdateHandler)(__kindof UITableViewCell *); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UITableViewDropPlaceholder #define _REWRITER_typedef_UITableViewDropPlaceholder typedef struct objc_object UITableViewDropPlaceholder; typedef struct {} _objc_exc_UITableViewDropPlaceholder; #endif struct UITableViewDropPlaceholder_IMPL { struct UITableViewPlaceholder_IMPL UITableViewPlaceholder_IVARS; }; // @property (nonatomic, nullable, copy) UIDragPreviewParameters * _Nullable (^previewParametersProvider)(__kindof UITableViewCell *); /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UITableViewDropItem <NSObject> // @property (nonatomic, readonly) UIDragItem *dragItem; // @property (nonatomic, readonly, nullable) NSIndexPath *sourceIndexPath; // @property (nonatomic, readonly) CGSize previewSize; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UITableViewDropPlaceholderContext <UIDragAnimating> // @property (nonatomic, readonly) UIDragItem *dragItem; // - (BOOL)commitInsertionWithDataSourceUpdates:(void(__attribute__((noescape)) ^)(NSIndexPath *insertionIndexPath))dataSourceUpdates; // - (BOOL)deletePlaceholder; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_NSDiffableDataSourceSectionSnapshot #define _REWRITER_typedef_NSDiffableDataSourceSectionSnapshot typedef struct objc_object NSDiffableDataSourceSectionSnapshot; typedef struct {} _objc_exc_NSDiffableDataSourceSectionSnapshot; #endif struct NSDiffableDataSourceSectionSnapshot_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (void)appendItems:(NSArray<ItemIdentifierType>*)items; // - (void)appendItems:(NSArray<ItemIdentifierType>*)items intoParentItem:(nullable ItemIdentifierType)parentItem; // - (void)insertItems:(NSArray<ItemIdentifierType>*)items beforeItem:(ItemIdentifierType)beforeIdentifier; // - (void)insertItems:(NSArray<ItemIdentifierType>*)items afterItem:(ItemIdentifierType)afterIdentifier; // - (void)deleteItems:(NSArray<ItemIdentifierType>*)items; // - (void)deleteAllItems; // - (void)expandItems:(NSArray<ItemIdentifierType>*)items; // - (void)collapseItems:(NSArray<ItemIdentifierType>*)items; // - (void)replaceChildrenOfParentItem:(ItemIdentifierType)parentItem withSnapshot:(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshot; // - (void)insertSnapshot:(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshot beforeItem:(ItemIdentifierType)item; // - (ItemIdentifierType)insertSnapshot:(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshot afterItem:(ItemIdentifierType)item; // - (BOOL)isExpanded:(ItemIdentifierType)item; // - (BOOL)isVisible:(ItemIdentifierType)item; // - (BOOL)containsItem:(ItemIdentifierType)item; // - (NSInteger)levelOfItem:(ItemIdentifierType)item; // - (NSInteger)indexOfItem:(ItemIdentifierType)item; // - (NSArray<ItemIdentifierType>*)items; // - (NSArray<ItemIdentifierType>*)expandedItems; // - (nullable ItemIdentifierType)parentOfChildItem:(ItemIdentifierType)childItem; // - (NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshotOfParentItem:(ItemIdentifierType)parentItem; // - (NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshotOfParentItem:(ItemIdentifierType)parentItem includingParentItem:(BOOL)includingParentItem; // @property(nonatomic,readonly,strong) NSArray<ItemIdentifierType> *items; // @property(nonatomic,readonly,strong) NSArray<ItemIdentifierType> *rootItems; // @property(nonatomic,readonly,strong) NSArray<ItemIdentifierType> *visibleItems; // - (NSString*)visualDescription; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_NSDiffableDataSourceSnapshot #define _REWRITER_typedef_NSDiffableDataSourceSnapshot typedef struct objc_object NSDiffableDataSourceSnapshot; typedef struct {} _objc_exc_NSDiffableDataSourceSnapshot; #endif struct NSDiffableDataSourceSnapshot_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) NSInteger numberOfItems; // @property(nonatomic,readonly) NSInteger numberOfSections; // @property(nonatomic,readonly) NSArray<SectionIdentifierType> *sectionIdentifiers; // @property(nonatomic,readonly) NSArray<ItemIdentifierType> *itemIdentifiers; // - (NSInteger)numberOfItemsInSection:(SectionIdentifierType)sectionIdentifier; // - (NSArray<ItemIdentifierType>*)itemIdentifiersInSectionWithIdentifier:(SectionIdentifierType)sectionIdentifier; // - (nullable SectionIdentifierType)sectionIdentifierForSectionContainingItemIdentifier:(ItemIdentifierType)itemIdentifier; // - (NSInteger)indexOfItemIdentifier:(ItemIdentifierType)itemIdentifier; // - (NSInteger)indexOfSectionIdentifier:(SectionIdentifierType)sectionIdentifier; // - (void)appendItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers; // - (void)appendItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers intoSectionWithIdentifier:(SectionIdentifierType)sectionIdentifier; // - (void)insertItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers beforeItemWithIdentifier:(ItemIdentifierType)itemIdentifier; // - (void)insertItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers afterItemWithIdentifier:(ItemIdentifierType)itemIdentifier; // - (void)deleteItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers; // - (void)deleteAllItems; // - (void)moveItemWithIdentifier:(ItemIdentifierType)fromIdentifier beforeItemWithIdentifier:(ItemIdentifierType)toIdentifier; // - (void)moveItemWithIdentifier:(ItemIdentifierType)fromIdentifier afterItemWithIdentifier:(ItemIdentifierType)toIdentifier; // - (void)reloadItemsWithIdentifiers:(NSArray<ItemIdentifierType>*)identifiers; // - (void)appendSectionsWithIdentifiers:(NSArray*)sectionIdentifiers; // - (void)insertSectionsWithIdentifiers:(NSArray<SectionIdentifierType>*)sectionIdentifiers beforeSectionWithIdentifier:(SectionIdentifierType)toSectionIdentifier; // - (void)insertSectionsWithIdentifiers:(NSArray<SectionIdentifierType>*)sectionIdentifiers afterSectionWithIdentifier:(SectionIdentifierType)toSectionIdentifier; // - (void)deleteSectionsWithIdentifiers:(NSArray<SectionIdentifierType>*)sectionIdentifiers; // - (void)moveSectionWithIdentifier:(SectionIdentifierType)fromSectionIdentifier beforeSectionWithIdentifier:(SectionIdentifierType)toSectionIdentifier; // - (void)moveSectionWithIdentifier:(SectionIdentifierType)fromSectionIdentifier afterSectionWithIdentifier:(SectionIdentifierType)toSectionIdentifier; // - (void)reloadSectionsWithIdentifiers:(NSArray<SectionIdentifierType>*)sectionIdentifiers; /* @end */ typedef UICollectionViewCell * _Nullable (*UICollectionViewDiffableDataSourceCellProvider)(UICollectionView * _Nonnull collectionView, NSIndexPath * _Nonnull indexPath, id _Nonnull itemIdentifier); typedef UICollectionReusableView * _Nullable (*UICollectionViewDiffableDataSourceSupplementaryViewProvider)(UICollectionView* _Nonnull collectionView, NSString * _Nonnull elementKind, NSIndexPath * _Nonnull indexPath); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_NSDiffableDataSourceSectionTransaction #define _REWRITER_typedef_NSDiffableDataSourceSectionTransaction typedef struct objc_object NSDiffableDataSourceSectionTransaction; typedef struct {} _objc_exc_NSDiffableDataSourceSectionTransaction; #endif struct NSDiffableDataSourceSectionTransaction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) SectionIdentifierType sectionIdentifier; // @property(nonatomic,readonly) NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> *initialSnapshot; // @property(nonatomic,readonly) NSDiffableDataSourceSectionSnapshot<ItemIdentifierType> *finalSnapshot; // @property(nonatomic,readonly) NSOrderedCollectionDifference<ItemIdentifierType> *difference; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_NSDiffableDataSourceTransaction #define _REWRITER_typedef_NSDiffableDataSourceTransaction typedef struct objc_object NSDiffableDataSourceTransaction; typedef struct {} _objc_exc_NSDiffableDataSourceTransaction; #endif struct NSDiffableDataSourceTransaction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,readonly) NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> *initialSnapshot; // @property(nonatomic,readonly) NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> *finalSnapshot; // @property(nonatomic,readonly) NSOrderedCollectionDifference<ItemIdentifierType> *difference; // @property(nonatomic,readonly) NSArray<NSDiffableDataSourceSectionTransaction<SectionIdentifierType, ItemIdentifierType>*> *sectionTransactions; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_UICollectionViewDiffableDataSourceReorderingHandlers #define _REWRITER_typedef_UICollectionViewDiffableDataSourceReorderingHandlers typedef struct objc_object UICollectionViewDiffableDataSourceReorderingHandlers; typedef struct {} _objc_exc_UICollectionViewDiffableDataSourceReorderingHandlers; #endif struct UICollectionViewDiffableDataSourceReorderingHandlers_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,copy,nullable) BOOL(^canReorderItemHandler)(ItemType); // @property(nonatomic,copy,nullable) void(^willReorderHandler)(NSDiffableDataSourceTransaction<SectionType, ItemType> *); // @property(nonatomic,copy,nullable) void(^didReorderHandler)(NSDiffableDataSourceTransaction<SectionType, ItemType> *); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_UICollectionViewDiffableDataSourceSectionSnapshotHandlers #define _REWRITER_typedef_UICollectionViewDiffableDataSourceSectionSnapshotHandlers typedef struct objc_object UICollectionViewDiffableDataSourceSectionSnapshotHandlers; typedef struct {} _objc_exc_UICollectionViewDiffableDataSourceSectionSnapshotHandlers; #endif struct UICollectionViewDiffableDataSourceSectionSnapshotHandlers_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic,copy,nullable) BOOL(^shouldExpandItemHandler)(ItemType); // @property(nonatomic,copy,nullable) void(^willExpandItemHandler)(ItemType); // @property(nonatomic,copy,nullable) BOOL(^shouldCollapseItemHandler)(ItemType); // @property(nonatomic,copy,nullable) void(^willCollapseItemHandler)(ItemType); // @property(nonatomic,copy,nullable) NSDiffableDataSourceSectionSnapshot<ItemType>*(^snapshotForExpandingParentItemHandler)(ItemType, NSDiffableDataSourceSectionSnapshot<ItemType>*); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UICollectionViewDiffableDataSource #define _REWRITER_typedef_UICollectionViewDiffableDataSource typedef struct objc_object UICollectionViewDiffableDataSource; typedef struct {} _objc_exc_UICollectionViewDiffableDataSource; #endif struct UICollectionViewDiffableDataSource_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithCollectionView:(UICollectionView*)collectionView cellProvider:(UICollectionViewDiffableDataSourceCellProvider)cellProvider; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property(nonatomic,copy,nullable) UICollectionViewDiffableDataSourceSupplementaryViewProvider supplementaryViewProvider; // - (NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot; // - (void)applySnapshot:(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot animatingDifferences:(BOOL)animatingDifferences; // - (void)applySnapshot:(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot animatingDifferences:(BOOL)animatingDifferences completion:(void(^ _Nullable)(void))completion; // - (nullable ItemIdentifierType)itemIdentifierForIndexPath:(NSIndexPath*)indexPath; // - (nullable NSIndexPath*)indexPathForItemIdentifier:(ItemIdentifierType)identifier; // @property(nonatomic,copy) UICollectionViewDiffableDataSourceReorderingHandlers<SectionIdentifierType, ItemIdentifierType> *reorderingHandlers __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (void)applySnapshot:(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshot toSection:(SectionIdentifierType)sectionIdentifier animatingDifferences:(BOOL)animatingDifferences __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (void)applySnapshot:(NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshot toSection:(SectionIdentifierType)sectionIdentifier animatingDifferences:(BOOL)animatingDifferences completion:(void (^ _Nullable)(void))completion __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // - (NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>*)snapshotForSection:(SectionIdentifierType)section __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); // @property(nonatomic,copy) UICollectionViewDiffableDataSourceSectionSnapshotHandlers<ItemIdentifierType> *sectionSnapshotHandlers __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))); /* @end */ typedef UITableViewCell * _Nullable (*UITableViewDiffableDataSourceCellProvider)(UITableView * _Nonnull, NSIndexPath * _Nonnull, id _Nonnull); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) #ifndef _REWRITER_typedef_UITableViewDiffableDataSource #define _REWRITER_typedef_UITableViewDiffableDataSource typedef struct objc_object UITableViewDiffableDataSource; typedef struct {} _objc_exc_UITableViewDiffableDataSource; #endif struct UITableViewDiffableDataSource_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTableView:(UITableView*)tableView cellProvider:(UITableViewDiffableDataSourceCellProvider)cellProvider; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot; // - (void)applySnapshot:(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot animatingDifferences:(BOOL)animatingDifferences; // - (void)applySnapshot:(NSDiffableDataSourceSnapshot<SectionIdentifierType,ItemIdentifierType>*)snapshot animatingDifferences:(BOOL)animatingDifferences completion:(void(^ _Nullable)(void))completion; // - (nullable ItemIdentifierType)itemIdentifierForIndexPath:(NSIndexPath*)indexPath; // - (nullable NSIndexPath*)indexPathForItemIdentifier:(ItemIdentifierType)identifier; // @property(nonatomic) UITableViewRowAnimation defaultRowAnimation; /* @end */ #pragma clang assume_nonnull end // @class UINib; #ifndef _REWRITER_typedef_UINib #define _REWRITER_typedef_UINib typedef struct objc_object UINib; typedef struct {} _objc_exc_UINib; #endif #ifndef _REWRITER_typedef_UICollectionViewCell #define _REWRITER_typedef_UICollectionViewCell typedef struct objc_object UICollectionViewCell; typedef struct {} _objc_exc_UICollectionViewCell; #endif #ifndef _REWRITER_typedef_UICollectionReusableView #define _REWRITER_typedef_UICollectionReusableView typedef struct objc_object UICollectionReusableView; typedef struct {} _objc_exc_UICollectionReusableView; #endif #pragma clang assume_nonnull begin typedef void(*UICollectionViewCellRegistrationConfigurationHandler)(__kindof UICollectionViewCell * _Nonnull cell, NSIndexPath * _Nonnull indexPath, id _Nonnull item); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_UICollectionViewCellRegistration #define _REWRITER_typedef_UICollectionViewCellRegistration typedef struct objc_object UICollectionViewCellRegistration; typedef struct {} _objc_exc_UICollectionViewCellRegistration; #endif struct UICollectionViewCellRegistration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)registrationWithCellClass:(Class)cellClass configurationHandler:(UICollectionViewCellRegistrationConfigurationHandler)configurationHandler; // + (instancetype)registrationWithCellNib:(UINib*)cellNib configurationHandler:(UICollectionViewCellRegistrationConfigurationHandler)configurationHandler; // @property(nonatomic,readonly,nullable) Class cellClass; // @property(nonatomic,readonly,nullable) UINib *cellNib; // @property(nonatomic,readonly) UICollectionViewCellRegistrationConfigurationHandler configurationHandler; /* @end */ typedef void(*UICollectionViewSupplementaryRegistrationConfigurationHandler)(__kindof UICollectionReusableView * _Nonnull supplementaryView, NSString * _Nonnull elementKind, NSIndexPath * _Nonnull indexPath); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_UICollectionViewSupplementaryRegistration #define _REWRITER_typedef_UICollectionViewSupplementaryRegistration typedef struct objc_object UICollectionViewSupplementaryRegistration; typedef struct {} _objc_exc_UICollectionViewSupplementaryRegistration; #endif struct UICollectionViewSupplementaryRegistration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)registrationWithSupplementaryClass:(Class)supplementaryClass elementKind:(NSString*)elementKind configurationHandler:(UICollectionViewSupplementaryRegistrationConfigurationHandler)configurationHandler; // + (instancetype)registrationWithSupplementaryNib:(UINib*)supplementaryNib elementKind:(NSString*)elementKind configurationHandler:(UICollectionViewSupplementaryRegistrationConfigurationHandler)configurationHandler; // @property(nonatomic,readonly,nullable) Class supplementaryClass; // @property(nonatomic,readonly,nullable) UINib *supplementaryNib; // @property(nonatomic,readonly) NSString *elementKind; // @property(nonatomic,readonly) UICollectionViewSupplementaryRegistrationConfigurationHandler configurationHandler; /* @end */ #pragma clang assume_nonnull end // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UISwipeActionsConfiguration #define _REWRITER_typedef_UISwipeActionsConfiguration typedef struct objc_object UISwipeActionsConfiguration; typedef struct {} _objc_exc_UISwipeActionsConfiguration; #endif #pragma clang assume_nonnull begin typedef NSInteger UICollectionLayoutListAppearance; enum { UICollectionLayoutListAppearancePlain, UICollectionLayoutListAppearanceGrouped, UICollectionLayoutListAppearanceInsetGrouped __attribute__((availability(tvos,unavailable))), UICollectionLayoutListAppearanceSidebar __attribute__((availability(tvos,unavailable))), UICollectionLayoutListAppearanceSidebarPlain __attribute__((availability(tvos,unavailable))), } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); typedef NSInteger UICollectionLayoutListHeaderMode; enum { UICollectionLayoutListHeaderModeNone, UICollectionLayoutListHeaderModeSupplementary, UICollectionLayoutListHeaderModeFirstItemInSection, } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); typedef NSInteger UICollectionLayoutListFooterMode; enum { UICollectionLayoutListFooterModeNone, UICollectionLayoutListFooterModeSupplementary, } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); typedef UISwipeActionsConfiguration *_Nullable (*UICollectionLayoutListSwipeActionsConfigurationProvider)(NSIndexPath *indexPath) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICollectionLayoutListConfiguration #define _REWRITER_typedef_UICollectionLayoutListConfiguration typedef struct objc_object UICollectionLayoutListConfiguration; typedef struct {} _objc_exc_UICollectionLayoutListConfiguration; #endif struct UICollectionLayoutListConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithAppearance:(UICollectionLayoutListAppearance)appearance __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) UICollectionLayoutListAppearance appearance; // @property (nonatomic) BOOL showsSeparators __attribute__((availability(tvos,unavailable))); // @property (nonatomic, nullable, strong) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) UICollectionLayoutListSwipeActionsConfigurationProvider leadingSwipeActionsConfigurationProvider __attribute__((availability(tvos,unavailable))); // @property (nonatomic, copy, nullable) UICollectionLayoutListSwipeActionsConfigurationProvider trailingSwipeActionsConfigurationProvider __attribute__((availability(tvos,unavailable))); // @property (nonatomic) UICollectionLayoutListHeaderMode headerMode; // @property (nonatomic) UICollectionLayoutListFooterMode footerMode; /* @end */ // @interface NSCollectionLayoutSection (UICollectionLayoutListSection) // + (instancetype)sectionWithListConfiguration:(UICollectionLayoutListConfiguration *)configuration layoutEnvironment:(id<NSCollectionLayoutEnvironment>)layoutEnvironment __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); /* @end */ // @interface UICollectionViewCompositionalLayout (UICollectionLayoutListSection) // + (instancetype)layoutWithListConfiguration:(UICollectionLayoutListConfiguration *)configuration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif typedef NSString * UIConfigurationStateCustomKey __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) // @protocol UIConfigurationState <NSObject, NSCopying, NSSecureCoding> // - (instancetype)initWithTraitCollection:(UITraitCollection *)traitCollection; // @property (nonatomic, strong) UITraitCollection *traitCollection; // - (nullable id)customStateForKey:(UIConfigurationStateCustomKey)key; // - (void)setCustomState:(nullable id)customState forKey:(UIConfigurationStateCustomKey)key; // - (nullable id)objectForKeyedSubscript:(UIConfigurationStateCustomKey)key; // - (void)setObject:(nullable id)obj forKeyedSubscript:(UIConfigurationStateCustomKey)key; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIViewConfigurationState #define _REWRITER_typedef_UIViewConfigurationState typedef struct objc_object UIViewConfigurationState; typedef struct {} _objc_exc_UIViewConfigurationState; #endif struct UIViewConfigurationState_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTraitCollection:(UITraitCollection *)traitCollection __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, strong) UITraitCollection *traitCollection; // @property (nonatomic, getter=isDisabled) BOOL disabled; // @property (nonatomic, getter=isHighlighted) BOOL highlighted; // @property (nonatomic, getter=isSelected) BOOL selected; // @property (nonatomic, getter=isFocused) BOOL focused; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UICellConfigurationDragState; enum { UICellConfigurationDragStateNone, UICellConfigurationDragStateLifting, UICellConfigurationDragStateDragging } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef NSInteger UICellConfigurationDropState; enum { UICellConfigurationDropStateNone, UICellConfigurationDropStateNotTargeted, UICellConfigurationDropStateTargeted } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UICellConfigurationState #define _REWRITER_typedef_UICellConfigurationState typedef struct objc_object UICellConfigurationState; typedef struct {} _objc_exc_UICellConfigurationState; #endif struct UICellConfigurationState_IMPL { struct UIViewConfigurationState_IMPL UIViewConfigurationState_IVARS; }; // @property (nonatomic, getter=isEditing) BOOL editing; // @property (nonatomic, getter=isExpanded) BOOL expanded; // @property (nonatomic, getter=isSwiped) BOOL swiped; // @property (nonatomic, getter=isReordering) BOOL reordering; // @property (nonatomic) UICellConfigurationDragState cellDragState __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic) UICellConfigurationDropState cellDropState __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif typedef UIColor *_Nonnull (*UIConfigurationColorTransformer)(UIColor *color) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) const UIConfigurationColorTransformer UIConfigurationColorTransformerGrayscale __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) const UIConfigurationColorTransformer UIConfigurationColorTransformerPreferredTint __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) const UIConfigurationColorTransformer UIConfigurationColorTransformerMonochromeTint __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIConfigurationState; // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif // @class UIVisualEffect; #ifndef _REWRITER_typedef_UIVisualEffect #define _REWRITER_typedef_UIVisualEffect typedef struct objc_object UIVisualEffect; typedef struct {} _objc_exc_UIVisualEffect; #endif // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIBackgroundConfiguration #define _REWRITER_typedef_UIBackgroundConfiguration typedef struct objc_object UIBackgroundConfiguration; typedef struct {} _objc_exc_UIBackgroundConfiguration; #endif struct UIBackgroundConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)clearConfiguration; // + (instancetype)listPlainCellConfiguration; // + (instancetype)listPlainHeaderFooterConfiguration; // + (instancetype)listGroupedCellConfiguration; // + (instancetype)listGroupedHeaderFooterConfiguration; // + (instancetype)listSidebarHeaderConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)listSidebarCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)listAccompaniedSidebarCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (instancetype)updatedConfigurationForState:(id<UIConfigurationState>)state; // @property (nonatomic, strong, nullable) UIView *customView; // @property (nonatomic) CGFloat cornerRadius; // @property (nonatomic) NSDirectionalEdgeInsets backgroundInsets; // @property (nonatomic) NSDirectionalRectEdge edgesAddingLayoutMarginsToBackgroundInsets; // @property (nonatomic, strong, nullable) UIColor *backgroundColor; // @property (nonatomic, copy, nullable) UIConfigurationColorTransformer backgroundColorTransformer; // - (UIColor *)resolvedBackgroundColorForTintColor:(UIColor *)tintColor; // @property (nonatomic, copy, nullable) UIVisualEffect *visualEffect; // @property (nonatomic, strong, nullable) UIColor *strokeColor; // @property (nonatomic, copy, nullable) UIConfigurationColorTransformer strokeColorTransformer; // - (UIColor *)resolvedStrokeColorForTintColor:(UIColor *)tintColor; // @property (nonatomic) CGFloat strokeWidth; // @property (nonatomic) CGFloat strokeOutset; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIConfigurationState; // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif // @protocol UIContentView; __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) // @protocol UIContentConfiguration <NSObject, NSCopying> // - (__kindof UIView<UIContentView> *)makeContentView; // - (instancetype)updatedConfigurationForState:(id<UIConfigurationState>)state; /* @end */ __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) // @protocol UIContentView <NSObject> // @property (nonatomic, copy) id<UIContentConfiguration> configuration; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @class UIImageSymbolConfiguration; #ifndef _REWRITER_typedef_UIImageSymbolConfiguration #define _REWRITER_typedef_UIImageSymbolConfiguration typedef struct objc_object UIImageSymbolConfiguration; typedef struct {} _objc_exc_UIImageSymbolConfiguration; #endif // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIListContentImageProperties #define _REWRITER_typedef_UIListContentImageProperties typedef struct objc_object UIListContentImageProperties; typedef struct {} _objc_exc_UIListContentImageProperties; #endif struct UIListContentImageProperties_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, copy, nullable) UIImageSymbolConfiguration *preferredSymbolConfiguration; // @property (nonatomic, strong, nullable) UIColor *tintColor; // @property (nonatomic, copy, nullable) UIConfigurationColorTransformer tintColorTransformer; // - (UIColor *)resolvedTintColorForTintColor:(UIColor *)tintColor; // @property (nonatomic) CGFloat cornerRadius; // @property (nonatomic) CGSize maximumSize; // @property (nonatomic) CGSize reservedLayoutSize; // @property (nonatomic) BOOL accessibilityIgnoresInvertColors; /* @end */ extern "C" __attribute__((visibility ("default"))) const CGFloat UIListContentImageStandardDimension __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIFont; #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif typedef NSInteger UIListContentTextAlignment; enum { UIListContentTextAlignmentNatural, UIListContentTextAlignmentCenter, UIListContentTextAlignmentJustified } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); typedef NSInteger UIListContentTextTransform; enum { UIListContentTextTransformNone, UIListContentTextTransformUppercase, UIListContentTextTransformLowercase, UIListContentTextTransformCapitalized } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIListContentTextProperties #define _REWRITER_typedef_UIListContentTextProperties typedef struct objc_object UIListContentTextProperties; typedef struct {} _objc_exc_UIListContentTextProperties; #endif struct UIListContentTextProperties_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, strong) UIFont *font; // @property (nonatomic, strong) UIColor *color; // @property (nonatomic, copy, nullable) UIConfigurationColorTransformer colorTransformer; // - (UIColor *)resolvedColor; // @property (nonatomic) UIListContentTextAlignment alignment; // @property (nonatomic) NSLineBreakMode lineBreakMode; // @property (nonatomic) NSInteger numberOfLines; // @property (nonatomic) BOOL adjustsFontSizeToFitWidth; // @property (nonatomic) CGFloat minimumScaleFactor; // @property (nonatomic) BOOL allowsDefaultTighteningForTruncation; // @property (nonatomic) BOOL adjustsFontForContentSizeCategory; // @property (nonatomic) UIListContentTextTransform transform; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIListContentConfiguration #define _REWRITER_typedef_UIListContentConfiguration typedef struct objc_object UIListContentConfiguration; typedef struct {} _objc_exc_UIListContentConfiguration; #endif struct UIListContentConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)cellConfiguration; // + (instancetype)subtitleCellConfiguration; // + (instancetype)valueCellConfiguration; // + (instancetype)plainHeaderConfiguration; // + (instancetype)plainFooterConfiguration; // + (instancetype)groupedHeaderConfiguration; // + (instancetype)groupedFooterConfiguration; // + (instancetype)sidebarCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)sidebarSubtitleCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)accompaniedSidebarCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)accompaniedSidebarSubtitleCellConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)sidebarHeaderConfiguration __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, strong, nullable) UIImage *image; // @property (nonatomic, readonly) UIListContentImageProperties *imageProperties; // @property (nonatomic, copy, nullable) NSString *text; // @property (nonatomic, copy, nullable) NSAttributedString *attributedText; // @property (nonatomic, readonly) UIListContentTextProperties *textProperties; // @property (nonatomic, copy, nullable) NSString *secondaryText; // @property (nonatomic, copy, nullable) NSAttributedString *secondaryAttributedText; // @property (nonatomic, readonly) UIListContentTextProperties *secondaryTextProperties; // @property (nonatomic) UIAxis axesPreservingSuperviewLayoutMargins; // @property (nonatomic) NSDirectionalEdgeInsets directionalLayoutMargins; // @property (nonatomic) BOOL prefersSideBySideTextAndSecondaryText; // @property (nonatomic) CGFloat imageToTextPadding; // @property (nonatomic) CGFloat textToSecondaryTextHorizontalPadding; // @property (nonatomic) CGFloat textToSecondaryTextVerticalPadding; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))) #ifndef _REWRITER_typedef_UIListContentView #define _REWRITER_typedef_UIListContentView typedef struct objc_object UIListContentView; typedef struct {} _objc_exc_UIListContentView; #endif struct UIListContentView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithConfiguration:(UIListContentConfiguration *)configuration __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithFrame:(CGRect)frame __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, copy) UIListContentConfiguration *configuration; // @property (nonatomic, strong, readonly, nullable) UILayoutGuide *textLayoutGuide; // @property (nonatomic, strong, readonly, nullable) UILayoutGuide *secondaryTextLayoutGuide; // @property (nonatomic, strong, readonly, nullable) UILayoutGuide *imageLayoutGuide; /* @end */ #pragma clang assume_nonnull end __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))) typedef CFIndex UIKeyboardHIDUsage; enum { UIKeyboardHIDUsageKeyboardErrorRollOver = 0x01, UIKeyboardHIDUsageKeyboardPOSTFail = 0x02, UIKeyboardHIDUsageKeyboardErrorUndefined = 0x03, UIKeyboardHIDUsageKeyboardA = 0x04, UIKeyboardHIDUsageKeyboardB = 0x05, UIKeyboardHIDUsageKeyboardC = 0x06, UIKeyboardHIDUsageKeyboardD = 0x07, UIKeyboardHIDUsageKeyboardE = 0x08, UIKeyboardHIDUsageKeyboardF = 0x09, UIKeyboardHIDUsageKeyboardG = 0x0A, UIKeyboardHIDUsageKeyboardH = 0x0B, UIKeyboardHIDUsageKeyboardI = 0x0C, UIKeyboardHIDUsageKeyboardJ = 0x0D, UIKeyboardHIDUsageKeyboardK = 0x0E, UIKeyboardHIDUsageKeyboardL = 0x0F, UIKeyboardHIDUsageKeyboardM = 0x10, UIKeyboardHIDUsageKeyboardN = 0x11, UIKeyboardHIDUsageKeyboardO = 0x12, UIKeyboardHIDUsageKeyboardP = 0x13, UIKeyboardHIDUsageKeyboardQ = 0x14, UIKeyboardHIDUsageKeyboardR = 0x15, UIKeyboardHIDUsageKeyboardS = 0x16, UIKeyboardHIDUsageKeyboardT = 0x17, UIKeyboardHIDUsageKeyboardU = 0x18, UIKeyboardHIDUsageKeyboardV = 0x19, UIKeyboardHIDUsageKeyboardW = 0x1A, UIKeyboardHIDUsageKeyboardX = 0x1B, UIKeyboardHIDUsageKeyboardY = 0x1C, UIKeyboardHIDUsageKeyboardZ = 0x1D, UIKeyboardHIDUsageKeyboard1 = 0x1E, UIKeyboardHIDUsageKeyboard2 = 0x1F, UIKeyboardHIDUsageKeyboard3 = 0x20, UIKeyboardHIDUsageKeyboard4 = 0x21, UIKeyboardHIDUsageKeyboard5 = 0x22, UIKeyboardHIDUsageKeyboard6 = 0x23, UIKeyboardHIDUsageKeyboard7 = 0x24, UIKeyboardHIDUsageKeyboard8 = 0x25, UIKeyboardHIDUsageKeyboard9 = 0x26, UIKeyboardHIDUsageKeyboard0 = 0x27, UIKeyboardHIDUsageKeyboardReturnOrEnter = 0x28, UIKeyboardHIDUsageKeyboardEscape = 0x29, UIKeyboardHIDUsageKeyboardDeleteOrBackspace = 0x2A, UIKeyboardHIDUsageKeyboardTab = 0x2B, UIKeyboardHIDUsageKeyboardSpacebar = 0x2C, UIKeyboardHIDUsageKeyboardHyphen = 0x2D, UIKeyboardHIDUsageKeyboardEqualSign = 0x2E, UIKeyboardHIDUsageKeyboardOpenBracket = 0x2F, UIKeyboardHIDUsageKeyboardCloseBracket = 0x30, UIKeyboardHIDUsageKeyboardBackslash = 0x31, UIKeyboardHIDUsageKeyboardNonUSPound = 0x32, UIKeyboardHIDUsageKeyboardSemicolon = 0x33, UIKeyboardHIDUsageKeyboardQuote = 0x34, UIKeyboardHIDUsageKeyboardGraveAccentAndTilde = 0x35, UIKeyboardHIDUsageKeyboardComma = 0x36, UIKeyboardHIDUsageKeyboardPeriod = 0x37, UIKeyboardHIDUsageKeyboardSlash = 0x38, UIKeyboardHIDUsageKeyboardCapsLock = 0x39, UIKeyboardHIDUsageKeyboardF1 = 0x3A, UIKeyboardHIDUsageKeyboardF2 = 0x3B, UIKeyboardHIDUsageKeyboardF3 = 0x3C, UIKeyboardHIDUsageKeyboardF4 = 0x3D, UIKeyboardHIDUsageKeyboardF5 = 0x3E, UIKeyboardHIDUsageKeyboardF6 = 0x3F, UIKeyboardHIDUsageKeyboardF7 = 0x40, UIKeyboardHIDUsageKeyboardF8 = 0x41, UIKeyboardHIDUsageKeyboardF9 = 0x42, UIKeyboardHIDUsageKeyboardF10 = 0x43, UIKeyboardHIDUsageKeyboardF11 = 0x44, UIKeyboardHIDUsageKeyboardF12 = 0x45, UIKeyboardHIDUsageKeyboardPrintScreen = 0x46, UIKeyboardHIDUsageKeyboardScrollLock = 0x47, UIKeyboardHIDUsageKeyboardPause = 0x48, UIKeyboardHIDUsageKeyboardInsert = 0x49, UIKeyboardHIDUsageKeyboardHome = 0x4A, UIKeyboardHIDUsageKeyboardPageUp = 0x4B, UIKeyboardHIDUsageKeyboardDeleteForward = 0x4C, UIKeyboardHIDUsageKeyboardEnd = 0x4D, UIKeyboardHIDUsageKeyboardPageDown = 0x4E, UIKeyboardHIDUsageKeyboardRightArrow = 0x4F, UIKeyboardHIDUsageKeyboardLeftArrow = 0x50, UIKeyboardHIDUsageKeyboardDownArrow = 0x51, UIKeyboardHIDUsageKeyboardUpArrow = 0x52, UIKeyboardHIDUsageKeypadNumLock = 0x53, UIKeyboardHIDUsageKeypadSlash = 0x54, UIKeyboardHIDUsageKeypadAsterisk = 0x55, UIKeyboardHIDUsageKeypadHyphen = 0x56, UIKeyboardHIDUsageKeypadPlus = 0x57, UIKeyboardHIDUsageKeypadEnter = 0x58, UIKeyboardHIDUsageKeypad1 = 0x59, UIKeyboardHIDUsageKeypad2 = 0x5A, UIKeyboardHIDUsageKeypad3 = 0x5B, UIKeyboardHIDUsageKeypad4 = 0x5C, UIKeyboardHIDUsageKeypad5 = 0x5D, UIKeyboardHIDUsageKeypad6 = 0x5E, UIKeyboardHIDUsageKeypad7 = 0x5F, UIKeyboardHIDUsageKeypad8 = 0x60, UIKeyboardHIDUsageKeypad9 = 0x61, UIKeyboardHIDUsageKeypad0 = 0x62, UIKeyboardHIDUsageKeypadPeriod = 0x63, UIKeyboardHIDUsageKeyboardNonUSBackslash = 0x64, UIKeyboardHIDUsageKeyboardApplication = 0x65, UIKeyboardHIDUsageKeyboardPower = 0x66, UIKeyboardHIDUsageKeypadEqualSign = 0x67, UIKeyboardHIDUsageKeyboardF13 = 0x68, UIKeyboardHIDUsageKeyboardF14 = 0x69, UIKeyboardHIDUsageKeyboardF15 = 0x6A, UIKeyboardHIDUsageKeyboardF16 = 0x6B, UIKeyboardHIDUsageKeyboardF17 = 0x6C, UIKeyboardHIDUsageKeyboardF18 = 0x6D, UIKeyboardHIDUsageKeyboardF19 = 0x6E, UIKeyboardHIDUsageKeyboardF20 = 0x6F, UIKeyboardHIDUsageKeyboardF21 = 0x70, UIKeyboardHIDUsageKeyboardF22 = 0x71, UIKeyboardHIDUsageKeyboardF23 = 0x72, UIKeyboardHIDUsageKeyboardF24 = 0x73, UIKeyboardHIDUsageKeyboardExecute = 0x74, UIKeyboardHIDUsageKeyboardHelp = 0x75, UIKeyboardHIDUsageKeyboardMenu = 0x76, UIKeyboardHIDUsageKeyboardSelect = 0x77, UIKeyboardHIDUsageKeyboardStop = 0x78, UIKeyboardHIDUsageKeyboardAgain = 0x79, UIKeyboardHIDUsageKeyboardUndo = 0x7A, UIKeyboardHIDUsageKeyboardCut = 0x7B, UIKeyboardHIDUsageKeyboardCopy = 0x7C, UIKeyboardHIDUsageKeyboardPaste = 0x7D, UIKeyboardHIDUsageKeyboardFind = 0x7E, UIKeyboardHIDUsageKeyboardMute = 0x7F, UIKeyboardHIDUsageKeyboardVolumeUp = 0x80, UIKeyboardHIDUsageKeyboardVolumeDown = 0x81, UIKeyboardHIDUsageKeyboardLockingCapsLock = 0x82, UIKeyboardHIDUsageKeyboardLockingNumLock = 0x83, UIKeyboardHIDUsageKeyboardLockingScrollLock = 0x84, UIKeyboardHIDUsageKeypadComma = 0x85, UIKeyboardHIDUsageKeypadEqualSignAS400 = 0x86, UIKeyboardHIDUsageKeyboardInternational1 = 0x87, UIKeyboardHIDUsageKeyboardInternational2 = 0x88, UIKeyboardHIDUsageKeyboardInternational3 = 0x89, UIKeyboardHIDUsageKeyboardInternational4 = 0x8A, UIKeyboardHIDUsageKeyboardInternational5 = 0x8B, UIKeyboardHIDUsageKeyboardInternational6 = 0x8C, UIKeyboardHIDUsageKeyboardInternational7 = 0x8D, UIKeyboardHIDUsageKeyboardInternational8 = 0x8E, UIKeyboardHIDUsageKeyboardInternational9 = 0x8F, UIKeyboardHIDUsageKeyboardLANG1 = 0x90, UIKeyboardHIDUsageKeyboardLANG2 = 0x91, UIKeyboardHIDUsageKeyboardLANG3 = 0x92, UIKeyboardHIDUsageKeyboardLANG4 = 0x93, UIKeyboardHIDUsageKeyboardLANG5 = 0x94, UIKeyboardHIDUsageKeyboardLANG6 = 0x95, UIKeyboardHIDUsageKeyboardLANG7 = 0x96, UIKeyboardHIDUsageKeyboardLANG8 = 0x97, UIKeyboardHIDUsageKeyboardLANG9 = 0x98, UIKeyboardHIDUsageKeyboardAlternateErase = 0x99, UIKeyboardHIDUsageKeyboardSysReqOrAttention = 0x9A, UIKeyboardHIDUsageKeyboardCancel = 0x9B, UIKeyboardHIDUsageKeyboardClear = 0x9C, UIKeyboardHIDUsageKeyboardPrior = 0x9D, UIKeyboardHIDUsageKeyboardReturn = 0x9E, UIKeyboardHIDUsageKeyboardSeparator = 0x9F, UIKeyboardHIDUsageKeyboardOut = 0xA0, UIKeyboardHIDUsageKeyboardOper = 0xA1, UIKeyboardHIDUsageKeyboardClearOrAgain = 0xA2, UIKeyboardHIDUsageKeyboardCrSelOrProps = 0xA3, UIKeyboardHIDUsageKeyboardExSel = 0xA4, UIKeyboardHIDUsageKeyboardLeftControl = 0xE0, UIKeyboardHIDUsageKeyboardLeftShift = 0xE1, UIKeyboardHIDUsageKeyboardLeftAlt = 0xE2, UIKeyboardHIDUsageKeyboardLeftGUI = 0xE3, UIKeyboardHIDUsageKeyboardRightControl = 0xE4, UIKeyboardHIDUsageKeyboardRightShift = 0xE5, UIKeyboardHIDUsageKeyboardRightAlt = 0xE6, UIKeyboardHIDUsageKeyboardRightGUI = 0xE7, UIKeyboardHIDUsageKeyboard_Reserved = 0xFFFF, UIKeyboardHIDUsageKeyboardHangul = UIKeyboardHIDUsageKeyboardLANG1, UIKeyboardHIDUsageKeyboardHanja = UIKeyboardHIDUsageKeyboardLANG2, UIKeyboardHIDUsageKeyboardKanaSwitch = UIKeyboardHIDUsageKeyboardLANG1, UIKeyboardHIDUsageKeyboardAlphanumericSwitch = UIKeyboardHIDUsageKeyboardLANG2, UIKeyboardHIDUsageKeyboardKatakana = UIKeyboardHIDUsageKeyboardLANG3, UIKeyboardHIDUsageKeyboardHiragana = UIKeyboardHIDUsageKeyboardLANG4, UIKeyboardHIDUsageKeyboardZenkakuHankakuKanji = UIKeyboardHIDUsageKeyboardLANG5, }; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIKey #define _REWRITER_typedef_UIKey typedef struct objc_object UIKey; typedef struct {} _objc_exc_UIKey; #endif struct UIKey_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSString *characters; // @property (nonatomic, readonly) NSString *charactersIgnoringModifiers; // @property (nonatomic, readonly) UIKeyModifierFlags modifierFlags; // @property (nonatomic, readonly) UIKeyboardHIDUsage keyCode; /* @end */ #pragma clang assume_nonnull end typedef NSUInteger UIDataDetectorTypes; enum { UIDataDetectorTypePhoneNumber = 1 << 0, UIDataDetectorTypeLink = 1 << 1, UIDataDetectorTypeAddress __attribute__((availability(ios,introduced=4.0))) = 1 << 2, UIDataDetectorTypeCalendarEvent __attribute__((availability(ios,introduced=4.0))) = 1 << 3, UIDataDetectorTypeShipmentTrackingNumber __attribute__((availability(ios,introduced=10.0))) = 1 << 4, UIDataDetectorTypeFlightNumber __attribute__((availability(ios,introduced=10.0))) = 1 << 5, UIDataDetectorTypeLookupSuggestion __attribute__((availability(ios,introduced=10.0))) = 1 << 6, UIDataDetectorTypeNone = 0, UIDataDetectorTypeAll = (9223372036854775807L *2UL+1UL) } __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull begin typedef NSInteger UIDatePickerMode; enum { UIDatePickerModeTime, UIDatePickerModeDate, UIDatePickerModeDateAndTime, UIDatePickerModeCountDownTimer, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIDatePickerStyle; enum { UIDatePickerStyleAutomatic, UIDatePickerStyleWheels, UIDatePickerStyleCompact, UIDatePickerStyleInline __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), } __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDatePicker #define _REWRITER_typedef_UIDatePicker typedef struct objc_object UIDatePicker; typedef struct {} _objc_exc_UIDatePicker; #endif struct UIDatePicker_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property (nonatomic) UIDatePickerMode datePickerMode; // @property (nullable, nonatomic, strong) NSLocale *locale; // @property (null_resettable, nonatomic, copy) NSCalendar *calendar; // @property (nullable, nonatomic, strong) NSTimeZone *timeZone; // @property (nonatomic, strong) NSDate *date; // @property (nullable, nonatomic, strong) NSDate *minimumDate; // @property (nullable, nonatomic, strong) NSDate *maximumDate; // @property (nonatomic) NSTimeInterval countDownDuration; // @property (nonatomic) NSInteger minuteInterval; // - (void)setDate:(NSDate *)date animated:(BOOL)animated; // @property (nonatomic, readwrite, assign) UIDatePickerStyle preferredDatePickerStyle __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly, assign) UIDatePickerStyle datePickerStyle __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIDocumentChangeKind; enum { UIDocumentChangeDone, UIDocumentChangeUndone, UIDocumentChangeRedone, UIDocumentChangeCleared } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIDocumentSaveOperation; enum { UIDocumentSaveForCreating, UIDocumentSaveForOverwriting } __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIDocumentState; enum { UIDocumentStateNormal = 0, UIDocumentStateClosed = 1 << 0, UIDocumentStateInConflict = 1 << 1, UIDocumentStateSavingError = 1 << 2, UIDocumentStateEditingDisabled = 1 << 3, UIDocumentStateProgressAvailable = 1 << 4 } __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIDocumentStateChangedNotification __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocument #define _REWRITER_typedef_UIDocument typedef struct objc_object UIDocument; typedef struct {} _objc_exc_UIDocument; #endif struct UIDocument_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithFileURL:(NSURL *)url __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // @property (readonly) NSURL *fileURL __attribute__((availability(tvos,unavailable))); // @property (readonly, copy) NSString *localizedName __attribute__((availability(tvos,unavailable))); // @property (readonly, copy, nullable) NSString *fileType __attribute__((availability(tvos,unavailable))); // @property (copy, nullable) NSDate *fileModificationDate __attribute__((availability(tvos,unavailable))); // @property (readonly) UIDocumentState documentState __attribute__((availability(tvos,unavailable))); // @property (readonly, nullable) NSProgress *progress __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); // - (void)openWithCompletionHandler:(void (^ _Nullable)(BOOL success))completionHandler __attribute__((availability(tvos,unavailable))); // - (void)closeWithCompletionHandler:(void (^ _Nullable)(BOOL success))completionHandler __attribute__((availability(tvos,unavailable))); // - (BOOL)loadFromContents:(id)contents ofType:(nullable NSString *)typeName error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (nullable id)contentsForType:(NSString *)typeName error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (void)disableEditing __attribute__((availability(tvos,unavailable))); // - (void)enableEditing __attribute__((availability(tvos,unavailable))); // @property (strong, null_resettable) NSUndoManager *undoManager __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) BOOL hasUnsavedChanges __attribute__((availability(tvos,unavailable))); // - (void)updateChangeCount:(UIDocumentChangeKind)change __attribute__((availability(tvos,unavailable))); // - (id)changeCountTokenForSaveOperation:(UIDocumentSaveOperation)saveOperation __attribute__((availability(tvos,unavailable))); // - (void)updateChangeCountWithToken:(id)changeCountToken forSaveOperation:(UIDocumentSaveOperation)saveOperation __attribute__((availability(tvos,unavailable))); // - (void)saveToURL:(NSURL *)url forSaveOperation:(UIDocumentSaveOperation)saveOperation completionHandler:(void (^ _Nullable)(BOOL success))completionHandler __attribute__((availability(tvos,unavailable))); // - (void)autosaveWithCompletionHandler:(void (^ _Nullable)(BOOL success))completionHandler __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly, nullable) NSString *savingFileType __attribute__((availability(tvos,unavailable))); // - (NSString *)fileNameExtensionForType:(nullable NSString *)typeName saveOperation:(UIDocumentSaveOperation)saveOperation __attribute__((availability(tvos,unavailable))); // - (BOOL)writeContents:(id)contents andAttributes:(nullable NSDictionary *)additionalFileAttributes safelyToURL:(NSURL *)url forSaveOperation:(UIDocumentSaveOperation)saveOperation error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (BOOL)writeContents:(id)contents toURL:(NSURL *)url forSaveOperation:(UIDocumentSaveOperation)saveOperation originalContentsURL:(nullable NSURL *)originalContentsURL error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (nullable NSDictionary *)fileAttributesToWriteToURL:(NSURL *)url forSaveOperation:(UIDocumentSaveOperation)saveOperation error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (BOOL)readFromURL:(NSURL *)url error:(NSError **)outError __attribute__((availability(tvos,unavailable))); // - (void)performAsynchronousFileAccessUsingBlock:(void (^)(void))block __attribute__((availability(tvos,unavailable))); // - (void)handleError:(NSError *)error userInteractionPermitted:(BOOL)userInteractionPermitted __attribute__((availability(tvos,unavailable))); // - (void)finishedHandlingError:(NSError *)error recovered:(BOOL)recovered __attribute__((availability(tvos,unavailable))); // - (void)userInteractionNoLongerPermittedForError:(NSError *)error __attribute__((availability(tvos,unavailable))); // - (void)revertToContentsOfURL:(NSURL *)url completionHandler:(void (^ _Nullable)(BOOL success))completionHandler __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString* const NSUserActivityDocumentURLKey __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @interface UIDocument (ActivityContinuation) <UIUserActivityRestoring> // @property (nonatomic, strong, nullable) NSUserActivity *userActivity __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // - (void)updateUserActivityState:(NSUserActivity *)userActivity __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // - (void)restoreUserActivityState:(NSUserActivity *)userActivity __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDocumentPickerViewController; #ifndef _REWRITER_typedef_UIDocumentPickerViewController #define _REWRITER_typedef_UIDocumentPickerViewController typedef struct objc_object UIDocumentPickerViewController; typedef struct {} _objc_exc_UIDocumentPickerViewController; #endif #ifndef _REWRITER_typedef_UIDocumentMenuViewController #define _REWRITER_typedef_UIDocumentMenuViewController typedef struct objc_object UIDocumentMenuViewController; typedef struct {} _objc_exc_UIDocumentMenuViewController; #endif #ifndef _REWRITER_typedef_UTType #define _REWRITER_typedef_UTType typedef struct objc_object UTType; typedef struct {} _objc_exc_UTType; #endif __attribute__((availability(tvos,unavailable))) // @protocol UIDocumentPickerDelegate <NSObject> /* @optional */ // - (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentsAtURLs:(NSArray <NSURL *>*)urls __attribute__((availability(ios,introduced=11.0))); // - (void)documentPickerWasCancelled:(UIDocumentPickerViewController *)controller; // - (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url __attribute__((availability(ios,introduced=8.0,deprecated=11.0,replacement="documentPicker:didPickDocumentsAtURLs:"))); /* @end */ typedef NSUInteger UIDocumentPickerMode; enum { UIDocumentPickerModeImport, UIDocumentPickerModeOpen, UIDocumentPickerModeExportToService, UIDocumentPickerModeMoveToService } __attribute__((availability(ios,introduced=8.0,deprecated=14.0,message="Use appropriate initializers instead"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentPickerViewController #define _REWRITER_typedef_UIDocumentPickerViewController typedef struct objc_object UIDocumentPickerViewController; typedef struct {} _objc_exc_UIDocumentPickerViewController; #endif struct UIDocumentPickerViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithDocumentTypes:(NSArray <NSString *>*)allowedUTIs inMode:(UIDocumentPickerMode)mode __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=8.0,deprecated=14.0,replacement="use initForOpeningContentTypes:asCopy: or initForOpeningContentTypes: instead"))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initForOpeningContentTypes:(NSArray <UTType *>*)contentTypes asCopy:(BOOL)asCopy __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initForOpeningContentTypes:(NSArray <UTType *>*)contentTypes __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithURL:(NSURL *)url inMode:(UIDocumentPickerMode)mode __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=8.0,deprecated=14.0,replacement="use initForExportingURLs:asCopy: or initForExportingURLs: instead"))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithURLs:(NSArray <NSURL *> *)urls inMode:(UIDocumentPickerMode)mode __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=11.0,deprecated=14.0,replacement="use initForExportinitForExportingURLsingURLs:asCopy: or initForExportingURLs: instead"))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initForExportingURLs:(NSArray <NSURL *> *)urls asCopy:(BOOL)asCopy __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // - (instancetype)initForExportingURLs:(NSArray <NSURL *> *)urls __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, weak) id<UIDocumentPickerDelegate> delegate; // @property (nonatomic, assign, readonly) UIDocumentPickerMode documentPickerMode __attribute__((availability(ios,introduced=8.0,deprecated=14.0,message="Use appropriate initializers instead"))); // @property (nonatomic, assign) BOOL allowsMultipleSelection __attribute__((availability(ios,introduced=11.0))); // @property (assign, nonatomic) BOOL shouldShowFileExtensions __attribute__((availability(ios,introduced=13.0))); // @property (nullable, nonatomic, copy) NSURL *directoryURL __attribute__((availability(ios,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UIDocumentMenuOrder; enum { UIDocumentMenuOrderFirst, UIDocumentMenuOrderLast } __attribute__((availability(ios,introduced=8_0,deprecated=11_0,message="" ))) __attribute__((availability(tvos,unavailable))); __attribute__((availability(ios,introduced=8.0,deprecated=13.0,message="UIDocumentMenuDelegate is deprecated. Use UIDocumentPickerViewController directly."))) __attribute__((availability(tvos,unavailable))) // @protocol UIDocumentMenuDelegate <NSObject> // - (void)documentMenu:(UIDocumentMenuViewController *)documentMenu didPickDocumentPicker:(UIDocumentPickerViewController *)documentPicker; /* @optional */ // - (void)documentMenuWasCancelled:(UIDocumentMenuViewController *)documentMenu; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=11.0,message="UIDocumentMenuViewController is deprecated. Use UIDocumentPickerViewController directly."))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentMenuViewController #define _REWRITER_typedef_UIDocumentMenuViewController typedef struct objc_object UIDocumentMenuViewController; typedef struct {} _objc_exc_UIDocumentMenuViewController; #endif struct UIDocumentMenuViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithDocumentTypes:(NSArray <NSString *> *)allowedUTIs inMode:(UIDocumentPickerMode)mode __attribute__((objc_designated_initializer)); // - (instancetype)initWithURL:(NSURL *)url inMode:(UIDocumentPickerMode)mode __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (void)addOptionWithTitle:(NSString *)title image:(nullable UIImage *)image order:(UIDocumentMenuOrder)order handler:(void (^)(void))handler; // @property (nullable, nonatomic, weak) id<UIDocumentMenuDelegate> delegate; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=14.0,message="Use enumeration based NSFileProviderExtension instead"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentPickerExtensionViewController #define _REWRITER_typedef_UIDocumentPickerExtensionViewController typedef struct objc_object UIDocumentPickerExtensionViewController; typedef struct {} _objc_exc_UIDocumentPickerExtensionViewController; #endif struct UIDocumentPickerExtensionViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (void)dismissGrantingAccessToURL:(nullable NSURL *)url; // - (void)prepareForPresentationInMode:(UIDocumentPickerMode)mode; // @property (nonatomic, readonly, assign) UIDocumentPickerMode documentPickerMode; // @property (nullable, nonatomic, readonly, copy) NSURL *originalURL; // @property (nullable, nonatomic, readonly, copy) NSArray<NSString *> *validTypes; // @property (nonatomic, readonly, copy) NSString *providerIdentifier; // @property (nullable, nonatomic, readonly, copy) NSURL *documentStorageURL; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UICloudSharingController; #ifndef _REWRITER_typedef_UICloudSharingController #define _REWRITER_typedef_UICloudSharingController typedef struct objc_object UICloudSharingController; typedef struct {} _objc_exc_UICloudSharingController; #endif #ifndef _REWRITER_typedef_CKShare #define _REWRITER_typedef_CKShare typedef struct objc_object CKShare; typedef struct {} _objc_exc_CKShare; #endif #ifndef _REWRITER_typedef_CKContainer #define _REWRITER_typedef_CKContainer typedef struct objc_object CKContainer; typedef struct {} _objc_exc_CKContainer; #endif // @protocol UIActivityItemSource; typedef NSUInteger UICloudSharingPermissionOptions; enum { UICloudSharingPermissionStandard = 0, UICloudSharingPermissionAllowPublic = 1 << 0, UICloudSharingPermissionAllowPrivate = 1 << 1, UICloudSharingPermissionAllowReadOnly = 1 << 2, UICloudSharingPermissionAllowReadWrite = 1 << 3, } __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UICloudSharingControllerDelegate <NSObject> // - (void)cloudSharingController:(UICloudSharingController *)csc failedToSaveShareWithError:(NSError *)error; // - (nullable NSString *)itemTitleForCloudSharingController:(UICloudSharingController *)csc; /* @optional */ // - (nullable NSData *)itemThumbnailDataForCloudSharingController:(UICloudSharingController *)csc; // - (nullable NSString *)itemTypeForCloudSharingController:(UICloudSharingController *)csc; // - (void)cloudSharingControllerDidSaveShare:(UICloudSharingController *)csc; // - (void)cloudSharingControllerDidStopSharing:(UICloudSharingController *)csc; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UICloudSharingController #define _REWRITER_typedef_UICloudSharingController typedef struct objc_object UICloudSharingController; typedef struct {} _objc_exc_UICloudSharingController; #endif struct UICloudSharingController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((unavailable)); // - (instancetype)initWithPreparationHandler:(void (^)(UICloudSharingController *controller, void (^preparationCompletionHandler)(CKShare * _Nullable, CKContainer * _Nullable, NSError * _Nullable)))preparationHandler; // - (instancetype)initWithShare:(CKShare *)share container:(CKContainer *)container; // @property (nonatomic, weak) id<UICloudSharingControllerDelegate> delegate; // @property (nonatomic, readonly, strong, nullable) CKShare *share; // @property (nonatomic) UICloudSharingPermissionOptions availablePermissions; // - (id <UIActivityItemSource>)activityItemSource; /* @end */ #pragma clang assume_nonnull end // @class UTType; #ifndef _REWRITER_typedef_UTType #define _REWRITER_typedef_UTType typedef struct objc_object UTType; typedef struct {} _objc_exc_UTType; #endif #pragma clang assume_nonnull begin typedef NSString *NSFileProviderItemIdentifier __attribute__((swift_wrapper(struct))); extern "C" NSFileProviderItemIdentifier const NSFileProviderRootContainerItemIdentifier __attribute__((swift_name("NSFileProviderItemIdentifier.rootContainer"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" NSFileProviderItemIdentifier const NSFileProviderWorkingSetContainerItemIdentifier __attribute__((swift_name("NSFileProviderItemIdentifier.workingSet"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" unsigned long long const NSFileProviderFavoriteRankUnranked __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger NSFileProviderItemCapabilities; enum { NSFileProviderItemCapabilitiesAllowsReading = 1 << 0, NSFileProviderItemCapabilitiesAllowsWriting = 1 << 1, NSFileProviderItemCapabilitiesAllowsReparenting = 1 << 2, NSFileProviderItemCapabilitiesAllowsRenaming = 1 << 3, NSFileProviderItemCapabilitiesAllowsTrashing = 1 << 4, NSFileProviderItemCapabilitiesAllowsDeleting = 1 << 5, NSFileProviderItemCapabilitiesAllowsAddingSubItems = NSFileProviderItemCapabilitiesAllowsWriting, NSFileProviderItemCapabilitiesAllowsContentEnumerating = NSFileProviderItemCapabilitiesAllowsReading, NSFileProviderItemCapabilitiesAllowsAll = NSFileProviderItemCapabilitiesAllowsReading | NSFileProviderItemCapabilitiesAllowsWriting | NSFileProviderItemCapabilitiesAllowsReparenting | NSFileProviderItemCapabilitiesAllowsRenaming | NSFileProviderItemCapabilitiesAllowsTrashing | NSFileProviderItemCapabilitiesAllowsDeleting }; // @protocol NSFileProviderItem <NSObject> // @property (nonatomic, readonly, copy) NSFileProviderItemIdentifier itemIdentifier; // @property (nonatomic, readonly, copy) NSFileProviderItemIdentifier parentItemIdentifier; // @property (nonatomic, readonly, copy) NSString *filename; /* @optional */ // @property (nonatomic, readonly, copy) UTType *contentType __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(macos,introduced=11.0))); // @property (nonatomic, readonly, copy) NSString *typeIdentifier __attribute__((availability(ios,introduced=11.0,deprecated=100000,replacement="contentType"))) __attribute__((availability(macos,unavailable))); // @property (nonatomic, readonly) NSFileProviderItemCapabilities capabilities; // @property (nonatomic, readonly, copy, nullable) NSNumber *documentSize; // @property (nonatomic, readonly, copy, nullable) NSNumber *childItemCount; // @property (nonatomic, readonly, copy, nullable) NSDate *creationDate; // @property (nonatomic, readonly, copy, nullable) NSDate *contentModificationDate; // @property (nonatomic, readonly, copy, nullable) NSDate *lastUsedDate; // @property (nonatomic, readonly, copy, nullable) NSData *tagData; // @property (nonatomic, readonly, copy, nullable) NSNumber *favoriteRank; // @property (nonatomic, readonly, getter=isTrashed) BOOL trashed; // @property (nonatomic, readonly, getter=isUploaded) BOOL uploaded; // @property (nonatomic, readonly, getter=isUploading) BOOL uploading; // @property (nonatomic, readonly, copy, nullable) NSError *uploadingError; // @property (nonatomic, readonly, getter=isDownloaded) BOOL downloaded; // @property (nonatomic, readonly, getter=isDownloading) BOOL downloading; // @property (nonatomic, readonly, copy, nullable) NSError *downloadingError; // @property (nonatomic, readonly, getter=isMostRecentVersionDownloaded) BOOL mostRecentVersionDownloaded; // @property (nonatomic, readonly, getter=isShared) BOOL shared; // @property (nonatomic, readonly, getter=isSharedByCurrentUser) BOOL sharedByCurrentUser; // @property (nonatomic, strong, readonly, nullable) NSPersonNameComponents *ownerNameComponents; // @property (nonatomic, strong, readonly, nullable) NSPersonNameComponents *mostRecentEditorNameComponents; // @property (nonatomic, strong, readonly, nullable) NSData *versionIdentifier; // @property (nonatomic, strong, readonly, nullable) NSDictionary *userInfo; /* @end */ typedef id/*<NSFileProviderItem>*/ NSFileProviderItem; #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSFileProviderDomain; #ifndef _REWRITER_typedef_NSFileProviderDomain #define _REWRITER_typedef_NSFileProviderDomain typedef struct objc_object NSFileProviderDomain; typedef struct {} _objc_exc_NSFileProviderDomain; #endif __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_NSFileProviderExtension #define _REWRITER_typedef_NSFileProviderExtension typedef struct objc_object NSFileProviderExtension; typedef struct {} _objc_exc_NSFileProviderExtension; #endif struct NSFileProviderExtension_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable NSFileProviderItem)itemForIdentifier:(NSFileProviderItemIdentifier)identifier error:(NSError * _Nullable *)error __attribute__((swift_name("item(for:)"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (nullable NSURL *)URLForItemWithPersistentIdentifier:(NSFileProviderItemIdentifier)identifier; // - (nullable NSFileProviderItemIdentifier)persistentIdentifierForItemAtURL:(NSURL *)url; // - (void)providePlaceholderAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable error))completionHandler; // - (void)startProvidingItemAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable error))completionHandler __attribute__((swift_name("startProvidingItem(at:completionHandler:)"))); // - (void)stopProvidingItemAtURL:(NSURL *)url __attribute__((swift_name("stopProvidingItem(at:)"))); // - (void)itemChangedAtURL:(NSURL *)url; /* @end */ // @interface NSFileProviderExtension (Deprecated) // + (BOOL)writePlaceholderAtURL:(NSURL *)placeholderURL withMetadata:(NSDictionary <NSURLResourceKey, id> *)metadata error:(NSError **)error __attribute__((availability(ios,introduced=8.0,deprecated=11.0,message="Use the corresponding method on NSFileProviderManager instead"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // + (NSURL *)placeholderURLForURL:(NSURL *)url __attribute__((availability(ios,introduced=8.0,deprecated=11.0,replacement="NSFileProviderManager +placeholderURLForURL:"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic, readonly) NSString *providerIdentifier __attribute__((availability(ios,introduced=8.0,deprecated=11.0,replacement="NSFileProviderManager -providerIdentifier"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic, readonly) NSURL *documentStorageURL __attribute__((availability(ios,introduced=8.0,deprecated=11.0,replacement="NSFileProviderManager -documentStorageURL"))) __attribute__((availability(macos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIVisualEffect #define _REWRITER_typedef_UIVisualEffect typedef struct objc_object UIVisualEffect; typedef struct {} _objc_exc_UIVisualEffect; #endif struct UIVisualEffect_IMPL { struct NSObject_IMPL NSObject_IVARS; }; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIBlurEffectStyle; enum { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark, UIBlurEffectStyleExtraDark __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleRegular __attribute__((availability(ios,introduced=10.0))), UIBlurEffectStyleProminent __attribute__((availability(ios,introduced=10.0))), UIBlurEffectStyleSystemUltraThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThickMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemChromeMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThickMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemChromeMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemThickMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemChromeMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))), } __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIBlurEffect #define _REWRITER_typedef_UIBlurEffect typedef struct objc_object UIBlurEffect; typedef struct {} _objc_exc_UIBlurEffect; #endif struct UIBlurEffect_IMPL { struct UIVisualEffect_IMPL UIVisualEffect_IVARS; }; // + (UIBlurEffect *)effectWithStyle:(UIBlurEffectStyle)style; /* @end */ #pragma clang assume_nonnull end // @class UIBlurEffect; #ifndef _REWRITER_typedef_UIBlurEffect #define _REWRITER_typedef_UIBlurEffect typedef struct objc_object UIBlurEffect; typedef struct {} _objc_exc_UIBlurEffect; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIVibrancyEffect #define _REWRITER_typedef_UIVibrancyEffect typedef struct objc_object UIVibrancyEffect; typedef struct {} _objc_exc_UIVibrancyEffect; #endif struct UIVibrancyEffect_IMPL { struct UIVisualEffect_IMPL UIVisualEffect_IVARS; }; // + (UIVibrancyEffect *)effectForBlurEffect:(UIBlurEffect *)blurEffect; /* @end */ typedef NSInteger UIVibrancyEffectStyle; enum { UIVibrancyEffectStyleLabel, UIVibrancyEffectStyleSecondaryLabel, UIVibrancyEffectStyleTertiaryLabel, UIVibrancyEffectStyleQuaternaryLabel, UIVibrancyEffectStyleFill, UIVibrancyEffectStyleSecondaryFill, UIVibrancyEffectStyleTertiaryFill, UIVibrancyEffectStyleSeparator, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @interface UIVibrancyEffect (AdditionalStyles) // + (UIVibrancyEffect *)effectForBlurEffect:(UIBlurEffect *)blurEffect style:(UIVibrancyEffectStyle)style __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIVisualEffectView #define _REWRITER_typedef_UIVisualEffectView typedef struct objc_object UIVisualEffectView; typedef struct {} _objc_exc_UIVisualEffectView; #endif struct UIVisualEffectView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property (nonatomic, strong, readonly) UIView *contentView; // @property (nonatomic, copy, nullable) UIVisualEffect *effect; // - (instancetype)initWithEffect:(nullable UIVisualEffect *)effect __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIFontPickerViewControllerConfiguration #define _REWRITER_typedef_UIFontPickerViewControllerConfiguration typedef struct objc_object UIFontPickerViewControllerConfiguration; typedef struct {} _objc_exc_UIFontPickerViewControllerConfiguration; #endif struct UIFontPickerViewControllerConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic) BOOL includeFaces; // @property (nonatomic) BOOL displayUsingSystemFont; // @property (nonatomic) UIFontDescriptorSymbolicTraits filteredTraits; // @property (nullable, copy, nonatomic) NSPredicate *filteredLanguagesPredicate; // + (nullable NSPredicate *)filterPredicateForFilteredLanguages:(NSArray<NSString *> *)filteredLanguages; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIFontPickerViewController; #ifndef _REWRITER_typedef_UIFontPickerViewController #define _REWRITER_typedef_UIFontPickerViewController typedef struct objc_object UIFontPickerViewController; typedef struct {} _objc_exc_UIFontPickerViewController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UIFontPickerViewControllerDelegate <NSObject> /* @optional */ // - (void)fontPickerViewControllerDidCancel:(UIFontPickerViewController *)viewController; // - (void)fontPickerViewControllerDidPickFont:(UIFontPickerViewController *)viewController; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIFontPickerViewController #define _REWRITER_typedef_UIFontPickerViewController typedef struct objc_object UIFontPickerViewController; typedef struct {} _objc_exc_UIFontPickerViewController; #endif struct UIFontPickerViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithConfiguration:(UIFontPickerViewControllerConfiguration *)configuration __attribute__((objc_designated_initializer)); // @property (readonly, copy, nonatomic) UIFontPickerViewControllerConfiguration *configuration; // @property (nullable, weak, nonatomic) id<UIFontPickerViewControllerDelegate> delegate; // @property (nullable, strong, nonatomic) UIFontDescriptor *selectedFontDescriptor; // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsRendererFormat #define _REWRITER_typedef_UIGraphicsRendererFormat typedef struct objc_object UIGraphicsRendererFormat; typedef struct {} _objc_exc_UIGraphicsRendererFormat; #endif struct UIGraphicsRendererFormat_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)defaultFormat __attribute__((availability(tvos,introduced=10.0,deprecated=11.0,replacement="preferredFormat"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))); // + (instancetype)preferredFormat __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(watchos,introduced=4.0))); // @property (nonatomic, readonly) CGRect bounds; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsRendererContext #define _REWRITER_typedef_UIGraphicsRendererContext typedef struct objc_object UIGraphicsRendererContext; typedef struct {} _objc_exc_UIGraphicsRendererContext; #endif struct UIGraphicsRendererContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) CGContextRef CGContext; // @property (nonatomic, readonly) __kindof UIGraphicsRendererFormat *format; // - (void)fillRect:(CGRect)rect; // - (void)fillRect:(CGRect)rect blendMode:(CGBlendMode)blendMode; // - (void)strokeRect:(CGRect)rect; // - (void)strokeRect:(CGRect)rect blendMode:(CGBlendMode)blendMode; // - (void)clipToRect:(CGRect)rect; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsRenderer #define _REWRITER_typedef_UIGraphicsRenderer typedef struct objc_object UIGraphicsRenderer; typedef struct {} _objc_exc_UIGraphicsRenderer; #endif struct UIGraphicsRenderer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithBounds:(CGRect)bounds; // - (instancetype)initWithBounds:(CGRect)bounds format:(UIGraphicsRendererFormat *)format __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) __kindof UIGraphicsRendererFormat *format; // @property (nonatomic, readonly) BOOL allowsImageOutput; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIGraphicsImageRendererContext; #ifndef _REWRITER_typedef_UIGraphicsImageRendererContext #define _REWRITER_typedef_UIGraphicsImageRendererContext typedef struct objc_object UIGraphicsImageRendererContext; typedef struct {} _objc_exc_UIGraphicsImageRendererContext; #endif typedef void (*UIGraphicsImageDrawingActions)(UIGraphicsImageRendererContext *rendererContext) __attribute__((availability(ios,introduced=10.0))); typedef NSInteger UIGraphicsImageRendererFormatRange; enum { UIGraphicsImageRendererFormatRangeUnspecified = -1, UIGraphicsImageRendererFormatRangeAutomatic = 0, UIGraphicsImageRendererFormatRangeExtended, UIGraphicsImageRendererFormatRangeStandard } __attribute__((availability(ios,introduced=12.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsImageRendererFormat #define _REWRITER_typedef_UIGraphicsImageRendererFormat typedef struct objc_object UIGraphicsImageRendererFormat; typedef struct {} _objc_exc_UIGraphicsImageRendererFormat; #endif struct UIGraphicsImageRendererFormat_IMPL { struct UIGraphicsRendererFormat_IMPL UIGraphicsRendererFormat_IVARS; }; // @property (nonatomic) CGFloat scale; // @property (nonatomic) BOOL opaque; // @property (nonatomic) BOOL prefersExtendedRange __attribute__((availability(ios,introduced=10.0,deprecated=12.0,message="Use the preferredRange property instead"))); // @property (nonatomic) UIGraphicsImageRendererFormatRange preferredRange __attribute__((availability(ios,introduced=12.0))); // + (instancetype)formatForTraitCollection:(UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=11.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsImageRendererContext #define _REWRITER_typedef_UIGraphicsImageRendererContext typedef struct objc_object UIGraphicsImageRendererContext; typedef struct {} _objc_exc_UIGraphicsImageRendererContext; #endif struct UIGraphicsImageRendererContext_IMPL { struct UIGraphicsRendererContext_IMPL UIGraphicsRendererContext_IVARS; }; // @property (nonatomic, readonly) UIImage *currentImage; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsImageRenderer #define _REWRITER_typedef_UIGraphicsImageRenderer typedef struct objc_object UIGraphicsImageRenderer; typedef struct {} _objc_exc_UIGraphicsImageRenderer; #endif struct UIGraphicsImageRenderer_IMPL { struct UIGraphicsRenderer_IMPL UIGraphicsRenderer_IVARS; }; // - (instancetype)initWithSize:(CGSize)size; // - (instancetype)initWithSize:(CGSize)size format:(UIGraphicsImageRendererFormat *)format __attribute__((objc_designated_initializer)); // - (instancetype)initWithBounds:(CGRect)bounds format:(UIGraphicsImageRendererFormat *)format __attribute__((objc_designated_initializer)); // - (UIImage *)imageWithActions:(__attribute__((noescape)) UIGraphicsImageDrawingActions)actions; // - (NSData *)PNGDataWithActions:(__attribute__((noescape)) UIGraphicsImageDrawingActions)actions; // - (NSData *)JPEGDataWithCompressionQuality:(CGFloat)compressionQuality actions:(__attribute__((noescape)) UIGraphicsImageDrawingActions)actions; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIGraphicsPDFRendererContext; #ifndef _REWRITER_typedef_UIGraphicsPDFRendererContext #define _REWRITER_typedef_UIGraphicsPDFRendererContext typedef struct objc_object UIGraphicsPDFRendererContext; typedef struct {} _objc_exc_UIGraphicsPDFRendererContext; #endif typedef void (*UIGraphicsPDFDrawingActions)(UIGraphicsPDFRendererContext *rendererContext) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsPDFRendererFormat #define _REWRITER_typedef_UIGraphicsPDFRendererFormat typedef struct objc_object UIGraphicsPDFRendererFormat; typedef struct {} _objc_exc_UIGraphicsPDFRendererFormat; #endif struct UIGraphicsPDFRendererFormat_IMPL { struct UIGraphicsRendererFormat_IMPL UIGraphicsRendererFormat_IVARS; }; // @property (nonatomic, copy) NSDictionary<NSString *, id> *documentInfo; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsPDFRendererContext #define _REWRITER_typedef_UIGraphicsPDFRendererContext typedef struct objc_object UIGraphicsPDFRendererContext; typedef struct {} _objc_exc_UIGraphicsPDFRendererContext; #endif struct UIGraphicsPDFRendererContext_IMPL { struct UIGraphicsRendererContext_IMPL UIGraphicsRendererContext_IVARS; }; // @property (nonatomic, readonly) CGRect pdfContextBounds; // - (void)beginPage; // - (void)beginPageWithBounds:(CGRect)bounds pageInfo:(NSDictionary<NSString *, id> *)pageInfo; // - (void)setURL:(NSURL *)url forRect:(CGRect)rect; // - (void)addDestinationWithName:(NSString *)name atPoint:(CGPoint)point; // - (void)setDestinationWithName:(NSString *)name forRect:(CGRect)rect; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIGraphicsPDFRenderer #define _REWRITER_typedef_UIGraphicsPDFRenderer typedef struct objc_object UIGraphicsPDFRenderer; typedef struct {} _objc_exc_UIGraphicsPDFRenderer; #endif struct UIGraphicsPDFRenderer_IMPL { struct UIGraphicsRenderer_IMPL UIGraphicsRenderer_IVARS; }; // - (instancetype)initWithBounds:(CGRect)bounds format:(UIGraphicsPDFRendererFormat *)format __attribute__((objc_designated_initializer)); // - (BOOL)writePDFToURL:(NSURL *)url withActions:(__attribute__((noescape)) UIGraphicsPDFDrawingActions)actions error:(NSError **)error; // - (NSData *)PDFDataWithActions:(__attribute__((noescape)) UIGraphicsPDFDrawingActions)actions; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITraitCollection; #ifndef _REWRITER_typedef_UITraitCollection #define _REWRITER_typedef_UITraitCollection typedef struct objc_object UITraitCollection; typedef struct {} _objc_exc_UITraitCollection; #endif // @protocol UIImageConfiguration; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIImageAsset #define _REWRITER_typedef_UIImageAsset typedef struct objc_object UIImageAsset; typedef struct {} _objc_exc_UIImageAsset; #endif struct UIImageAsset_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (UIImage *)imageWithConfiguration:(UIImageConfiguration *)configuration; // - (void)registerImage:(UIImage *)image withConfiguration:(UIImageConfiguration *)configuration; // - (void)unregisterImageWithConfiguration:(UIImageConfiguration *)configuration; // - (UIImage *)imageWithTraitCollection:(UITraitCollection *)traitCollection; // - (void)registerImage:(UIImage *)image withTraitCollection:(UITraitCollection *)traitCollection; // - (void)unregisterImageWithTraitCollection:(UITraitCollection *)traitCollection; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSUInteger UIScrollType; enum { UIScrollTypeDiscrete, UIScrollTypeContinuous, } __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef NSInteger UIScrollTypeMask; enum { UIScrollTypeMaskDiscrete = 1 << UIScrollTypeDiscrete, UIScrollTypeMaskContinuous = 1 << UIScrollTypeContinuous, UIScrollTypeMaskAll = UIScrollTypeMaskDiscrete | UIScrollTypeMaskContinuous, } __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UIPanGestureRecognizer #define _REWRITER_typedef_UIPanGestureRecognizer typedef struct objc_object UIPanGestureRecognizer; typedef struct {} _objc_exc_UIPanGestureRecognizer; #endif struct UIPanGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property (nonatomic) NSUInteger minimumNumberOfTouches __attribute__((availability(tvos,unavailable))); // @property (nonatomic) NSUInteger maximumNumberOfTouches __attribute__((availability(tvos,unavailable))); // - (CGPoint)translationInView:(nullable UIView *)view; // - (void)setTranslation:(CGPoint)translation inView:(nullable UIView *)view; // - (CGPoint)velocityInView:(nullable UIView *)view; // @property(nonatomic) UIScrollTypeMask allowedScrollTypesMask __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UITapGestureRecognizer #define _REWRITER_typedef_UITapGestureRecognizer typedef struct objc_object UITapGestureRecognizer; typedef struct {} _objc_exc_UITapGestureRecognizer; #endif struct UITapGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property (nonatomic) NSUInteger numberOfTapsRequired; // @property (nonatomic) NSUInteger numberOfTouchesRequired __attribute__((availability(tvos,unavailable))); // @property (nonatomic) UIEventButtonMask buttonMaskRequired __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UINavigationControllerOperation; enum { UINavigationControllerOperationNone, UINavigationControllerOperationPush, UINavigationControllerOperationPop, }; extern "C" __attribute__((visibility ("default"))) const CGFloat UINavigationControllerHideShowBarDuration; // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UINavigationBar #define _REWRITER_typedef_UINavigationBar typedef struct objc_object UINavigationBar; typedef struct {} _objc_exc_UINavigationBar; #endif #ifndef _REWRITER_typedef_UINavigationItem #define _REWRITER_typedef_UINavigationItem typedef struct objc_object UINavigationItem; typedef struct {} _objc_exc_UINavigationItem; #endif #ifndef _REWRITER_typedef_UIToolbar #define _REWRITER_typedef_UIToolbar typedef struct objc_object UIToolbar; typedef struct {} _objc_exc_UIToolbar; #endif // @protocol UINavigationControllerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UINavigationController #define _REWRITER_typedef_UINavigationController typedef struct objc_object UINavigationController; typedef struct {} _objc_exc_UINavigationController; #endif struct UINavigationController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithNavigationBarClass:(nullable Class)navigationBarClass toolbarClass:(nullable Class)toolbarClass __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=5.0))); // - (instancetype)initWithRootViewController:(UIViewController *)rootViewController __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder __attribute__((objc_designated_initializer)); // - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated; // - (nullable UIViewController *)popViewControllerAnimated:(BOOL)animated; // - (nullable NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated; // - (nullable NSArray<__kindof UIViewController *> *)popToRootViewControllerAnimated:(BOOL)animated; // @property(nullable, nonatomic,readonly,strong) UIViewController *topViewController; // @property(nullable, nonatomic,readonly,strong) UIViewController *visibleViewController; // @property(nonatomic,copy) NSArray<__kindof UIViewController *> *viewControllers; // - (void)setViewControllers:(NSArray<UIViewController *> *)viewControllers animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic,getter=isNavigationBarHidden) BOOL navigationBarHidden; // - (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated; // @property(nonatomic,readonly) UINavigationBar *navigationBar; // @property(nonatomic,getter=isToolbarHidden) BOOL toolbarHidden __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // - (void)setToolbarHidden:(BOOL)hidden animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(null_resettable,nonatomic,readonly) UIToolbar *toolbar __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic, weak) id<UINavigationControllerDelegate> delegate; // @property(nullable, nonatomic, readonly) UIGestureRecognizer *interactivePopGestureRecognizer __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (void)showViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readwrite, assign) BOOL hidesBarsWhenKeyboardAppears __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) BOOL hidesBarsOnSwipe __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly, strong) UIPanGestureRecognizer *barHideOnSwipeGestureRecognizer __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) BOOL hidesBarsWhenVerticallyCompact __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) BOOL hidesBarsOnTap __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly, assign) UITapGestureRecognizer *barHideOnTapGestureRecognizer __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol UIViewControllerInteractiveTransitioning; // @protocol UIViewControllerAnimatedTransitioning; // @protocol UINavigationControllerDelegate <NSObject> /* @optional */ // - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated; // - (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated; // - (UIInterfaceOrientationMask)navigationControllerSupportedInterfaceOrientations:(UINavigationController *)navigationController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientation)navigationControllerPreferredInterfaceOrientationForPresentation:(UINavigationController *)navigationController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); #if 0 - (nullable id <UIViewControllerInteractiveTransitioning>)navigationController:(UINavigationController *)navigationController interactionControllerForAnimationController:(id <UIViewControllerAnimatedTransitioning>) animationController __attribute__((availability(ios,introduced=7.0))); #endif #if 0 - (nullable id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC __attribute__((availability(ios,introduced=7.0))); #endif /* @end */ // @interface UIViewController (UINavigationControllerItem) // @property(nonatomic,readonly,strong) UINavigationItem *navigationItem; // @property(nonatomic) BOOL hidesBottomBarWhenPushed __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,readonly,strong) UINavigationController *navigationController; /* @end */ // @interface UIViewController (UINavigationControllerContextualToolbarItems) // @property (nullable, nonatomic, strong) NSArray<__kindof UIBarButtonItem *> *toolbarItems __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // - (void)setToolbarItems:(nullable NSArray<UIBarButtonItem *> *)toolbarItems animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @protocol UIImagePickerControllerDelegate; typedef NSInteger UIImagePickerControllerSourceType; enum { UIImagePickerControllerSourceTypePhotoLibrary __attribute__((availability(ios,introduced=2,deprecated=100000,message="Will be removed in a future release, use PHPicker."))), UIImagePickerControllerSourceTypeCamera, UIImagePickerControllerSourceTypeSavedPhotosAlbum __attribute__((availability(ios,introduced=2,deprecated=100000,message="Will be removed in a future release, use PHPicker."))), } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIImagePickerControllerQualityType; enum { UIImagePickerControllerQualityTypeHigh = 0, UIImagePickerControllerQualityTypeMedium = 1, UIImagePickerControllerQualityTypeLow = 2, UIImagePickerControllerQualityType640x480 __attribute__((availability(ios,introduced=4.0))) = 3, UIImagePickerControllerQualityTypeIFrame1280x720 __attribute__((availability(ios,introduced=5.0))) = 4, UIImagePickerControllerQualityTypeIFrame960x540 __attribute__((availability(ios,introduced=5.0))) = 5, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIImagePickerControllerCameraCaptureMode; enum { UIImagePickerControllerCameraCaptureModePhoto, UIImagePickerControllerCameraCaptureModeVideo } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIImagePickerControllerCameraDevice; enum { UIImagePickerControllerCameraDeviceRear, UIImagePickerControllerCameraDeviceFront } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIImagePickerControllerCameraFlashMode; enum { UIImagePickerControllerCameraFlashModeOff = -1, UIImagePickerControllerCameraFlashModeAuto = 0, UIImagePickerControllerCameraFlashModeOn = 1 } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIImagePickerControllerImageURLExportPreset; enum { UIImagePickerControllerImageURLExportPresetCompatible = 0, UIImagePickerControllerImageURLExportPresetCurrent } __attribute__((availability(ios,introduced=11,deprecated=100000,message="Will be removed in a future release, use PHPicker."))) __attribute__((availability(tvos,unavailable))); typedef NSString * UIImagePickerControllerInfoKey __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerMediaType __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerOriginalImage __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerEditedImage __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerCropRect __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerMediaURL __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL __attribute__((availability(ios,introduced=4.1,deprecated=11.0,message="Will be removed in a future release, use PHPicker."))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerMediaMetadata __attribute__((availability(ios,introduced=4.1))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerLivePhoto __attribute__((availability(ios,introduced=9.1))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerPHAsset __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="Will be removed in a future release, use PHPicker."))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIImagePickerControllerInfoKey const UIImagePickerControllerImageURL __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIImagePickerController #define _REWRITER_typedef_UIImagePickerController typedef struct objc_object UIImagePickerController; typedef struct {} _objc_exc_UIImagePickerController; #endif struct UIImagePickerController_IMPL { struct UINavigationController_IMPL UINavigationController_IVARS; }; // + (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; // + (nullable NSArray<NSString *> *)availableMediaTypesForSourceType:(UIImagePickerControllerSourceType)sourceType; // + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice __attribute__((availability(ios,introduced=4.0))); // + (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice __attribute__((availability(ios,introduced=4.0))); // + (nullable NSArray<NSNumber *> *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice __attribute__((availability(ios,introduced=4.0))); // @property(nullable,nonatomic,weak) id <UINavigationControllerDelegate, UIImagePickerControllerDelegate> delegate; // @property(nonatomic) UIImagePickerControllerSourceType sourceType; // @property(nonatomic,copy) NSArray<NSString *> *mediaTypes; // @property(nonatomic) BOOL allowsEditing __attribute__((availability(ios,introduced=3.1))); // @property(nonatomic) BOOL allowsImageEditing __attribute__((availability(ios,introduced=2.0,deprecated=3.1,message=""))); // @property(nonatomic) UIImagePickerControllerImageURLExportPreset imageExportPreset __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="Will be removed in a future release, use PHPicker."))); // @property(nonatomic) NSTimeInterval videoMaximumDuration __attribute__((availability(ios,introduced=3.1))); // @property(nonatomic) UIImagePickerControllerQualityType videoQuality __attribute__((availability(ios,introduced=3.1))); // @property(nonatomic, copy) NSString *videoExportPreset __attribute__((availability(ios,introduced=11.0,deprecated=100000,message="Will be removed in a future release, use PHPicker."))); // @property(nonatomic) BOOL showsCameraControls __attribute__((availability(ios,introduced=3.1))); // @property(nullable, nonatomic,strong) __kindof UIView *cameraOverlayView __attribute__((availability(ios,introduced=3.1))); // @property(nonatomic) CGAffineTransform cameraViewTransform __attribute__((availability(ios,introduced=3.1))); // - (void)takePicture __attribute__((availability(ios,introduced=3.1))); // - (BOOL)startVideoCapture __attribute__((availability(ios,introduced=4.0))); // - (void)stopVideoCapture __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic) UIImagePickerControllerCameraDevice cameraDevice __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic) UIImagePickerControllerCameraFlashMode cameraFlashMode __attribute__((availability(ios,introduced=4.0))); /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIImagePickerControllerDelegate<NSObject> /* @optional */ // - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(nullable NSDictionary<UIImagePickerControllerInfoKey, id> *)editingInfo __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))); // - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey, id> *)info; // - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker; /* @end */ extern "C" __attribute__((visibility ("default"))) void UIImageWriteToSavedPhotosAlbum(UIImage *image, _Nullable id completionTarget, _Nullable SEL completionSelector, void * _Nullable contextInfo) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) BOOL UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(NSString *videoPath) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) void UISaveVideoAtPathToSavedPhotosAlbum(NSString *videoPath, _Nullable id completionTarget, _Nullable SEL completionSelector, void * _Nullable contextInfo) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIInputViewStyle; enum { UIInputViewStyleDefault, UIInputViewStyleKeyboard, } __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIInputView #define _REWRITER_typedef_UIInputView typedef struct objc_object UIInputView; typedef struct {} _objc_exc_UIInputView; #endif struct UIInputView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property (nonatomic, readonly) UIInputViewStyle inputViewStyle; // @property (nonatomic, assign) BOOL allowsSelfSizing __attribute__((availability(ios,introduced=9.0))); // - (instancetype)initWithFrame:(CGRect)frame inputViewStyle:(UIInputViewStyle)inputViewStyle __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UILexicon; #ifndef _REWRITER_typedef_UILexicon #define _REWRITER_typedef_UILexicon typedef struct objc_object UILexicon; typedef struct {} _objc_exc_UILexicon; #endif // @protocol UITextDocumentProxy <UIKeyInput> // @property (nullable, nonatomic, readonly) NSString *documentContextBeforeInput; // @property (nullable, nonatomic, readonly) NSString *documentContextAfterInput; // @property (nullable, nonatomic, readonly) NSString *selectedText __attribute__((availability(ios,introduced=11.0))); // @property (nullable, nonatomic, readonly) UITextInputMode *documentInputMode __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly, copy) NSUUID *documentIdentifier __attribute__((availability(ios,introduced=11.0))); // - (void)adjustTextPositionByCharacterOffset:(NSInteger)offset; // - (void)setMarkedText:(NSString *)markedText selectedRange:(NSRange)selectedRange __attribute__((availability(ios,introduced=13.0))); // - (void)unmarkText __attribute__((availability(ios,introduced=13.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIInputViewController #define _REWRITER_typedef_UIInputViewController typedef struct objc_object UIInputViewController; typedef struct {} _objc_exc_UIInputViewController; #endif struct UIInputViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // @property (nullable, nonatomic, strong) UIInputView *inputView; // @property (nonatomic, readonly) id <UITextDocumentProxy> textDocumentProxy; // @property (nullable, nonatomic, copy) NSString *primaryLanguage; // @property (nonatomic) BOOL hasDictationKey; // @property (nonatomic, readonly) BOOL hasFullAccess __attribute__((availability(ios,introduced=11.0))); // @property (nonatomic, readonly) BOOL needsInputModeSwitchKey __attribute__((availability(ios,introduced=11.0))); // - (void)dismissKeyboard; // - (void)advanceToNextInputMode; // - (void)handleInputModeListFromView:(nonnull UIView *)view withEvent:(nonnull UIEvent *)event __attribute__((availability(ios,introduced=10.0))); // - (void)requestSupplementaryLexiconWithCompletion:(void (^)(UILexicon *))completionHandler; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif struct UILabel_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nullable, nonatomic,copy) NSString *text; // @property(null_resettable, nonatomic,strong) UIFont *font __attribute__((annotate("ui_appearance_selector"))); // @property(null_resettable, nonatomic,strong) UIColor *textColor __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIColor *shadowColor __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) CGSize shadowOffset __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) NSTextAlignment textAlignment; // @property(nonatomic) NSLineBreakMode lineBreakMode; // @property(nullable, nonatomic,copy) NSAttributedString *attributedText __attribute__((availability(ios,introduced=6.0))); // @property(nullable, nonatomic,strong) UIColor *highlightedTextColor __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic,getter=isHighlighted) BOOL highlighted; // @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // @property(nonatomic,getter=isEnabled) BOOL enabled; // @property(nonatomic) NSInteger numberOfLines; // @property(nonatomic) BOOL adjustsFontSizeToFitWidth; // @property(nonatomic) UIBaselineAdjustment baselineAdjustment; // @property(nonatomic) CGFloat minimumScaleFactor __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic) BOOL allowsDefaultTighteningForTruncation __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic) NSLineBreakStrategy lineBreakStrategy; // - (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines; // - (void)drawTextInRect:(CGRect)rect; // @property(nonatomic) CGFloat preferredMaxLayoutWidth __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic) BOOL enablesMarqueeWhenAncestorFocused __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic) CGFloat minimumFontSize __attribute__((availability(ios,introduced=2.0,deprecated=6.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) BOOL adjustsLetterSpacingToFitWidth __attribute__((availability(ios,introduced=6.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UILexiconEntry #define _REWRITER_typedef_UILexiconEntry typedef struct objc_object UILexiconEntry; typedef struct {} _objc_exc_UILexiconEntry; #endif struct UILexiconEntry_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSString *documentText; // @property (nonatomic, readonly) NSString *userInput; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UILexicon #define _REWRITER_typedef_UILexicon typedef struct objc_object UILexicon; typedef struct {} _objc_exc_UILexicon; #endif struct UILexicon_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSArray<UILexiconEntry *> *entries; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UILargeContentViewerInteractionDelegate; __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UILargeContentViewerItem <NSObject> // @property (nonatomic, assign, readonly) BOOL showsLargeContentViewer; // @property (nullable, nonatomic, copy, readonly) NSString *largeContentTitle; // @property (nullable, nonatomic, strong, readonly) UIImage *largeContentImage; // @property (nonatomic, assign, readonly) BOOL scalesLargeContentImage; // @property (nonatomic, assign, readonly) UIEdgeInsets largeContentImageInsets; /* @end */ // @interface UIView (UILargeContentViewer) <UILargeContentViewerItem> // @property (nonatomic, assign, readwrite) BOOL showsLargeContentViewer __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, copy, readwrite) NSString *largeContentTitle __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, strong, readwrite) UIImage *largeContentImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readwrite) BOOL scalesLargeContentImage __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readwrite) UIEdgeInsets largeContentImageInsets __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UILargeContentViewerInteraction #define _REWRITER_typedef_UILargeContentViewerInteraction typedef struct objc_object UILargeContentViewerInteraction; typedef struct {} _objc_exc_UILargeContentViewerInteraction; #endif struct UILargeContentViewerInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithDelegate:(nullable id<UILargeContentViewerInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // @property (nonatomic, nullable, weak, readonly) id<UILargeContentViewerInteractionDelegate> delegate; // @property (nonatomic, strong, readonly) UIGestureRecognizer *gestureRecognizerForExclusionRelationship; @property (class, nonatomic, readonly, getter=isEnabled) BOOL enabled; /* @end */ __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UILargeContentViewerInteractionDelegate <NSObject> /* @optional */ // - (void)largeContentViewerInteraction:(UILargeContentViewerInteraction *)interaction didEndOnItem:(nullable id<UILargeContentViewerItem>)item atPoint:(CGPoint)point; // - (nullable id<UILargeContentViewerItem>)largeContentViewerInteraction:(UILargeContentViewerInteraction *)interaction itemAtPoint:(CGPoint)point; // - (UIViewController *)viewControllerForLargeContentViewerInteraction:(UILargeContentViewerInteraction *)interaction; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UILargeContentViewerInteractionEnabledStatusDidChangeNotification __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif typedef NSInteger UIApplicationShortcutIconType; enum { UIApplicationShortcutIconTypeCompose, UIApplicationShortcutIconTypePlay, UIApplicationShortcutIconTypePause, UIApplicationShortcutIconTypeAdd, UIApplicationShortcutIconTypeLocation, UIApplicationShortcutIconTypeSearch, UIApplicationShortcutIconTypeShare, UIApplicationShortcutIconTypeProhibit __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeContact __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeHome __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeMarkLocation __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeFavorite __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeLove __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeCloud __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeInvitation __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeConfirmation __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeMail __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeMessage __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeDate __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeTime __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeCapturePhoto __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeCaptureVideo __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeTask __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeTaskCompleted __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeAlarm __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeBookmark __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeShuffle __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeAudio __attribute__((availability(ios,introduced=9.1))), UIApplicationShortcutIconTypeUpdate __attribute__((availability(ios,introduced=9.1))) } __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIApplicationShortcutIcon #define _REWRITER_typedef_UIApplicationShortcutIcon typedef struct objc_object UIApplicationShortcutIcon; typedef struct {} _objc_exc_UIApplicationShortcutIcon; #endif struct UIApplicationShortcutIcon_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)iconWithType:(UIApplicationShortcutIconType)type; // + (instancetype)iconWithTemplateImageName:(NSString *)templateImageName; // + (instancetype)iconWithSystemImageName:(NSString *)systemImageName; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIApplicationShortcutItem #define _REWRITER_typedef_UIApplicationShortcutItem typedef struct objc_object UIApplicationShortcutItem; typedef struct {} _objc_exc_UIApplicationShortcutItem; #endif struct UIApplicationShortcutItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithType:(NSString *)type localizedTitle:(NSString *)localizedTitle localizedSubtitle:(nullable NSString *)localizedSubtitle icon:(nullable UIApplicationShortcutIcon *)icon userInfo:(nullable NSDictionary<NSString *, id <NSSecureCoding>> *)userInfo __attribute__((objc_designated_initializer)); // - (instancetype)initWithType:(NSString *)type localizedTitle:(NSString *)localizedTitle; // @property (nonatomic, copy, readonly) NSString *type; // @property (nonatomic, copy, readonly) NSString *localizedTitle; // @property (nullable, nonatomic, copy, readonly) NSString *localizedSubtitle; // @property (nullable, nonatomic, copy, readonly) UIApplicationShortcutIcon *icon; // @property (nullable, nonatomic, copy, readonly) NSDictionary<NSString *, id <NSSecureCoding>> *userInfo; // @property (nullable, nonatomic, copy, readonly) id targetContentIdentifier; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMutableApplicationShortcutItem #define _REWRITER_typedef_UIMutableApplicationShortcutItem typedef struct objc_object UIMutableApplicationShortcutItem; typedef struct {} _objc_exc_UIMutableApplicationShortcutItem; #endif struct UIMutableApplicationShortcutItem_IMPL { struct UIApplicationShortcutItem_IMPL UIApplicationShortcutItem_IVARS; }; // @property (nonatomic, copy) NSString *type; // @property (nonatomic, copy) NSString *localizedTitle; // @property (nullable, nonatomic, copy) NSString *localizedSubtitle; // @property (nullable, nonatomic, copy) UIApplicationShortcutIcon *icon; // @property (nullable, nonatomic, copy) NSDictionary<NSString *, id <NSSecureCoding>> *userInfo; // @property (nullable, nonatomic, copy) id targetContentIdentifier; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIUserNotificationCategory; #ifndef _REWRITER_typedef_UIUserNotificationCategory #define _REWRITER_typedef_UIUserNotificationCategory typedef struct objc_object UIUserNotificationCategory; typedef struct {} _objc_exc_UIUserNotificationCategory; #endif // @class UIUserNotificationAction; #ifndef _REWRITER_typedef_UIUserNotificationAction #define _REWRITER_typedef_UIUserNotificationAction typedef struct objc_object UIUserNotificationAction; typedef struct {} _objc_exc_UIUserNotificationAction; #endif typedef NSUInteger UIUserNotificationType; enum { UIUserNotificationTypeNone = 0, UIUserNotificationTypeBadge = 1 << 0, UIUserNotificationTypeSound = 1 << 1, UIUserNotificationTypeAlert = 1 << 2, } __attribute__((availability(ios,introduced=8_0,deprecated=10_0,message="" "Use UserNotifications Framework's UNAuthorizationOptions"))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIUserNotificationActionBehavior; enum { UIUserNotificationActionBehaviorDefault, UIUserNotificationActionBehaviorTextInput } __attribute__((availability(ios,introduced=9_0,deprecated=10_0,message="" "Use UserNotifications Framework's UNNotificationAction or UNTextInputNotificationAction"))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIUserNotificationActivationMode; enum { UIUserNotificationActivationModeForeground, UIUserNotificationActivationModeBackground } __attribute__((availability(ios,introduced=8_0,deprecated=10_0,message="" "Use UserNotifications Framework's UNNotificationActionOptions"))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIUserNotificationActionContext; enum { UIUserNotificationActionContextDefault, UIUserNotificationActionContextMinimal } __attribute__((availability(ios,introduced=8_0,deprecated=10_0,message="" "Use UserNotifications Framework's -[UNNotificationCategory actions] or -[UNNotificationCategory minimalActions]"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIUserNotificationTextInputActionButtonTitleKey __attribute__((availability(ios,introduced=9.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNTextInputNotificationAction textInputButtonTitle]"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIUserNotificationActionResponseTypedTextKey __attribute__((availability(ios,introduced=9.0,deprecated=10.0,message="Use UserNotifications Framework's -[UNTextInputNotificationResponse userText]"))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationSettings"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIUserNotificationSettings #define _REWRITER_typedef_UIUserNotificationSettings typedef struct objc_object UIUserNotificationSettings; typedef struct {} _objc_exc_UIUserNotificationSettings; #endif struct UIUserNotificationSettings_IMPL { struct NSObject_IMPL NSObject_IVARS; }; #if 0 + (instancetype)settingsForTypes:(UIUserNotificationType)types categories:(nullable NSSet<UIUserNotificationCategory *> *)categories; #endif // @property (nonatomic, readonly) UIUserNotificationType types; // @property (nullable, nonatomic, copy, readonly) NSSet<UIUserNotificationCategory *> *categories; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationCategory"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIUserNotificationCategory #define _REWRITER_typedef_UIUserNotificationCategory typedef struct objc_object UIUserNotificationCategory; typedef struct {} _objc_exc_UIUserNotificationCategory; #endif struct UIUserNotificationCategory_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, copy, readonly) NSString *identifier __attribute__((availability(tvos,unavailable))); // - (nullable NSArray<UIUserNotificationAction *> *)actionsForContext:(UIUserNotificationActionContext)context __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationCategory"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMutableUserNotificationCategory #define _REWRITER_typedef_UIMutableUserNotificationCategory typedef struct objc_object UIMutableUserNotificationCategory; typedef struct {} _objc_exc_UIMutableUserNotificationCategory; #endif struct UIMutableUserNotificationCategory_IMPL { struct UIUserNotificationCategory_IMPL UIUserNotificationCategory_IVARS; }; // @property (nullable, nonatomic, copy) NSString *identifier; // - (void)setActions:(nullable NSArray<UIUserNotificationAction *> *)actions forContext:(UIUserNotificationActionContext)context; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationAction"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIUserNotificationAction #define _REWRITER_typedef_UIUserNotificationAction typedef struct objc_object UIUserNotificationAction; typedef struct {} _objc_exc_UIUserNotificationAction; #endif struct UIUserNotificationAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, copy, readonly) NSString *identifier __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, copy, readonly) NSString *title __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readonly) UIUserNotificationActionBehavior behavior __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, copy, readonly) NSDictionary *parameters __attribute__((availability(ios,introduced=9.0)))__attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readonly) UIUserNotificationActivationMode activationMode __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readonly, getter=isAuthenticationRequired) BOOL authenticationRequired __attribute__((availability(tvos,unavailable))); // @property (nonatomic, assign, readonly, getter=isDestructive) BOOL destructive __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0,deprecated=10.0,message="Use UserNotifications Framework's UNNotificationAction"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMutableUserNotificationAction #define _REWRITER_typedef_UIMutableUserNotificationAction typedef struct objc_object UIMutableUserNotificationAction; typedef struct {} _objc_exc_UIMutableUserNotificationAction; #endif struct UIMutableUserNotificationAction_IMPL { struct UIUserNotificationAction_IMPL UIUserNotificationAction_IVARS; }; // @property (nullable, nonatomic, copy) NSString *identifier; // @property (nullable, nonatomic, copy) NSString *title; // @property (nonatomic, assign) UIUserNotificationActionBehavior behavior __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, copy) NSDictionary *parameters __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, assign) UIUserNotificationActivationMode activationMode; // @property (nonatomic, assign, getter=isAuthenticationRequired) BOOL authenticationRequired; // @property (nonatomic, assign, getter=isDestructive) BOOL destructive; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) #ifndef _REWRITER_typedef_UIFocusSystem #define _REWRITER_typedef_UIFocusSystem typedef struct objc_object UIFocusSystem; typedef struct {} _objc_exc_UIFocusSystem; #endif struct UIFocusSystem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, weak, readonly, nullable) id<UIFocusItem> focusedItem __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // + (nullable UIFocusSystem *)focusSystemForEnvironment:(id<UIFocusEnvironment>)environment __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // - (void)requestFocusUpdateToEnvironment:(id<UIFocusEnvironment>)environment __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // - (void)updateFocusIfNeeded __attribute__((availability(tvos,introduced=12.0))) __attribute__((availability(ios,introduced=12.0))); // + (BOOL)environment:(id<UIFocusEnvironment>)environment containsEnvironment:(id<UIFocusEnvironment>)otherEnvironment; // + (void)registerURL:(NSURL *)soundFileURL forSoundIdentifier:(UIFocusSoundIdentifier)identifier __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end // @protocol UIFocusDebuggerOutput, UIFocusEnvironment, UIFocusItem; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) #ifndef _REWRITER_typedef_UIFocusDebugger #define _REWRITER_typedef_UIFocusDebugger typedef struct objc_object UIFocusDebugger; typedef struct {} _objc_exc_UIFocusDebugger; #endif struct UIFocusDebugger_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (id<UIFocusDebuggerOutput>)help; // + (id<UIFocusDebuggerOutput>)status; // + (id<UIFocusDebuggerOutput>)checkFocusabilityForItem:(id<UIFocusItem>)item; // + (id<UIFocusDebuggerOutput>)simulateFocusUpdateRequestFromEnvironment:(id<UIFocusEnvironment>)environment; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) // @protocol UIFocusDebuggerOutput <NSObject> /* @end */ #pragma clang assume_nonnull end extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=12.0))) #ifndef _REWRITER_typedef_UIFocusMovementHint #define _REWRITER_typedef_UIFocusMovementHint typedef struct objc_object UIFocusMovementHint; typedef struct {} _objc_exc_UIFocusMovementHint; #endif struct UIFocusMovementHint_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) CGVector movementDirection; // @property (nonatomic, readonly) CATransform3D perspectiveTransform; // @property (nonatomic, readonly) CGVector rotation; // @property (nonatomic, readonly) CGVector translation; // @property (nonatomic, readonly) CATransform3D interactionTransform; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIHoverGestureRecognizer #define _REWRITER_typedef_UIHoverGestureRecognizer typedef struct objc_object UIHoverGestureRecognizer; typedef struct {} _objc_exc_UIHoverGestureRecognizer; #endif struct UIHoverGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; /* @end */ #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.0))) #ifndef _REWRITER_typedef_UILocalizedIndexedCollation #define _REWRITER_typedef_UILocalizedIndexedCollation typedef struct objc_object UILocalizedIndexedCollation; typedef struct {} _objc_exc_UILocalizedIndexedCollation; #endif struct UILocalizedIndexedCollation_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)currentCollation; // @property(nonatomic, readonly) NSArray<NSString *> * sectionTitles; // @property(nonatomic, readonly) NSArray<NSString *> *sectionIndexTitles; // - (NSInteger)sectionForSectionIndexTitleAtIndex:(NSInteger)indexTitleIndex; // - (NSInteger)sectionForObject:(id)object collationStringSelector:(SEL)selector; // - (NSArray *)sortedArrayFromArray:(NSArray *)array collationStringSelector:(SEL)selector; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UILongPressGestureRecognizer #define _REWRITER_typedef_UILongPressGestureRecognizer typedef struct objc_object UILongPressGestureRecognizer; typedef struct {} _objc_exc_UILongPressGestureRecognizer; #endif struct UILongPressGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property (nonatomic) NSUInteger numberOfTapsRequired; // @property (nonatomic) NSUInteger numberOfTouchesRequired __attribute__((availability(tvos,unavailable))); // @property (nonatomic) NSTimeInterval minimumPressDuration; // @property (nonatomic) CGFloat allowableMovement; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSManagedObjectModel; #ifndef _REWRITER_typedef_NSManagedObjectModel #define _REWRITER_typedef_NSManagedObjectModel typedef struct objc_object NSManagedObjectModel; typedef struct {} _objc_exc_NSManagedObjectModel; #endif // @class NSManagedObjectContext; #ifndef _REWRITER_typedef_NSManagedObjectContext #define _REWRITER_typedef_NSManagedObjectContext typedef struct objc_object NSManagedObjectContext; typedef struct {} _objc_exc_NSManagedObjectContext; #endif // @class NSPersistentStoreCoordinator; #ifndef _REWRITER_typedef_NSPersistentStoreCoordinator #define _REWRITER_typedef_NSPersistentStoreCoordinator typedef struct objc_object NSPersistentStoreCoordinator; typedef struct {} _objc_exc_NSPersistentStoreCoordinator; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIManagedDocument #define _REWRITER_typedef_UIManagedDocument typedef struct objc_object UIManagedDocument; typedef struct {} _objc_exc_UIManagedDocument; #endif struct UIManagedDocument_IMPL { struct UIDocument_IMPL UIDocument_IVARS; }; @property(class, nonatomic, readonly) NSString *persistentStoreName; // @property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext; // @property (nonatomic, strong, readonly) NSManagedObjectModel* managedObjectModel; // @property (nullable, nonatomic, copy) NSDictionary *persistentStoreOptions; // @property (nullable, nonatomic, copy) NSString *modelConfiguration; // - (BOOL)configurePersistentStoreCoordinatorForURL:(NSURL *)storeURL ofType:(NSString *)fileType modelConfiguration:(nullable NSString *)configuration storeOptions:(nullable NSDictionary *)storeOptions error:(NSError **)error; // - (NSString *)persistentStoreTypeForFileType:(NSString *)fileType; // - (BOOL)readAdditionalContentFromURL:(NSURL *)absoluteURL error:(NSError **)error; // - (nullable id)additionalContentForURL:(NSURL *)absoluteURL error:(NSError **)error; // - (BOOL)writeAdditionalContent:(id)content toURL:(NSURL *)absoluteURL originalContentsURL:(nullable NSURL *)absoluteOriginalContentsURL error:(NSError **)error; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIMenuControllerArrowDirection; enum { UIMenuControllerArrowDefault, UIMenuControllerArrowUp __attribute__((availability(ios,introduced=3.2))), UIMenuControllerArrowDown __attribute__((availability(ios,introduced=3.2))), UIMenuControllerArrowLeft __attribute__((availability(ios,introduced=3.2))), UIMenuControllerArrowRight __attribute__((availability(ios,introduced=3.2))), } __attribute__((availability(tvos,unavailable))); // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIMenuItem #define _REWRITER_typedef_UIMenuItem typedef struct objc_object UIMenuItem; typedef struct {} _objc_exc_UIMenuItem; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMenuController #define _REWRITER_typedef_UIMenuController typedef struct objc_object UIMenuController; typedef struct {} _objc_exc_UIMenuController; #endif struct UIMenuController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) UIMenuController *sharedMenuController; // @property(nonatomic,getter=isMenuVisible) BOOL menuVisible; // - (void)setMenuVisible:(BOOL)menuVisible __attribute__((availability(ios,introduced=3.0,deprecated=13.0,message="Use showMenuFromView:rect: or hideMenuFromView: instead."))); // - (void)setMenuVisible:(BOOL)menuVisible animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0,deprecated=13.0,message="Use showMenuFromView:rect: or hideMenuFromView: instead."))); // - (void)setTargetRect:(CGRect)targetRect inView:(UIView *)targetView __attribute__((availability(ios,introduced=3.0,deprecated=13.0,message="Use showMenuFromView:rect: instead."))); // - (void)showMenuFromView:(UIView *)targetView rect:(CGRect)targetRect __attribute__((availability(ios,introduced=13.0))); // - (void)hideMenuFromView:(UIView *)targetView __attribute__((availability(ios,introduced=13.0))); // - (void)hideMenu __attribute__((availability(ios,introduced=13.0))); // @property(nonatomic) UIMenuControllerArrowDirection arrowDirection __attribute__((availability(ios,introduced=3.2))); // @property(nullable, nonatomic,copy) NSArray<UIMenuItem *> *menuItems __attribute__((availability(ios,introduced=3.2))); // - (void)update; // @property(nonatomic,readonly) CGRect menuFrame; /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIMenuControllerWillShowMenuNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIMenuControllerDidShowMenuNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIMenuControllerWillHideMenuNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIMenuControllerDidHideMenuNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIMenuControllerMenuFrameDidChangeNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMenuItem #define _REWRITER_typedef_UIMenuItem typedef struct objc_object UIMenuItem; typedef struct {} _objc_exc_UIMenuItem; #endif struct UIMenuItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTitle:(NSString *)title action:(SEL)action __attribute__((objc_designated_initializer)); // @property(nonatomic,copy) NSString *title; // @property(nonatomic) SEL action; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIMotionEffect #define _REWRITER_typedef_UIMotionEffect typedef struct objc_object UIMotionEffect; typedef struct {} _objc_exc_UIMotionEffect; #endif struct UIMotionEffect_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (nullable NSDictionary<NSString *, id> *)keyPathsAndRelativeValuesForViewerOffset:(UIOffset)viewerOffset; /* @end */ typedef NSInteger UIInterpolatingMotionEffectType; enum { UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis, UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIInterpolatingMotionEffect #define _REWRITER_typedef_UIInterpolatingMotionEffect typedef struct objc_object UIInterpolatingMotionEffect; typedef struct {} _objc_exc_UIInterpolatingMotionEffect; #endif struct UIInterpolatingMotionEffect_IMPL { struct UIMotionEffect_IMPL UIMotionEffect_IVARS; }; // - (instancetype)initWithKeyPath:(NSString *)keyPath type:(UIInterpolatingMotionEffectType)type __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (readonly, nonatomic) NSString *keyPath; // @property (readonly, nonatomic) UIInterpolatingMotionEffectType type; // @property (nullable, strong, nonatomic) id minimumRelativeValue; // @property (nullable, strong, nonatomic) id maximumRelativeValue; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIMotionEffectGroup #define _REWRITER_typedef_UIMotionEffectGroup typedef struct objc_object UIMotionEffectGroup; typedef struct {} _objc_exc_UIMotionEffectGroup; #endif struct UIMotionEffectGroup_IMPL { struct UIMotionEffect_IMPL UIMotionEffect_IVARS; }; // @property (nullable, copy, nonatomic) NSArray<__kindof UIMotionEffect *> *motionEffects; /* @end */ #pragma clang assume_nonnull end // @class UISearchController; #ifndef _REWRITER_typedef_UISearchController #define _REWRITER_typedef_UISearchController typedef struct objc_object UISearchController; typedef struct {} _objc_exc_UISearchController; #endif #ifndef _REWRITER_typedef_UINavigationBarAppearance #define _REWRITER_typedef_UINavigationBarAppearance typedef struct objc_object UINavigationBarAppearance; typedef struct {} _objc_exc_UINavigationBarAppearance; #endif #pragma clang assume_nonnull begin typedef NSInteger UINavigationItemLargeTitleDisplayMode; enum { UINavigationItemLargeTitleDisplayModeAutomatic, UINavigationItemLargeTitleDisplayModeAlways, UINavigationItemLargeTitleDisplayModeNever, } __attribute__((swift_name("UINavigationItem.LargeTitleDisplayMode"))); typedef NSInteger UINavigationItemBackButtonDisplayMode; enum { UINavigationItemBackButtonDisplayModeDefault = 0, UINavigationItemBackButtonDisplayModeGeneric = 1, UINavigationItemBackButtonDisplayModeMinimal = 2, } __attribute__((swift_name("UINavigationItem.BackButtonDisplayMode"))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UINavigationItem #define _REWRITER_typedef_UINavigationItem typedef struct objc_object UINavigationItem; typedef struct {} _objc_exc_UINavigationItem; #endif struct UINavigationItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithTitle:(NSString *)title __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, readwrite, copy, nullable) NSString *title; // @property (nonatomic, readwrite, strong, nullable) UIView *titleView; // @property (nonatomic, readwrite, copy, nullable) NSString *prompt __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, strong, nullable) UIBarButtonItem *backBarButtonItem __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, copy, nullable) NSString *backButtonTitle __attribute__((availability(ios,introduced=11.0))); // @property (nonatomic, readwrite, assign) BOOL hidesBackButton __attribute__((availability(tvos,unavailable))); // - (void)setHidesBackButton:(BOOL)hidesBackButton animated:(BOOL)animated __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) UINavigationItemBackButtonDisplayMode backButtonDisplayMode __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, copy, nullable) NSArray<UIBarButtonItem *> *leftBarButtonItems __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, readwrite, copy, nullable) NSArray<UIBarButtonItem *> *rightBarButtonItems __attribute__((availability(ios,introduced=5.0))); // - (void)setLeftBarButtonItems:(nullable NSArray<UIBarButtonItem *> *)items animated:(BOOL)animated __attribute__((availability(ios,introduced=5.0))); // - (void)setRightBarButtonItems:(nullable NSArray<UIBarButtonItem *> *)items animated:(BOOL)animated __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, readwrite, assign) BOOL leftItemsSupplementBackButton __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readwrite, strong, nullable) UIBarButtonItem *leftBarButtonItem; // @property(nonatomic, readwrite, strong, nullable) UIBarButtonItem *rightBarButtonItem; // - (void)setLeftBarButtonItem:(nullable UIBarButtonItem *)item animated:(BOOL)animated; // - (void)setRightBarButtonItem:(nullable UIBarButtonItem *)item animated:(BOOL)animated; // @property (nonatomic, readwrite, assign) UINavigationItemLargeTitleDisplayMode largeTitleDisplayMode __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, strong, nullable) UISearchController *searchController __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) BOOL hidesSearchBarWhenScrolling __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, copy, nullable) UINavigationBarAppearance *standardAppearance __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nonatomic, readwrite, copy, nullable) UINavigationBarAppearance *compactAppearance __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, readwrite, copy, nullable) UINavigationBarAppearance *scrollEdgeAppearance __attribute__((availability(ios,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UINavigationItem; #ifndef _REWRITER_typedef_UINavigationItem #define _REWRITER_typedef_UINavigationItem typedef struct objc_object UINavigationItem; typedef struct {} _objc_exc_UINavigationItem; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UINavigationBarAppearance #define _REWRITER_typedef_UINavigationBarAppearance typedef struct objc_object UINavigationBarAppearance; typedef struct {} _objc_exc_UINavigationBarAppearance; #endif // @protocol UINavigationBarDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UINavigationBar #define _REWRITER_typedef_UINavigationBar typedef struct objc_object UINavigationBar; typedef struct {} _objc_exc_UINavigationBar; #endif struct UINavigationBar_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nonatomic,assign) UIBarStyle barStyle __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nullable,nonatomic,weak) id<UINavigationBarDelegate> delegate; // @property(nonatomic,assign,getter=isTranslucent) BOOL translucent __attribute__((availability(ios,introduced=3.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)pushNavigationItem:(UINavigationItem *)item animated:(BOOL)animated; // - (nullable UINavigationItem *)popNavigationItemAnimated:(BOOL)animated; // @property(nullable, nonatomic,readonly,strong) UINavigationItem *topItem; // @property(nullable, nonatomic,readonly,strong) UINavigationItem *backItem; // @property(nullable,nonatomic,copy) NSArray<UINavigationItem *> *items; // - (void)setItems:(nullable NSArray<UINavigationItem *> *)items animated:(BOOL)animated; // @property (nonatomic, readwrite, assign) BOOL prefersLargeTitles __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // @property(null_resettable, nonatomic,strong) UIColor *tintColor; // @property(nullable, nonatomic,strong) UIColor *barTintColor __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIImage *shadowImage __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable,nonatomic,copy) NSDictionary<NSAttributedStringKey, id> *titleTextAttributes __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, copy) NSDictionary<NSAttributedStringKey, id> *largeTitleTextAttributes __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); // - (void)setTitleVerticalPositionAdjustment:(CGFloat)adjustment forBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (CGFloat)titleVerticalPositionAdjustmentForBarMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable,nonatomic,strong) UIImage *backIndicatorImage __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nullable,nonatomic,strong) UIImage *backIndicatorTransitionMaskImage __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, copy) UINavigationBarAppearance *standardAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property (nonatomic, readwrite, copy, nullable) UINavigationBarAppearance *compactAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, readwrite, copy, nullable) UINavigationBarAppearance *scrollEdgeAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))); /* @end */ // @protocol UINavigationBarDelegate <UIBarPositioningDelegate> /* @optional */ // - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPushItem:(UINavigationItem *)item; // - (void)navigationBar:(UINavigationBar *)navigationBar didPushItem:(UINavigationItem *)item; // - (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item; // - (void)navigationBar:(UINavigationBar *)navigationBar didPopItem:(UINavigationItem *)item; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * UINibOptionsKey __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UINibOptionsKey const UINibExternalObjects __attribute__((availability(ios,introduced=3.0))); // @interface NSBundle(UINibLoadingAdditions) // - (nullable NSArray *)loadNibNamed:(NSString *)name owner:(nullable id)owner options:(nullable NSDictionary<UINibOptionsKey, id> *)options; /* @end */ // @interface NSObject(UINibLoadingAdditions) // - (void)awakeFromNib __attribute__((objc_requires_super)); // - (void)prepareForInterfaceBuilder __attribute__((availability(ios,introduced=8.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSString * const UINibProxiedObjectsKey __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.0))) #ifndef _REWRITER_typedef_UINib #define _REWRITER_typedef_UINib typedef struct objc_object UINib; typedef struct {} _objc_exc_UINib; #endif struct UINib_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UINib *)nibWithNibName:(NSString *)name bundle:(nullable NSBundle *)bundleOrNil; // + (UINib *)nibWithData:(NSData *)data bundle:(nullable NSBundle *)bundleOrNil; // - (NSArray *)instantiateWithOwner:(nullable id)ownerOrNil options:(nullable NSDictionary<UINibOptionsKey, id> *)optionsOrNil; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPageControlInteractionState; enum { UIPageControlInteractionStateNone = 0, UIPageControlInteractionStateDiscrete = 1, UIPageControlInteractionStateContinuous = 2, } __attribute__((availability(ios,introduced=14.0))); typedef NSInteger UIPageControlBackgroundStyle; enum { UIPageControlBackgroundStyleAutomatic = 0, UIPageControlBackgroundStyleProminent = 1, UIPageControlBackgroundStyleMinimal = 2, } __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIPageControl #define _REWRITER_typedef_UIPageControl typedef struct objc_object UIPageControl; typedef struct {} _objc_exc_UIPageControl; #endif struct UIPageControl_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property (nonatomic, assign) NSInteger numberOfPages; // @property (nonatomic, assign) NSInteger currentPage; // @property (nonatomic) BOOL hidesForSinglePage; // @property (nullable, nonatomic, strong) UIColor *pageIndicatorTintColor __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nullable, nonatomic, strong) UIColor *currentPageIndicatorTintColor __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, assign) UIPageControlBackgroundStyle backgroundStyle __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, assign, readonly) UIPageControlInteractionState interactionState __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, assign) BOOL allowsContinuousInteraction __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, strong, nullable) UIImage *preferredIndicatorImage __attribute__((availability(ios,introduced=14.0))); // - (nullable UIImage *)indicatorImageForPage:(NSInteger)page __attribute__((availability(ios,introduced=14.0))); // - (void)setIndicatorImage:(nullable UIImage *)image forPage:(NSInteger)page __attribute__((availability(ios,introduced=14.0))); // - (CGSize)sizeForNumberOfPages:(NSInteger)pageCount; // @property (nonatomic) BOOL defersCurrentPageDisplay __attribute__((availability(ios,introduced=2.0,deprecated=14.0,message="defersCurrentPageDisplay no longer does anything reasonable with the new interaction mode."))); // - (void)updateCurrentPageDisplay __attribute__((availability(ios,introduced=2.0,deprecated=14.0,message="updateCurrentPageDisplay no longer does anything reasonable with the new interaction mode."))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPageViewControllerNavigationOrientation; enum { UIPageViewControllerNavigationOrientationHorizontal = 0, UIPageViewControllerNavigationOrientationVertical = 1 }; typedef NSInteger UIPageViewControllerSpineLocation; enum { UIPageViewControllerSpineLocationNone = 0, UIPageViewControllerSpineLocationMin = 1, UIPageViewControllerSpineLocationMid = 2, UIPageViewControllerSpineLocationMax = 3 }; typedef NSInteger UIPageViewControllerNavigationDirection; enum { UIPageViewControllerNavigationDirectionForward, UIPageViewControllerNavigationDirectionReverse }; typedef NSInteger UIPageViewControllerTransitionStyle; enum { UIPageViewControllerTransitionStylePageCurl = 0, UIPageViewControllerTransitionStyleScroll = 1 }; typedef NSString * UIPageViewControllerOptionsKey __attribute__((swift_wrapper(enum))); extern "C" __attribute__((visibility ("default"))) UIPageViewControllerOptionsKey const UIPageViewControllerOptionSpineLocationKey; extern "C" __attribute__((visibility ("default"))) UIPageViewControllerOptionsKey const UIPageViewControllerOptionInterPageSpacingKey __attribute__((availability(ios,introduced=6.0))); // @protocol UIPageViewControllerDelegate, UIPageViewControllerDataSource; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) #ifndef _REWRITER_typedef_UIPageViewController #define _REWRITER_typedef_UIPageViewController typedef struct objc_object UIPageViewController; typedef struct {} _objc_exc_UIPageViewController; #endif struct UIPageViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithTransitionStyle:(UIPageViewControllerTransitionStyle)style navigationOrientation:(UIPageViewControllerNavigationOrientation)navigationOrientation options:(nullable NSDictionary<UIPageViewControllerOptionsKey, id> *)options __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nullable, nonatomic, weak) id <UIPageViewControllerDelegate> delegate; // @property (nullable, nonatomic, weak) id <UIPageViewControllerDataSource> dataSource; // @property (nonatomic, readonly) UIPageViewControllerTransitionStyle transitionStyle; // @property (nonatomic, readonly) UIPageViewControllerNavigationOrientation navigationOrientation; // @property (nonatomic, readonly) UIPageViewControllerSpineLocation spineLocation; // @property (nonatomic, getter=isDoubleSided) BOOL doubleSided; // @property(nonatomic, readonly) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers; // @property (nullable, nonatomic, readonly) NSArray<__kindof UIViewController *> *viewControllers; // - (void)setViewControllers:(nullable NSArray<UIViewController *> *)viewControllers direction:(UIPageViewControllerNavigationDirection)direction animated:(BOOL)animated completion:(void (^ _Nullable)(BOOL finished))completion; /* @end */ // @protocol UIPageViewControllerDelegate <NSObject> /* @optional */ // - (void)pageViewController:(UIPageViewController *)pageViewController willTransitionToViewControllers:(NSArray<UIViewController *> *)pendingViewControllers __attribute__((availability(ios,introduced=6.0))); // - (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray<UIViewController *> *)previousViewControllers transitionCompleted:(BOOL)completed; // - (UIPageViewControllerSpineLocation)pageViewController:(UIPageViewController *)pageViewController spineLocationForInterfaceOrientation:(UIInterfaceOrientation)orientation __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientationMask)pageViewControllerSupportedInterfaceOrientations:(UIPageViewController *)pageViewController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientation)pageViewControllerPreferredInterfaceOrientationForPresentation:(UIPageViewController *)pageViewController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol UIPageViewControllerDataSource <NSObject> /* @required */ // - (nullable UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController; // - (nullable UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController; /* @optional */ // - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController __attribute__((availability(ios,introduced=6.0))); // - (NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController __attribute__((availability(ios,introduced=6.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * UIPasteboardName __attribute__((swift_wrapper(struct))); extern "C" __attribute__((visibility ("default"))) UIPasteboardName const UIPasteboardNameGeneral __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIPasteboardNameFind __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=3.0,deprecated=10.0,message="The Find pasteboard is no longer available."))); typedef NSString * UIPasteboardDetectionPattern __attribute__((swift_wrapper(enum))) __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) UIPasteboardDetectionPattern const UIPasteboardDetectionPatternProbableWebURL __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) UIPasteboardDetectionPattern const UIPasteboardDetectionPatternProbableWebSearch __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) UIPasteboardDetectionPattern const UIPasteboardDetectionPatternNumber __attribute__((availability(ios,introduced=14.0))); // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIPasteboard #define _REWRITER_typedef_UIPasteboard typedef struct objc_object UIPasteboard; typedef struct {} _objc_exc_UIPasteboard; #endif struct UIPasteboard_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) UIPasteboard *generalPasteboard; // + (nullable UIPasteboard *)pasteboardWithName:(UIPasteboardName)pasteboardName create:(BOOL)create; // + (UIPasteboard *)pasteboardWithUniqueName; // @property(readonly,nonatomic) UIPasteboardName name; // + (void)removePasteboardWithName:(UIPasteboardName)pasteboardName; // @property(readonly,getter=isPersistent,nonatomic) BOOL persistent; // - (void)setPersistent:(BOOL)persistent __attribute__((availability(ios,introduced=3.0,deprecated=10.0,message="Do not set persistence on pasteboards. This property is set automatically."))); // @property(readonly,nonatomic) NSInteger changeCount; // @property (nonatomic, copy) NSArray<__kindof NSItemProvider *> *itemProviders __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setItemProviders:(NSArray<NSItemProvider *> *)itemProviders localOnly:(BOOL)localOnly expirationDate:(NSDate * _Nullable)expirationDate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setObjects:(NSArray<id<NSItemProviderWriting>> *)objects __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)setObjects:(NSArray<id<NSItemProviderWriting>> *)objects localOnly:(BOOL)localOnly expirationDate:(NSDate * _Nullable)expirationDate __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) NSArray<NSString *> * pasteboardTypes; // - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes; // - (nullable NSData *)dataForPasteboardType:(NSString *)pasteboardType; // - (nullable id)valueForPasteboardType:(NSString *)pasteboardType; // - (void)setValue:(id)value forPasteboardType:(NSString *)pasteboardType; // - (void)setData:(NSData *)data forPasteboardType:(NSString *)pasteboardType; // @property(readonly,nonatomic) NSInteger numberOfItems; // - (nullable NSArray<NSArray<NSString *> *> *)pasteboardTypesForItemSet:(nullable NSIndexSet*)itemSet; // - (BOOL)containsPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes inItemSet:(nullable NSIndexSet *)itemSet; // - (nullable NSIndexSet *)itemSetWithPasteboardTypes:(NSArray<NSString *> *)pasteboardTypes; // - (nullable NSArray *)valuesForPasteboardType:(NSString *)pasteboardType inItemSet:(nullable NSIndexSet *)itemSet; // - (nullable NSArray<NSData *> *)dataForPasteboardType:(NSString *)pasteboardType inItemSet:(nullable NSIndexSet *)itemSet; // @property(nonatomic,copy) NSArray<NSDictionary<NSString *, id> *> *items; // - (void)addItems:(NSArray<NSDictionary<NSString *, id> *> *)items; typedef NSString * UIPasteboardOption __attribute__((swift_wrapper(enum))) __attribute__((availability(ios,introduced=10.0))); extern "C" __attribute__((visibility ("default"))) UIPasteboardOption const UIPasteboardOptionExpirationDate __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))) __attribute__((swift_name("UIPasteboardOption.expirationDate"))); extern "C" __attribute__((visibility ("default"))) UIPasteboardOption const UIPasteboardOptionLocalOnly __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))) __attribute__((swift_name("UIPasteboardOption.localOnly"))); // - (void)setItems:(NSArray<NSDictionary<NSString *, id> *> *)items options:(NSDictionary<UIPasteboardOption, id> *)options __attribute__((availability(ios,introduced=10.0))); // @property(nullable,nonatomic,copy) NSString *string __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) NSArray<NSString *> *strings __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) NSURL *URL __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) NSArray<NSURL *> *URLs __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) UIImage *image __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) NSArray<UIImage *> *images __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) UIColor *color __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable,nonatomic,copy) NSArray<UIColor *> *colors __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property (nonatomic, readonly) BOOL hasStrings __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) BOOL hasURLs __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) BOOL hasImages __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic, readonly) BOOL hasColors __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))); #if 0 - (void)detectPatternsForPatterns:(NSSet<UIPasteboardDetectionPattern> *)patterns completionHandler:(void(^)(NSSet<UIPasteboardDetectionPattern> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_private)) __attribute__((availability(ios,introduced=14.0))); #endif #if 0 - (void)detectPatternsForPatterns:(NSSet<UIPasteboardDetectionPattern> *)patterns inItemSet:(NSIndexSet * _Nullable)itemSet completionHandler:(void(^)(NSArray<NSSet<UIPasteboardDetectionPattern> *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_private)) __attribute__((availability(ios,introduced=14.0))); #endif #if 0 - (void)detectValuesForPatterns:(NSSet<UIPasteboardDetectionPattern> *)patterns completionHandler:(void(^)(NSDictionary<UIPasteboardDetectionPattern, id> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_private)) __attribute__((availability(ios,introduced=14.0))); #endif #if 0 - (void)detectValuesForPatterns:(NSSet<UIPasteboardDetectionPattern> *)patterns inItemSet:(NSIndexSet * _Nullable)itemSet completionHandler:(void(^)(NSArray<NSDictionary<UIPasteboardDetectionPattern, id> *> * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_private)) __attribute__((availability(ios,introduced=14.0))); #endif /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIPasteboardChangedNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIPasteboardChangedTypesAddedKey __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIPasteboardChangedTypesRemovedKey __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIPasteboardRemovedNotification __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSArray<NSString *> *UIPasteboardTypeListString __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSArray<NSString *> *UIPasteboardTypeListURL __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSArray<NSString *> *UIPasteboardTypeListImage __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSArray<NSString *> *UIPasteboardTypeListColor __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString * const UIPasteboardTypeAutomatic __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(ios,introduced=10.0))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPinchGestureRecognizer #define _REWRITER_typedef_UIPinchGestureRecognizer typedef struct objc_object UIPinchGestureRecognizer; typedef struct {} _objc_exc_UIPinchGestureRecognizer; #endif struct UIPinchGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property (nonatomic) CGFloat scale; // @property (nonatomic,readonly) CGFloat velocity; /* @end */ #pragma clang assume_nonnull end typedef NSUInteger UIPopoverArrowDirection; enum { UIPopoverArrowDirectionUp = 1UL << 0, UIPopoverArrowDirectionDown = 1UL << 1, UIPopoverArrowDirectionLeft = 1UL << 2, UIPopoverArrowDirectionRight = 1UL << 3, UIPopoverArrowDirectionAny = UIPopoverArrowDirectionUp | UIPopoverArrowDirectionDown | UIPopoverArrowDirectionLeft | UIPopoverArrowDirectionRight, UIPopoverArrowDirectionUnknown = (9223372036854775807L *2UL+1UL) }; // @interface UIViewController (UIPopoverController) // @property (nonatomic,readwrite,getter=isModalInPopover) BOOL modalInPopover __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="modalInPresentation"))); // @property (nonatomic,readwrite) CGSize contentSizeForViewInPopover __attribute__((availability(ios,introduced=3.2,deprecated=7.0,replacement="preferredContentSize."))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull begin // @class UIBarButtonItem; #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif // @protocol UIPopoverControllerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message="UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController."))) #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif struct UIPopoverController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithContentViewController:(UIViewController *)viewController; // @property (nullable, nonatomic, weak) id <UIPopoverControllerDelegate> delegate; // @property (nonatomic, strong) UIViewController *contentViewController; // - (void)setContentViewController:(UIViewController *)viewController animated:(BOOL)animated; // @property (nonatomic) CGSize popoverContentSize; // - (void)setPopoverContentSize:(CGSize)size animated:(BOOL)animated; // @property (nonatomic, readonly, getter=isPopoverVisible) BOOL popoverVisible; // @property (nonatomic, readonly) UIPopoverArrowDirection popoverArrowDirection; // @property (nullable, nonatomic, copy) NSArray<__kindof UIView *> *passthroughViews; // - (void)presentPopoverFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections animated:(BOOL)animated; // - (void)presentPopoverFromBarButtonItem:(UIBarButtonItem *)item permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections animated:(BOOL)animated; // - (void)dismissPopoverAnimated:(BOOL)animated; // @property (nullable, nonatomic, copy) UIColor *backgroundColor __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readwrite) UIEdgeInsets popoverLayoutMargins __attribute__((availability(ios,introduced=5.0))); // @property (nullable, nonatomic, readwrite, strong) Class popoverBackgroundViewClass __attribute__((availability(ios,introduced=5.0))); /* @end */ // @protocol UIPopoverControllerDelegate <NSObject> /* @optional */ // - (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message=""))); // - (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController __attribute__((availability(ios,introduced=3.2,deprecated=9.0,message=""))); // - (void)popoverController:(UIPopoverController *)popoverController willRepositionPopoverToRect:(inout CGRect *)rect inView:(inout UIView * _Nonnull * _Nonnull)view __attribute__((availability(ios,introduced=7.0,deprecated=9.0,message=""))); /* @end */ #pragma clang assume_nonnull end // @protocol UIPopoverBackgroundViewMethods // + (CGFloat)arrowBase; // + (UIEdgeInsets)contentViewInsets; // + (CGFloat)arrowHeight; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) #ifndef _REWRITER_typedef_UIPopoverBackgroundView #define _REWRITER_typedef_UIPopoverBackgroundView typedef struct objc_object UIPopoverBackgroundView; typedef struct {} _objc_exc_UIPopoverBackgroundView; #endif struct UIPopoverBackgroundView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property (nonatomic, readwrite) CGFloat arrowOffset; // @property (nonatomic, readwrite) UIPopoverArrowDirection arrowDirection; @property(class, nonatomic, readonly) BOOL wantsDefaultContentAppearance __attribute__((availability(ios,introduced=6.0,deprecated=13.0,message="No longer supported"))); /* @end */ // @class UIGestureRecognizer; #ifndef _REWRITER_typedef_UIGestureRecognizer #define _REWRITER_typedef_UIGestureRecognizer typedef struct objc_object UIGestureRecognizer; typedef struct {} _objc_exc_UIGestureRecognizer; #endif // @class UIResponder; #ifndef _REWRITER_typedef_UIResponder #define _REWRITER_typedef_UIResponder typedef struct objc_object UIResponder; typedef struct {} _objc_exc_UIResponder; #endif // @class UIWindow; #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif __attribute__((availability(ios,introduced=9.0))) typedef NSInteger UIPressPhase; enum { UIPressPhaseBegan, UIPressPhaseChanged, UIPressPhaseStationary, UIPressPhaseEnded, UIPressPhaseCancelled, }; __attribute__((availability(ios,introduced=9.0))) typedef NSInteger UIPressType; enum { UIPressTypeUpArrow, UIPressTypeDownArrow, UIPressTypeLeftArrow, UIPressTypeRightArrow, UIPressTypeSelect, UIPressTypeMenu, UIPressTypePlayPause, UIPressTypePageUp __attribute__((availability(tvos,introduced=14.3))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) = 30, UIPressTypePageDown __attribute__((availability(tvos,introduced=14.3))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) = 31, }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIPress #define _REWRITER_typedef_UIPress typedef struct objc_object UIPress; typedef struct {} _objc_exc_UIPress; #endif struct UIPress_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) NSTimeInterval timestamp; // @property (nonatomic, readonly) UIPressPhase phase; // @property (nonatomic, readonly) UIPressType type; // @property (nullable, nonatomic, readonly, strong) UIWindow *window; // @property (nullable, nonatomic, readonly, strong) UIResponder *responder; // @property (nullable, nonatomic, readonly, copy) NSArray <UIGestureRecognizer *> *gestureRecognizers; // @property (nonatomic, readonly) CGFloat force; // @property (nonatomic, nullable, readonly) UIKey *key; /* @end */ #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIPressesEvent #define _REWRITER_typedef_UIPressesEvent typedef struct objc_object UIPressesEvent; typedef struct {} _objc_exc_UIPressesEvent; #endif struct UIPressesEvent_IMPL { struct UIEvent_IMPL UIEvent_IVARS; }; // @property(nonatomic, readonly) NSSet <UIPress *> *allPresses; // - (NSSet <UIPress *> *)pressesForGestureRecognizer:(UIGestureRecognizer *)gesture; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrinter #define _REWRITER_typedef_UIPrinter typedef struct objc_object UIPrinter; typedef struct {} _objc_exc_UIPrinter; #endif struct UIPrinter_IMPL { struct NSObject_IMPL NSObject_IVARS; }; typedef NSInteger UIPrinterJobTypes; enum { UIPrinterJobTypeUnknown = 0, UIPrinterJobTypeDocument = 1 << 0, UIPrinterJobTypeEnvelope = 1 << 1, UIPrinterJobTypeLabel = 1 << 2, UIPrinterJobTypePhoto = 1 << 3, UIPrinterJobTypeReceipt = 1 << 4, UIPrinterJobTypeRoll = 1 << 5, UIPrinterJobTypeLargeFormat = 1 << 6, UIPrinterJobTypePostcard = 1 << 7 } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))); // + (UIPrinter *)printerWithURL:(NSURL *)url; // @property (readonly,copy) NSURL *URL; // @property (readonly,copy) NSString *displayName; // @property (nullable,readonly,copy) NSString *displayLocation; // @property (readonly) UIPrinterJobTypes supportedJobTypes; // @property (nullable, readonly,copy) NSString *makeAndModel; // @property (readonly) BOOL supportsColor; // @property (readonly) BOOL supportsDuplex; // - (void)contactPrinter:(void(^ _Nullable)(BOOL available))completionHandler; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPrinterPickerController; #ifndef _REWRITER_typedef_UIPrinterPickerController #define _REWRITER_typedef_UIPrinterPickerController typedef struct objc_object UIPrinterPickerController; typedef struct {} _objc_exc_UIPrinterPickerController; #endif #ifndef _REWRITER_typedef_UIPrinter #define _REWRITER_typedef_UIPrinter typedef struct objc_object UIPrinter; typedef struct {} _objc_exc_UIPrinter; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif typedef void (*UIPrinterPickerCompletionHandler)(UIPrinterPickerController *printerPickerController, BOOL userDidSelect, NSError * _Nullable error); __attribute__((availability(tvos,unavailable))) // @protocol UIPrinterPickerControllerDelegate <NSObject> /* @optional */ // - (nullable UIViewController *)printerPickerControllerParentViewController:(UIPrinterPickerController *)printerPickerController; // - (BOOL)printerPickerController:(UIPrinterPickerController *)printerPickerController shouldShowPrinter:(UIPrinter *)printer; // - (void)printerPickerControllerWillPresent:(UIPrinterPickerController *)printerPickerController; // - (void)printerPickerControllerDidPresent:(UIPrinterPickerController *)printerPickerController; // - (void)printerPickerControllerWillDismiss:(UIPrinterPickerController *)printerPickerController; // - (void)printerPickerControllerDidDismiss:(UIPrinterPickerController *)printerPickerController; // - (void)printerPickerControllerDidSelectPrinter:(UIPrinterPickerController *)printerPickerController; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrinterPickerController #define _REWRITER_typedef_UIPrinterPickerController typedef struct objc_object UIPrinterPickerController; typedef struct {} _objc_exc_UIPrinterPickerController; #endif struct UIPrinterPickerController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIPrinterPickerController *)printerPickerControllerWithInitiallySelectedPrinter:(nullable UIPrinter *)printer; // @property(nullable,nonatomic,readonly) UIPrinter *selectedPrinter; // @property(nullable,nonatomic,weak) id<UIPrinterPickerControllerDelegate> delegate; // - (BOOL)presentAnimated:(BOOL)animated completionHandler:(nullable UIPrinterPickerCompletionHandler)completion; // - (BOOL)presentFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated completionHandler:(nullable UIPrinterPickerCompletionHandler)completion; // - (BOOL)presentFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated completionHandler:(nullable UIPrinterPickerCompletionHandler)completion; // - (void)dismissAnimated:(BOOL)animated; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) NSErrorDomain const UIPrintErrorDomain __attribute__((availability(tvos,unavailable))); typedef NSInteger UIPrintErrorCode; enum { UIPrintingNotAvailableError = 1, UIPrintNoContentError, UIPrintUnknownImageFormatError, UIPrintJobFailedError, } __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPrintPageRenderer; #ifndef _REWRITER_typedef_UIPrintPageRenderer #define _REWRITER_typedef_UIPrintPageRenderer typedef struct objc_object UIPrintPageRenderer; typedef struct {} _objc_exc_UIPrintPageRenderer; #endif // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrintFormatter #define _REWRITER_typedef_UIPrintFormatter typedef struct objc_object UIPrintFormatter; typedef struct {} _objc_exc_UIPrintFormatter; #endif struct UIPrintFormatter_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nullable,nonatomic,readonly,weak) UIPrintPageRenderer *printPageRenderer __attribute__((availability(tvos,unavailable))); // - (void)removeFromPrintPageRenderer __attribute__((availability(tvos,unavailable))); // @property(nonatomic) CGFloat maximumContentHeight __attribute__((availability(tvos,unavailable))); // @property(nonatomic) CGFloat maximumContentWidth __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UIEdgeInsets contentInsets __attribute__((availability(ios,introduced=4.2,deprecated=10.0,replacement="perPageContentInsets"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UIEdgeInsets perPageContentInsets __attribute__((availability(tvos,unavailable))); // @property(nonatomic) NSInteger startPage __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) NSInteger pageCount __attribute__((availability(tvos,unavailable))); // - (CGRect)rectForPageAtIndex:(NSInteger)pageIndex __attribute__((availability(tvos,unavailable))); // - (void)drawInRect:(CGRect)rect forPageAtIndex:(NSInteger)pageIndex __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISimpleTextPrintFormatter #define _REWRITER_typedef_UISimpleTextPrintFormatter typedef struct objc_object UISimpleTextPrintFormatter; typedef struct {} _objc_exc_UISimpleTextPrintFormatter; #endif struct UISimpleTextPrintFormatter_IMPL { struct UIPrintFormatter_IMPL UIPrintFormatter_IVARS; }; // - (instancetype)initWithText:(NSString *)text; // - (instancetype)initWithAttributedText:(NSAttributedString *)attributedText __attribute__((availability(ios,introduced=7.0))); // @property(nullable,nonatomic,copy) NSString *text; // @property(nullable,nonatomic,copy) NSAttributedString *attributedText __attribute__((availability(ios,introduced=7.0))); // @property(nullable,nonatomic,strong) UIFont *font; // @property(nullable,nonatomic,strong) UIColor *color; // @property(nonatomic) NSTextAlignment textAlignment; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIMarkupTextPrintFormatter #define _REWRITER_typedef_UIMarkupTextPrintFormatter typedef struct objc_object UIMarkupTextPrintFormatter; typedef struct {} _objc_exc_UIMarkupTextPrintFormatter; #endif struct UIMarkupTextPrintFormatter_IMPL { struct UIPrintFormatter_IMPL UIPrintFormatter_IVARS; }; // - (instancetype)initWithMarkupText:(NSString *)markupText; // @property(nullable,nonatomic,copy) NSString *markupText; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIViewPrintFormatter #define _REWRITER_typedef_UIViewPrintFormatter typedef struct objc_object UIViewPrintFormatter; typedef struct {} _objc_exc_UIViewPrintFormatter; #endif struct UIViewPrintFormatter_IMPL { struct UIPrintFormatter_IMPL UIPrintFormatter_IVARS; }; // @property(nonatomic,readonly) UIView *view; /* @end */ // @interface UIView(UIPrintFormatter) // - (UIViewPrintFormatter *)viewPrintFormatter __attribute__((availability(tvos,unavailable))); // - (void)drawRect:(CGRect)rect forViewPrintFormatter:(UIViewPrintFormatter *)formatter __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPrintInfoOutputType; enum { UIPrintInfoOutputGeneral, UIPrintInfoOutputPhoto, UIPrintInfoOutputGrayscale, UIPrintInfoOutputPhotoGrayscale __attribute__((availability(ios,introduced=7.0))), } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIPrintInfoOrientation; enum { UIPrintInfoOrientationPortrait, UIPrintInfoOrientationLandscape, } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIPrintInfoDuplex; enum { UIPrintInfoDuplexNone, UIPrintInfoDuplexLongEdge, UIPrintInfoDuplexShortEdge, } __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrintInfo #define _REWRITER_typedef_UIPrintInfo typedef struct objc_object UIPrintInfo; typedef struct {} _objc_exc_UIPrintInfo; #endif struct UIPrintInfo_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // + (UIPrintInfo *)printInfo; // + (UIPrintInfo *)printInfoWithDictionary:(nullable NSDictionary *)dictionary; // @property(nullable,nonatomic,copy) NSString *printerID; // @property(nonatomic,copy) NSString *jobName; // @property(nonatomic) UIPrintInfoOutputType outputType; // @property(nonatomic) UIPrintInfoOrientation orientation; // @property(nonatomic) UIPrintInfoDuplex duplex; // @property(nonatomic,readonly) NSDictionary *dictionaryRepresentation; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPrintInteractionController; #ifndef _REWRITER_typedef_UIPrintInteractionController #define _REWRITER_typedef_UIPrintInteractionController typedef struct objc_object UIPrintInteractionController; typedef struct {} _objc_exc_UIPrintInteractionController; #endif #ifndef _REWRITER_typedef_UIPrintInfo #define _REWRITER_typedef_UIPrintInfo typedef struct objc_object UIPrintInfo; typedef struct {} _objc_exc_UIPrintInfo; #endif #ifndef _REWRITER_typedef_UIPrintPaper #define _REWRITER_typedef_UIPrintPaper typedef struct objc_object UIPrintPaper; typedef struct {} _objc_exc_UIPrintPaper; #endif #ifndef _REWRITER_typedef_UIPrintPageRenderer #define _REWRITER_typedef_UIPrintPageRenderer typedef struct objc_object UIPrintPageRenderer; typedef struct {} _objc_exc_UIPrintPageRenderer; #endif #ifndef _REWRITER_typedef_UIPrintFormatter #define _REWRITER_typedef_UIPrintFormatter typedef struct objc_object UIPrintFormatter; typedef struct {} _objc_exc_UIPrintFormatter; #endif #ifndef _REWRITER_typedef_UIPrinter #define _REWRITER_typedef_UIPrinter typedef struct objc_object UIPrinter; typedef struct {} _objc_exc_UIPrinter; #endif // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif typedef void (*UIPrintInteractionCompletionHandler)(UIPrintInteractionController *printInteractionController, BOOL completed, NSError * _Nullable error) __attribute__((availability(tvos,unavailable))); __attribute__((availability(ios,introduced=9.0))) typedef NSInteger UIPrinterCutterBehavior; enum { UIPrinterCutterBehaviorNoCut, UIPrinterCutterBehaviorPrinterDefault, UIPrinterCutterBehaviorCutAfterEachPage, UIPrinterCutterBehaviorCutAfterEachCopy, UIPrinterCutterBehaviorCutAfterEachJob, } __attribute__((availability(tvos,unavailable))); // @protocol UIPrintInteractionControllerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrintInteractionController #define _REWRITER_typedef_UIPrintInteractionController typedef struct objc_object UIPrintInteractionController; typedef struct {} _objc_exc_UIPrintInteractionController; #endif struct UIPrintInteractionController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly, getter=isPrintingAvailable) BOOL printingAvailable; @property(class, nonatomic, readonly) NSSet<NSString *> *printableUTIs; // + (BOOL)canPrintURL:(NSURL *)url; // + (BOOL)canPrintData:(NSData *)data; @property(class, nonatomic, readonly) UIPrintInteractionController *sharedPrintController; // @property(nullable,nonatomic,strong) UIPrintInfo *printInfo; // @property(nullable,nonatomic,weak) id<UIPrintInteractionControllerDelegate> delegate; // @property(nonatomic) BOOL showsPageRange __attribute__((availability(ios,introduced=4.2,deprecated=10.0,message="Pages can be removed from the print preview, so page range is always shown."))); // @property(nonatomic) BOOL showsNumberOfCopies __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic) BOOL showsPaperSelectionForLoadedPapers __attribute__((availability(ios,introduced=8.0))); // @property(nullable, nonatomic,readonly) UIPrintPaper *printPaper; // @property(nullable,nonatomic,strong) UIPrintPageRenderer *printPageRenderer; // @property(nullable,nonatomic,strong) UIPrintFormatter *printFormatter; // @property(nullable,nonatomic,copy) id printingItem; // @property(nullable,nonatomic,copy) NSArray *printingItems; // - (BOOL)presentAnimated:(BOOL)animated completionHandler:(nullable UIPrintInteractionCompletionHandler)completion; // - (BOOL)presentFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated completionHandler:(nullable UIPrintInteractionCompletionHandler)completion; // - (BOOL)presentFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated completionHandler:(nullable UIPrintInteractionCompletionHandler)completion; // - (BOOL)printToPrinter:(UIPrinter *)printer completionHandler:(nullable UIPrintInteractionCompletionHandler)completion; // - (void)dismissAnimated:(BOOL)animated; /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIPrintInteractionControllerDelegate <NSObject> /* @optional */ // - ( UIViewController * _Nullable )printInteractionControllerParentViewController:(UIPrintInteractionController *)printInteractionController; // - (UIPrintPaper *)printInteractionController:(UIPrintInteractionController *)printInteractionController choosePaper:(NSArray<UIPrintPaper *> *)paperList; // - (void)printInteractionControllerWillPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController; // - (void)printInteractionControllerDidPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController; // - (void)printInteractionControllerWillDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController; // - (void)printInteractionControllerDidDismissPrinterOptions:(UIPrintInteractionController *)printInteractionController; // - (void)printInteractionControllerWillStartJob:(UIPrintInteractionController *)printInteractionController; // - (void)printInteractionControllerDidFinishJob:(UIPrintInteractionController *)printInteractionController; // - (CGFloat)printInteractionController:(UIPrintInteractionController *)printInteractionController cutLengthForPaper:(UIPrintPaper *)paper __attribute__((availability(ios,introduced=7.0))); // - (UIPrinterCutterBehavior) printInteractionController:(UIPrintInteractionController *)printInteractionController chooseCutterBehavior:(NSArray *)availableBehaviors __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPrintFormatter; #ifndef _REWRITER_typedef_UIPrintFormatter #define _REWRITER_typedef_UIPrintFormatter typedef struct objc_object UIPrintFormatter; typedef struct {} _objc_exc_UIPrintFormatter; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrintPageRenderer #define _REWRITER_typedef_UIPrintPageRenderer typedef struct objc_object UIPrintPageRenderer; typedef struct {} _objc_exc_UIPrintPageRenderer; #endif struct UIPrintPageRenderer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic) CGFloat headerHeight; // @property(nonatomic) CGFloat footerHeight; // @property(nonatomic,readonly) CGRect paperRect; // @property(nonatomic,readonly) CGRect printableRect; // @property(nonatomic,readonly) NSInteger numberOfPages; // @property(nullable,atomic,copy) NSArray<UIPrintFormatter *> *printFormatters; // - (nullable NSArray<UIPrintFormatter *> *)printFormattersForPageAtIndex:(NSInteger)pageIndex; // - (void)addPrintFormatter:(UIPrintFormatter *)formatter startingAtPageAtIndex:(NSInteger)pageIndex; // - (void)prepareForDrawingPages:(NSRange)range; // - (void)drawPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)printableRect; // - (void)drawPrintFormatter:(UIPrintFormatter *)printFormatter forPageAtIndex:(NSInteger)pageIndex; // - (void)drawHeaderForPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)headerRect; // - (void)drawContentForPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)contentRect; // - (void)drawFooterForPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)footerRect; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=4.2)))__attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPrintPaper #define _REWRITER_typedef_UIPrintPaper typedef struct objc_object UIPrintPaper; typedef struct {} _objc_exc_UIPrintPaper; #endif struct UIPrintPaper_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIPrintPaper *)bestPaperForPageSize:(CGSize)contentSize withPapersFromArray:(NSArray<UIPrintPaper *> *)paperList; // @property(readonly) CGSize paperSize; // @property(readonly) CGRect printableRect; /* @end */ // @interface UIPrintPaper(Deprecated_Nonfunctional) // - (CGRect)printRect __attribute__((availability(tvos,unavailable))) ; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImageView; #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_CAGradientLayer #define _REWRITER_typedef_CAGradientLayer typedef struct objc_object CAGradientLayer; typedef struct {} _objc_exc_CAGradientLayer; #endif typedef NSInteger UIProgressViewStyle; enum { UIProgressViewStyleDefault, UIProgressViewStyleBar __attribute__((availability(tvos,unavailable))), }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIProgressView #define _REWRITER_typedef_UIProgressView typedef struct objc_object UIProgressView; typedef struct {} _objc_exc_UIProgressView; #endif struct UIProgressView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithProgressViewStyle:(UIProgressViewStyle)style; // @property(nonatomic) UIProgressViewStyle progressViewStyle; // @property(nonatomic) float progress; // @property(nonatomic, strong, nullable) UIColor* progressTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic, strong, nullable) UIColor* trackTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic, strong, nullable) UIImage* progressImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic, strong, nullable) UIImage* trackImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setProgress:(float)progress animated:(BOOL)animated __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic, strong, nullable) NSProgress *observedProgress __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIReferenceLibraryViewController #define _REWRITER_typedef_UIReferenceLibraryViewController typedef struct objc_object UIReferenceLibraryViewController; typedef struct {} _objc_exc_UIReferenceLibraryViewController; #endif struct UIReferenceLibraryViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // + (BOOL)dictionaryHasDefinitionForTerm:(NSString *)term; // - (instancetype)initWithTerm:(NSString *)term __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIRotationGestureRecognizer #define _REWRITER_typedef_UIRotationGestureRecognizer typedef struct objc_object UIRotationGestureRecognizer; typedef struct {} _objc_exc_UIRotationGestureRecognizer; #endif struct UIRotationGestureRecognizer_IMPL { struct UIGestureRecognizer_IMPL UIGestureRecognizer_IVARS; }; // @property (nonatomic) CGFloat rotation; // @property (nonatomic,readonly) CGFloat velocity; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIScreenMode; #ifndef _REWRITER_typedef_UIScreenMode #define _REWRITER_typedef_UIScreenMode typedef struct objc_object UIScreenMode; typedef struct {} _objc_exc_UIScreenMode; #endif #ifndef _REWRITER_typedef_CADisplayLink #define _REWRITER_typedef_CADisplayLink typedef struct objc_object CADisplayLink; typedef struct {} _objc_exc_CADisplayLink; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIScreenDidConnectNotification __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIScreenDidDisconnectNotification __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIScreenModeDidChangeNotification __attribute__((availability(ios,introduced=3.2))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIScreenBrightnessDidChangeNotification __attribute__((availability(ios,introduced=5.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIScreenCapturedDidChangeNotification __attribute__((availability(ios,introduced=11.0))); typedef NSInteger UIScreenOverscanCompensation; enum { UIScreenOverscanCompensationScale, UIScreenOverscanCompensationInsetBounds, UIScreenOverscanCompensationNone __attribute__((availability(ios,introduced=9.0))), UIScreenOverscanCompensationInsetApplicationFrame __attribute__((availability(ios,introduced=5_0,deprecated=9_0,message="" "Use UIScreenOverscanCompensationNone"))) = 2, }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIScreen #define _REWRITER_typedef_UIScreen typedef struct objc_object UIScreen; typedef struct {} _objc_exc_UIScreen; #endif struct UIScreen_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens __attribute__((availability(ios,introduced=3.2))); @property(class, nonatomic, readonly) UIScreen *mainScreen; // @property(nonatomic,readonly) CGRect bounds; // @property(nonatomic,readonly) CGFloat scale __attribute__((availability(ios,introduced=4.0))); // @property(nonatomic,readonly,copy) NSArray<UIScreenMode *> *availableModes __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic,readonly,strong) UIScreenMode *preferredMode __attribute__((availability(ios,introduced=4.3))) __attribute__((availability(tvos,unavailable))); // @property(nullable,nonatomic,strong) UIScreenMode *currentMode __attribute__((availability(ios,introduced=3.2))); // @property(nonatomic) UIScreenOverscanCompensation overscanCompensation __attribute__((availability(ios,introduced=5.0))); // @property(nonatomic,readonly) UIEdgeInsets overscanCompensationInsets __attribute__((availability(ios,introduced=9.0))); // @property(nullable, nonatomic,readonly,strong) UIScreen *mirroredScreen __attribute__((availability(ios,introduced=4.3))); // @property(nonatomic,readonly,getter=isCaptured) BOOL captured __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) CGFloat brightness __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) BOOL wantsSoftwareDimming __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); // @property (readonly) id <UICoordinateSpace> coordinateSpace __attribute__((availability(ios,introduced=8.0))); // @property (readonly) id <UICoordinateSpace> fixedCoordinateSpace __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic,readonly) CGRect nativeBounds __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic,readonly) CGFloat nativeScale __attribute__((availability(ios,introduced=8.0))); // - (nullable CADisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel __attribute__((availability(ios,introduced=4.0))); // @property (readonly) NSInteger maximumFramesPerSecond __attribute__((availability(ios,introduced=10.3))); // @property(nonatomic, readonly) CFTimeInterval calibratedLatency __attribute__((availability(ios,introduced=13.0))); // @property (nullable, nonatomic, weak, readonly) id<UIFocusItem> focusedItem __attribute__((availability(ios,introduced=10.0))); // @property (nullable, nonatomic, weak, readonly) UIView *focusedView __attribute__((availability(ios,introduced=9.0))); // @property (readonly, nonatomic) BOOL supportsFocus __attribute__((availability(ios,introduced=9.0))); // @property(nonatomic,readonly) CGRect applicationFrame __attribute__((availability(ios,introduced=2.0,deprecated=9.0,replacement="bounds"))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UIScreen (UISnapshotting) // - (UIView *)snapshotViewAfterScreenUpdates:(BOOL)afterUpdates __attribute__((availability(ios,introduced=7.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIScreenEdgePanGestureRecognizer #define _REWRITER_typedef_UIScreenEdgePanGestureRecognizer typedef struct objc_object UIScreenEdgePanGestureRecognizer; typedef struct {} _objc_exc_UIScreenEdgePanGestureRecognizer; #endif struct UIScreenEdgePanGestureRecognizer_IMPL { struct UIPanGestureRecognizer_IMPL UIPanGestureRecognizer_IVARS; }; // @property (readwrite, nonatomic, assign) UIRectEdge edges; /* @end */ #pragma clang assume_nonnull end extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UIScreenMode #define _REWRITER_typedef_UIScreenMode typedef struct objc_object UIScreenMode; typedef struct {} _objc_exc_UIScreenMode; #endif struct UIScreenMode_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(readonly,nonatomic) CGSize size; // @property(readonly,nonatomic) CGFloat pixelAspectRatio; /* @end */ #pragma clang assume_nonnull begin typedef NSInteger UISearchBarIcon; enum { UISearchBarIconSearch, UISearchBarIconClear __attribute__((availability(tvos,unavailable))), UISearchBarIconBookmark __attribute__((availability(tvos,unavailable))), UISearchBarIconResultsList __attribute__((availability(tvos,unavailable))), }; typedef NSUInteger UISearchBarStyle; enum { UISearchBarStyleDefault, UISearchBarStyleProminent, UISearchBarStyleMinimal } __attribute__((availability(ios,introduced=7.0))); // @protocol UISearchBarDelegate; // @class UITextField; #ifndef _REWRITER_typedef_UITextField #define _REWRITER_typedef_UITextField typedef struct objc_object UITextField; typedef struct {} _objc_exc_UITextField; #endif #ifndef _REWRITER_typedef_UILabel #define _REWRITER_typedef_UILabel typedef struct objc_object UILabel; typedef struct {} _objc_exc_UILabel; #endif #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UISearchTextField #define _REWRITER_typedef_UISearchTextField typedef struct objc_object UISearchTextField; typedef struct {} _objc_exc_UISearchTextField; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UISearchBar #define _REWRITER_typedef_UISearchBar typedef struct objc_object UISearchBar; typedef struct {} _objc_exc_UISearchBar; #endif struct UISearchBar_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)init __attribute__((availability(tvos,unavailable))); // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UIBarStyle barStyle __attribute__((availability(tvos,unavailable))); // @property(nullable,nonatomic,weak) id<UISearchBarDelegate> delegate; // @property(nullable,nonatomic,copy) NSString *text; // @property(nullable,nonatomic,copy) NSString *prompt; // @property(nullable,nonatomic,copy) NSString *placeholder; // @property(nonatomic) BOOL showsBookmarkButton __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) UISearchTextField *searchTextField __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic) BOOL showsCancelButton __attribute__((availability(tvos,unavailable))); // @property(nonatomic) BOOL showsSearchResultsButton __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, getter=isSearchResultsButtonSelected) BOOL searchResultsButtonSelected __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); // - (void)setShowsCancelButton:(BOOL)showsCancelButton animated:(BOOL)animated __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly, strong) UITextInputAssistantItem *inputAssistantItem __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(null_resettable, nonatomic,strong) UIColor *tintColor; // @property(nullable, nonatomic,strong) UIColor *barTintColor __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic) UISearchBarStyle searchBarStyle __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic,assign,getter=isTranslucent) BOOL translucent __attribute__((availability(ios,introduced=3.0))); // @property(nullable, nonatomic,copy) NSArray<NSString *> *scopeButtonTitles __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic) NSInteger selectedScopeButtonIndex __attribute__((availability(ios,introduced=3.0))); // @property(nonatomic) BOOL showsScopeBar __attribute__((availability(ios,introduced=3.0))); // - (void)setShowsScopeBar:(BOOL)show animated:(BOOL)animate __attribute__((availability(ios,introduced=13.0))); // @property (nullable, nonatomic, readwrite, strong) UIView *inputAccessoryView; // @property(nullable, nonatomic,strong) UIImage *backgroundImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIImage *scopeBarBackgroundImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForBarPosition:(UIBarPosition)barPosition barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setSearchFieldBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)searchFieldBackgroundImageForState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setImage:(nullable UIImage *)iconImage forSearchBarIcon:(UISearchBarIcon)icon state:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)imageForSearchBarIcon:(UISearchBarIcon)icon state:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setScopeBarButtonBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)scopeBarButtonBackgroundImageForState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setScopeBarButtonDividerImage:(nullable UIImage *)dividerImage forLeftSegmentState:(UIControlState)leftState rightSegmentState:(UIControlState)rightState __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)scopeBarButtonDividerImageForLeftSegmentState:(UIControlState)leftState rightSegmentState:(UIControlState)rightState __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setScopeBarButtonTitleTextAttributes:(nullable NSDictionary<NSAttributedStringKey,id> *)attributes forState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable NSDictionary<NSAttributedStringKey, id> *)scopeBarButtonTitleTextAttributesForState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) UIOffset searchFieldBackgroundPositionAdjustment __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) UIOffset searchTextPositionAdjustment __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setPositionAdjustment:(UIOffset)adjustment forSearchBarIcon:(UISearchBarIcon)icon __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (UIOffset)positionAdjustmentForSearchBarIcon:(UISearchBarIcon)icon __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); /* @end */ // @protocol UISearchBarDelegate <UIBarPositioningDelegate> /* @optional */ // - (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar; // - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar; // - (BOOL)searchBarShouldEndEditing:(UISearchBar *)searchBar; // - (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar; // - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText; // - (BOOL)searchBar:(UISearchBar *)searchBar shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text __attribute__((availability(ios,introduced=3.0))); // - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar; // - (void)searchBarBookmarkButtonClicked:(UISearchBar *)searchBar __attribute__((availability(tvos,unavailable))); // - (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar __attribute__((availability(tvos,unavailable))); // - (void)searchBarResultsListButtonClicked:(UISearchBar *)searchBar __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); // - (void)searchBar:(UISearchBar *)searchBar selectedScopeButtonIndexDidChange:(NSInteger)selectedScope __attribute__((availability(ios,introduced=3.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UISearchController; #ifndef _REWRITER_typedef_UISearchController #define _REWRITER_typedef_UISearchController typedef struct objc_object UISearchController; typedef struct {} _objc_exc_UISearchController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9_1))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=9_0))) #ifndef _REWRITER_typedef_UISearchContainerViewController #define _REWRITER_typedef_UISearchContainerViewController typedef struct objc_object UISearchContainerViewController; typedef struct {} _objc_exc_UISearchContainerViewController; #endif struct UISearchContainerViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // @property (nonatomic, strong, readonly) UISearchController *searchController; // - (instancetype)initWithSearchController:(UISearchController *)searchController; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSString * UITransitionContextViewControllerKey __attribute__((swift_wrapper(enum))); typedef NSString * UITransitionContextViewKey __attribute__((swift_wrapper(enum))); // @protocol UIViewControllerTransitionCoordinatorContext <NSObject> // @property(nonatomic, readonly, getter=isAnimated) BOOL animated; // @property(nonatomic, readonly) UIModalPresentationStyle presentationStyle; // @property(nonatomic, readonly) BOOL initiallyInteractive; // @property(nonatomic,readonly) BOOL isInterruptible __attribute__((availability(ios,introduced=10.0))); // @property(nonatomic, readonly, getter=isInteractive) BOOL interactive; // @property(nonatomic, readonly, getter=isCancelled) BOOL cancelled; // @property(nonatomic, readonly) NSTimeInterval transitionDuration; // @property(nonatomic, readonly) CGFloat percentComplete; // @property(nonatomic, readonly) CGFloat completionVelocity; // @property(nonatomic, readonly) UIViewAnimationCurve completionCurve; // - (nullable __kindof UIViewController *)viewControllerForKey:(UITransitionContextViewControllerKey)key; // - (nullable __kindof UIView *)viewForKey:(UITransitionContextViewKey)key __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, readonly) UIView *containerView; // @property(nonatomic, readonly) CGAffineTransform targetTransform __attribute__((availability(ios,introduced=8.0))); /* @end */ // @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext> #if 0 - (BOOL)animateAlongsideTransition:(void (^ _Nullable)(id <UIViewControllerTransitionCoordinatorContext>context))animation completion:(void (^ _Nullable)(id <UIViewControllerTransitionCoordinatorContext>context))completion; #endif #if 0 - (BOOL)animateAlongsideTransitionInView:(nullable UIView *)view animation:(void (^ _Nullable)(id <UIViewControllerTransitionCoordinatorContext>context))animation completion:(void (^ _Nullable)(id <UIViewControllerTransitionCoordinatorContext>context))completion; #endif // - (void)notifyWhenInteractionEndsUsingBlock: (void (^)(id <UIViewControllerTransitionCoordinatorContext>context))handler __attribute__((availability(ios,introduced=7.0,deprecated=10.0,replacement="notifyWhenInteractionChangesUsingBlock"))); // - (void)notifyWhenInteractionChangesUsingBlock: (void (^)(id <UIViewControllerTransitionCoordinatorContext>context))handler __attribute__((availability(ios,introduced=10.0))); /* @end */ // @interface UIViewController(UIViewControllerTransitionCoordinator) // @property(nonatomic, readonly, nullable) id <UIViewControllerTransitionCoordinator> transitionCoordinator __attribute__((availability(ios,introduced=7.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPresentationController; #ifndef _REWRITER_typedef_UIPresentationController #define _REWRITER_typedef_UIPresentationController typedef struct objc_object UIPresentationController; typedef struct {} _objc_exc_UIPresentationController; #endif // @protocol UIAdaptivePresentationControllerDelegate <NSObject> /* @optional */ // - (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller; // - (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller traitCollection:(UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=8.3))); // - (nullable UIViewController *)presentationController:(UIPresentationController *)controller viewControllerForAdaptivePresentationStyle:(UIModalPresentationStyle)style; // - (void)presentationController:(UIPresentationController *)presentationController willPresentWithAdaptiveStyle:(UIModalPresentationStyle)style transitionCoordinator:(nullable id <UIViewControllerTransitionCoordinator>)transitionCoordinator __attribute__((availability(ios,introduced=8.3))); // - (BOOL)presentationControllerShouldDismiss:(UIPresentationController *)presentationController __attribute__((availability(ios,introduced=13.0))); // - (void)presentationControllerWillDismiss:(UIPresentationController *)presentationController __attribute__((availability(ios,introduced=13.0))); // - (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController __attribute__((availability(ios,introduced=13.0))); // - (void)presentationControllerDidAttemptToDismiss:(UIPresentationController *)presentationController __attribute__((availability(ios,introduced=13.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UIPresentationController #define _REWRITER_typedef_UIPresentationController typedef struct objc_object UIPresentationController; typedef struct {} _objc_exc_UIPresentationController; #endif struct UIPresentationController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic, strong, readonly) UIViewController *presentingViewController; // @property(nonatomic, strong, readonly) UIViewController *presentedViewController; // @property(nonatomic, readonly) UIModalPresentationStyle presentationStyle; // @property(nullable, nonatomic, readonly, strong) UIView *containerView; // @property(nullable, nonatomic, weak) id <UIAdaptivePresentationControllerDelegate> delegate; // - (instancetype)initWithPresentedViewController:(UIViewController *)presentedViewController presentingViewController:(nullable UIViewController *)presentingViewController __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // @property(nonatomic, readonly) UIModalPresentationStyle adaptivePresentationStyle; // - (UIModalPresentationStyle)adaptivePresentationStyleForTraitCollection:(UITraitCollection *)traitCollection __attribute__((availability(ios,introduced=8.3))); // - (void)containerViewWillLayoutSubviews; // - (void)containerViewDidLayoutSubviews; // @property(nonatomic, readonly, nullable) UIView *presentedView; // @property(nonatomic, readonly) CGRect frameOfPresentedViewInContainerView; // @property(nonatomic, readonly) BOOL shouldPresentInFullscreen; // @property(nonatomic, readonly) BOOL shouldRemovePresentersView; // - (void)presentationTransitionWillBegin; // - (void)presentationTransitionDidEnd:(BOOL)completed; // - (void)dismissalTransitionWillBegin; // - (void)dismissalTransitionDidEnd:(BOOL)completed; // @property(nullable, nonatomic, copy) UITraitCollection *overrideTraitCollection; /* @end */ #pragma clang assume_nonnull end typedef NSInteger UITimingCurveType; enum { UITimingCurveTypeBuiltin, UITimingCurveTypeCubic, UITimingCurveTypeSpring, UITimingCurveTypeComposed, } __attribute__((availability(ios,introduced=10.0))); // @class UICubicTimingParameters; #ifndef _REWRITER_typedef_UICubicTimingParameters #define _REWRITER_typedef_UICubicTimingParameters typedef struct objc_object UICubicTimingParameters; typedef struct {} _objc_exc_UICubicTimingParameters; #endif #ifndef _REWRITER_typedef_UISpringTimingParameters #define _REWRITER_typedef_UISpringTimingParameters typedef struct objc_object UISpringTimingParameters; typedef struct {} _objc_exc_UISpringTimingParameters; #endif #pragma clang assume_nonnull begin // @protocol UITimingCurveProvider <NSCoding, NSCopying> // @property(nonatomic, readonly) UITimingCurveType timingCurveType; // @property(nullable, nonatomic, readonly) UICubicTimingParameters *cubicTimingParameters; // @property(nullable, nonatomic, readonly) UISpringTimingParameters *springTimingParameters; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UICubicTimingParameters #define _REWRITER_typedef_UICubicTimingParameters typedef struct objc_object UICubicTimingParameters; typedef struct {} _objc_exc_UICubicTimingParameters; #endif struct UICubicTimingParameters_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic, readonly) UIViewAnimationCurve animationCurve; // @property(nonatomic, readonly) CGPoint controlPoint1; // @property(nonatomic, readonly) CGPoint controlPoint2; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithAnimationCurve:(UIViewAnimationCurve)curve __attribute__((objc_designated_initializer)); // - (instancetype)initWithControlPoint1:(CGPoint)point1 controlPoint2:(CGPoint)point2 __attribute__((objc_designated_initializer)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UISpringTimingParameters #define _REWRITER_typedef_UISpringTimingParameters typedef struct objc_object UISpringTimingParameters; typedef struct {} _objc_exc_UISpringTimingParameters; #endif struct UISpringTimingParameters_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nonatomic, readonly) CGVector initialVelocity; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithDampingRatio:(CGFloat)ratio initialVelocity:(CGVector)velocity __attribute__((objc_designated_initializer)); // - (instancetype)initWithMass:(CGFloat)mass stiffness:(CGFloat)stiffness damping:(CGFloat)damping initialVelocity:(CGVector)velocity __attribute__((objc_designated_initializer)); // - (instancetype)initWithDampingRatio:(CGFloat)ratio; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) UITransitionContextViewControllerKey const UITransitionContextFromViewControllerKey __attribute__((swift_name("from"))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UITransitionContextViewControllerKey const UITransitionContextToViewControllerKey __attribute__((swift_name("to"))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) UITransitionContextViewKey const UITransitionContextFromViewKey __attribute__((swift_name("from"))) __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) UITransitionContextViewKey const UITransitionContextToViewKey __attribute__((swift_name("to"))) __attribute__((availability(ios,introduced=8.0))); // @protocol UIViewControllerContextTransitioning <NSObject> // @property(nonatomic, readonly) UIView *containerView; // @property(nonatomic, readonly, getter=isAnimated) BOOL animated; // @property(nonatomic, readonly, getter=isInteractive) BOOL interactive; // @property(nonatomic, readonly) BOOL transitionWasCancelled; // @property(nonatomic, readonly) UIModalPresentationStyle presentationStyle; // - (void)updateInteractiveTransition:(CGFloat)percentComplete; // - (void)finishInteractiveTransition; // - (void)cancelInteractiveTransition; // - (void)pauseInteractiveTransition __attribute__((availability(ios,introduced=10.0))); // - (void)completeTransition:(BOOL)didComplete; // - (nullable __kindof UIViewController *)viewControllerForKey:(UITransitionContextViewControllerKey)key; // - (nullable __kindof UIView *)viewForKey:(UITransitionContextViewKey)key __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, readonly) CGAffineTransform targetTransform __attribute__((availability(ios,introduced=8.0))); // - (CGRect)initialFrameForViewController:(UIViewController *)vc; // - (CGRect)finalFrameForViewController:(UIViewController *)vc; /* @end */ // @protocol UIViewControllerAnimatedTransitioning <NSObject> // - (NSTimeInterval)transitionDuration:(nullable id <UIViewControllerContextTransitioning>)transitionContext; // - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionContext; /* @optional */ // - (id <UIViewImplicitlyAnimating>) interruptibleAnimatorForTransition:(id <UIViewControllerContextTransitioning>)transitionContext __attribute__((availability(ios,introduced=10.0))); // - (void)animationEnded:(BOOL) transitionCompleted; /* @end */ // @protocol UIViewControllerInteractiveTransitioning <NSObject> // - (void)startInteractiveTransition:(id <UIViewControllerContextTransitioning>)transitionContext; /* @optional */ // @property(nonatomic, readonly) CGFloat completionSpeed; // @property(nonatomic, readonly) UIViewAnimationCurve completionCurve; // @property (nonatomic, readonly) BOOL wantsInteractiveStart __attribute__((availability(ios,introduced=10.0))); /* @end */ // @class UIPresentationController; #ifndef _REWRITER_typedef_UIPresentationController #define _REWRITER_typedef_UIPresentationController typedef struct objc_object UIPresentationController; typedef struct {} _objc_exc_UIPresentationController; #endif // @protocol UIViewControllerTransitioningDelegate <NSObject> /* @optional */ // - (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source; // - (nullable id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed; // - (nullable id <UIViewControllerInteractiveTransitioning>)interactionControllerForPresentation:(id <UIViewControllerAnimatedTransitioning>)animator; // - (nullable id <UIViewControllerInteractiveTransitioning>)interactionControllerForDismissal:(id <UIViewControllerAnimatedTransitioning>)animator; // - (nullable UIPresentationController *)presentationControllerForPresentedViewController:(UIViewController *)presented presentingViewController:(nullable UIViewController *)presenting sourceViewController:(UIViewController *)source __attribute__((availability(ios,introduced=8.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIPercentDrivenInteractiveTransition #define _REWRITER_typedef_UIPercentDrivenInteractiveTransition typedef struct objc_object UIPercentDrivenInteractiveTransition; typedef struct {} _objc_exc_UIPercentDrivenInteractiveTransition; #endif struct UIPercentDrivenInteractiveTransition_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (readonly) CGFloat duration; // @property (readonly) CGFloat percentComplete; // @property (nonatomic,assign) CGFloat completionSpeed; // @property (nonatomic,assign) UIViewAnimationCurve completionCurve; // @property (nullable, nonatomic, strong)id <UITimingCurveProvider> timingCurve __attribute__((availability(ios,introduced=10.0))); // @property (nonatomic) BOOL wantsInteractiveStart __attribute__((availability(ios,introduced=10.0))); // - (void)pauseInteractiveTransition __attribute__((availability(ios,introduced=10.0))); // - (void)updateInteractiveTransition:(CGFloat)percentComplete; // - (void)cancelInteractiveTransition; // - (void)finishInteractiveTransition; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UISearchController; #ifndef _REWRITER_typedef_UISearchController #define _REWRITER_typedef_UISearchController typedef struct objc_object UISearchController; typedef struct {} _objc_exc_UISearchController; #endif // @protocol UISearchControllerDelegate <NSObject> /* @optional */ // - (void)willPresentSearchController:(UISearchController *)searchController; // - (void)didPresentSearchController:(UISearchController *)searchController; // - (void)willDismissSearchController:(UISearchController *)searchController; // - (void)didDismissSearchController:(UISearchController *)searchController; // - (void)presentSearchController:(UISearchController *)searchController; /* @end */ // @protocol UISearchSuggestion; // @protocol UISearchResultsUpdating <NSObject> /* @required */ // - (void)updateSearchResultsForSearchController:(UISearchController *)searchController; /* @optional */ // - (void)updateSearchResultsForSearchController:(nonnull UISearchController *)searchController selectingSearchSuggestion:(nonnull id<UISearchSuggestion>)searchSuggestion __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) #ifndef _REWRITER_typedef_UISearchController #define _REWRITER_typedef_UISearchController typedef struct objc_object UISearchController; typedef struct {} _objc_exc_UISearchController; #endif struct UISearchController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithSearchResultsController:(nullable UIViewController *)searchResultsController __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nullable, nonatomic, weak) id <UISearchResultsUpdating> searchResultsUpdater; // @property (nonatomic, assign, getter = isActive) BOOL active; // @property (nullable, nonatomic, weak) id <UISearchControllerDelegate> delegate; // @property (nonatomic, assign) BOOL dimsBackgroundDuringPresentation __attribute__((availability(tvos,unavailable))) __attribute__((availability(ios,introduced=8.0,deprecated=12.0,replacement="obscuresBackgroundDuringPresentation"))); // @property (nonatomic, assign) BOOL obscuresBackgroundDuringPresentation __attribute__((availability(ios,introduced=9.1))); // @property (nonatomic, assign) BOOL hidesNavigationBarDuringPresentation; // @property (nullable, nonatomic, strong, readonly) UIViewController *searchResultsController; // @property (nonatomic, strong, readonly) UISearchBar *searchBar; // @property (nonatomic) BOOL automaticallyShowsSearchResultsController __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) BOOL showsSearchResultsController __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic) BOOL automaticallyShowsCancelButton __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic) BOOL automaticallyShowsScopeBar __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, copy, nullable) NSArray<id<UISearchSuggestion>> *searchSuggestions __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nullable, nonatomic, strong) UIScrollView *searchControllerObservedScrollView __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UISearchBar; #ifndef _REWRITER_typedef_UISearchBar #define _REWRITER_typedef_UISearchBar typedef struct objc_object UISearchBar; typedef struct {} _objc_exc_UISearchBar; #endif #ifndef _REWRITER_typedef_UITableView #define _REWRITER_typedef_UITableView typedef struct objc_object UITableView; typedef struct {} _objc_exc_UITableView; #endif #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif // @protocol UITableViewDataSource, UITableViewDelegate, UISearchDisplayDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message="UISearchDisplayController has been replaced with UISearchController"))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISearchDisplayController #define _REWRITER_typedef_UISearchDisplayController typedef struct objc_object UISearchDisplayController; typedef struct {} _objc_exc_UISearchDisplayController; #endif struct UISearchDisplayController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithSearchBar:(UISearchBar *)searchBar contentsController:(UIViewController *)viewController; // @property(nullable,nonatomic,assign) id<UISearchDisplayDelegate> delegate; // @property(nonatomic,getter=isActive) BOOL active; // - (void)setActive:(BOOL)visible animated:(BOOL)animated; // @property(nonatomic,readonly) UISearchBar *searchBar; // @property(nonatomic,readonly) UIViewController *searchContentsController; // @property(nonatomic,readonly) UITableView *searchResultsTableView; // @property(nullable,nonatomic,weak) id<UITableViewDataSource> searchResultsDataSource; // @property(nullable,nonatomic,weak) id<UITableViewDelegate> searchResultsDelegate; // @property(nullable,nonatomic,copy) NSString *searchResultsTitle __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic, assign) BOOL displaysSearchBarInNavigationBar __attribute__((availability(ios,introduced=7.0))); // @property (nullable, nonatomic, readonly) UINavigationItem *navigationItem __attribute__((availability(ios,introduced=7.0))); /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UISearchDisplayDelegate <NSObject> /* @optional */ // - (void) searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void) searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void) searchDisplayControllerWillEndSearch:(UISearchDisplayController *)controller __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void) searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller didLoadSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller willUnloadSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller didShowSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller willHideSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (void)searchDisplayController:(UISearchDisplayController *)controller didHideSearchResultsTableView:(UITableView *)tableView __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(nullable NSString *)searchString __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); // - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchScope:(NSInteger)searchOption __attribute__((availability(ios,introduced=3.0,deprecated=8.0,message=""))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UISearchToken; #ifndef _REWRITER_typedef_UISearchToken #define _REWRITER_typedef_UISearchToken typedef struct objc_object UISearchToken; typedef struct {} _objc_exc_UISearchToken; #endif // @protocol UISearchTextFieldDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISearchTextField #define _REWRITER_typedef_UISearchTextField typedef struct objc_object UISearchTextField; typedef struct {} _objc_exc_UISearchTextField; #endif struct UISearchTextField_IMPL { struct UITextField_IMPL UITextField_IVARS; }; // @property (nonatomic, copy) NSArray<UISearchToken *> *tokens; // - (void)insertToken:(UISearchToken *)token atIndex:(NSInteger)tokenIndex; // - (void)removeTokenAtIndex:(NSInteger)tokenIndex; // - (UITextPosition *)positionOfTokenAtIndex:(NSInteger)tokenIndex; // - (NSArray<UISearchToken *> *)tokensInRange:(UITextRange *)textRange; // @property (readonly, nonatomic) UITextRange *textualRange; // - (void)replaceTextualPortionOfRange:(UITextRange *)textRange withToken:(UISearchToken *)token atIndex:(NSUInteger)tokenIndex; // @property (nonatomic, strong, null_resettable) UIColor *tokenBackgroundColor; // @property (nonatomic) BOOL allowsDeletingTokens; // @property (nonatomic) BOOL allowsCopyingTokens; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISearchToken #define _REWRITER_typedef_UISearchToken typedef struct objc_object UISearchToken; typedef struct {} _objc_exc_UISearchToken; #endif struct UISearchToken_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // + (UISearchToken *)tokenWithIcon:(nullable UIImage *)icon text:(NSString *)text; // @property (strong, nullable, nonatomic) id representedObject; /* @end */ // @protocol UISearchTextFieldDelegate <UITextFieldDelegate> /* @optional */ // - (NSItemProvider *)searchTextField:(UISearchTextField *)searchTextField itemProviderForCopyingToken:(UISearchToken *)token; /* @end */ // @protocol UISearchTextFieldPasteItem <UITextPasteItem> // - (void)setSearchTokenResult:(UISearchToken *)token; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UISegmentedControlStyle; enum { UISegmentedControlStylePlain, UISegmentedControlStyleBordered, UISegmentedControlStyleBar, UISegmentedControlStyleBezeled, } __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="The segmentedControlStyle property no longer has any effect"))) __attribute__((availability(tvos,unavailable))); enum { UISegmentedControlNoSegment = -1 }; typedef NSInteger UISegmentedControlSegment; enum { UISegmentedControlSegmentAny = 0, UISegmentedControlSegmentLeft = 1, UISegmentedControlSegmentCenter = 2, UISegmentedControlSegmentRight = 3, UISegmentedControlSegmentAlone = 4, }; // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UISegmentedControl #define _REWRITER_typedef_UISegmentedControl typedef struct objc_object UISegmentedControl; typedef struct {} _objc_exc_UISegmentedControl; #endif struct UISegmentedControl_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithItems:(nullable NSArray *)items __attribute__((objc_designated_initializer)); // - (instancetype)initWithFrame:(CGRect)frame actions:(NSArray<UIAction *> *)actions __attribute__((availability(ios,introduced=14.0))); // - (void)insertSegmentWithAction:(UIAction *)action atIndex:(NSUInteger)segment animated:(BOOL)animated __attribute__((availability(ios,introduced=14.0))); // - (void)setAction:(UIAction *)action forSegmentAtIndex:(NSUInteger)segment __attribute__((availability(ios,introduced=14.0))); // - (nullable UIAction *)actionForSegmentAtIndex:(NSUInteger)segment __attribute__((availability(ios,introduced=14.0))); // - (NSInteger)segmentIndexForActionIdentifier:(UIActionIdentifier)actionIdentifier __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic) UISegmentedControlStyle segmentedControlStyle __attribute__((availability(ios,introduced=2.0,deprecated=7.0,message="The segmentedControlStyle property no longer has any effect"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isMomentary) BOOL momentary; // @property(nonatomic,readonly) NSUInteger numberOfSegments; // @property(nonatomic) BOOL apportionsSegmentWidthsByContent __attribute__((availability(ios,introduced=5.0))); // - (void)insertSegmentWithTitle:(nullable NSString *)title atIndex:(NSUInteger)segment animated:(BOOL)animated; // - (void)insertSegmentWithImage:(nullable UIImage *)image atIndex:(NSUInteger)segment animated:(BOOL)animated; // - (void)removeSegmentAtIndex:(NSUInteger)segment animated:(BOOL)animated; // - (void)removeAllSegments; // - (void)setTitle:(nullable NSString *)title forSegmentAtIndex:(NSUInteger)segment; // - (nullable NSString *)titleForSegmentAtIndex:(NSUInteger)segment; // - (void)setImage:(nullable UIImage *)image forSegmentAtIndex:(NSUInteger)segment; // - (nullable UIImage *)imageForSegmentAtIndex:(NSUInteger)segment; // - (void)setWidth:(CGFloat)width forSegmentAtIndex:(NSUInteger)segment; // - (CGFloat)widthForSegmentAtIndex:(NSUInteger)segment; // - (void)setContentOffset:(CGSize)offset forSegmentAtIndex:(NSUInteger)segment; // - (CGSize)contentOffsetForSegmentAtIndex:(NSUInteger)segment; // - (void)setEnabled:(BOOL)enabled forSegmentAtIndex:(NSUInteger)segment; // - (BOOL)isEnabledForSegmentAtIndex:(NSUInteger)segment; // @property(nonatomic) NSInteger selectedSegmentIndex; // @property(nullable, nonatomic, strong) UIColor *selectedSegmentTintColor __attribute__((availability(ios,introduced=13.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setDividerImage:(nullable UIImage *)dividerImage forLeftSegmentState:(UIControlState)leftState rightSegmentState:(UIControlState)rightState barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)dividerImageForLeftSegmentState:(UIControlState)leftState rightSegmentState:(UIControlState)rightState barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setTitleTextAttributes:(nullable NSDictionary<NSAttributedStringKey,id> *)attributes forState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable NSDictionary<NSAttributedStringKey,id> *)titleTextAttributesForState:(UIControlState)state __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setContentPositionAdjustment:(UIOffset)adjustment forSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (UIOffset)contentPositionAdjustmentForSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); /* @end */ // @interface UISegmentedControl (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImageView; #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISlider #define _REWRITER_typedef_UISlider typedef struct objc_object UISlider; typedef struct {} _objc_exc_UISlider; #endif struct UISlider_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property(nonatomic) float value; // @property(nonatomic) float minimumValue; // @property(nonatomic) float maximumValue; // @property(nullable, nonatomic,strong) UIImage *minimumValueImage; // @property(nullable, nonatomic,strong) UIImage *maximumValueImage; // @property(nonatomic,getter=isContinuous) BOOL continuous; // @property(nullable, nonatomic,strong) UIColor *minimumTrackTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIColor *maximumTrackTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic,strong) UIColor *thumbTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setValue:(float)value animated:(BOOL)animated; // - (void)setThumbImage:(nullable UIImage *)image forState:(UIControlState)state; // - (void)setMinimumTrackImage:(nullable UIImage *)image forState:(UIControlState)state; // - (void)setMaximumTrackImage:(nullable UIImage *)image forState:(UIControlState)state; // - (nullable UIImage *)thumbImageForState:(UIControlState)state; // - (nullable UIImage *)minimumTrackImageForState:(UIControlState)state; // - (nullable UIImage *)maximumTrackImageForState:(UIControlState)state; // @property(nullable,nonatomic,readonly) UIImage *currentThumbImage; // @property(nullable,nonatomic,readonly) UIImage *currentMinimumTrackImage; // @property(nullable,nonatomic,readonly) UIImage *currentMaximumTrackImage; // - (CGRect)minimumValueImageRectForBounds:(CGRect)bounds; // - (CGRect)maximumValueImageRectForBounds:(CGRect)bounds; // - (CGRect)trackRectForBounds:(CGRect)bounds; // - (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UISplitViewControllerDelegate; typedef NSInteger UISplitViewControllerDisplayMode; enum { UISplitViewControllerDisplayModeAutomatic, UISplitViewControllerDisplayModeSecondaryOnly, UISplitViewControllerDisplayModeOneBesideSecondary, UISplitViewControllerDisplayModeOneOverSecondary, UISplitViewControllerDisplayModeTwoBesideSecondary __attribute__((availability(ios,introduced=14_0))), UISplitViewControllerDisplayModeTwoOverSecondary __attribute__((availability(ios,introduced=14_0))), UISplitViewControllerDisplayModeTwoDisplaceSecondary __attribute__((availability(ios,introduced=14_0))), UISplitViewControllerDisplayModePrimaryHidden __attribute__((availability(ios,introduced=8.0,deprecated=14.0,replacement="UISplitViewControllerDisplayModeSecondaryOnly"))) = UISplitViewControllerDisplayModeSecondaryOnly, UISplitViewControllerDisplayModeAllVisible __attribute__((availability(ios,introduced=8.0,deprecated=14.0,replacement="UISplitViewControllerDisplayModeOneBesideSecondary"))) = UISplitViewControllerDisplayModeOneBesideSecondary, UISplitViewControllerDisplayModePrimaryOverlay __attribute__((availability(ios,introduced=8.0,deprecated=14.0,replacement="UISplitViewControllerDisplayModeOneOverSecondary"))) = UISplitViewControllerDisplayModeOneOverSecondary, } __attribute__((availability(ios,introduced=8.0))); typedef NSInteger UISplitViewControllerPrimaryEdge; enum { UISplitViewControllerPrimaryEdgeLeading, UISplitViewControllerPrimaryEdgeTrailing, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); typedef NSInteger UISplitViewControllerBackgroundStyle; enum { UISplitViewControllerBackgroundStyleNone, UISplitViewControllerBackgroundStyleSidebar, } __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UISplitViewControllerStyle; enum { UISplitViewControllerStyleUnspecified, UISplitViewControllerStyleDoubleColumn, UISplitViewControllerStyleTripleColumn, } __attribute__((availability(ios,introduced=14.0))); typedef NSInteger UISplitViewControllerColumn; enum { UISplitViewControllerColumnPrimary, UISplitViewControllerColumnSupplementary, UISplitViewControllerColumnSecondary, UISplitViewControllerColumnCompact, } __attribute__((availability(ios,introduced=14.0))); typedef NSInteger UISplitViewControllerSplitBehavior; enum { UISplitViewControllerSplitBehaviorAutomatic, UISplitViewControllerSplitBehaviorTile, UISplitViewControllerSplitBehaviorOverlay, UISplitViewControllerSplitBehaviorDisplace, } __attribute__((availability(ios,introduced=14.0))); extern "C" __attribute__((visibility ("default"))) CGFloat const UISplitViewControllerAutomaticDimension __attribute__((availability(ios,introduced=8.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UISplitViewController #define _REWRITER_typedef_UISplitViewController typedef struct objc_object UISplitViewController; typedef struct {} _objc_exc_UISplitViewController; #endif struct UISplitViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (instancetype)initWithStyle:(UISplitViewControllerStyle)style __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, readonly) UISplitViewControllerStyle style __attribute__((availability(ios,introduced=14.0))); // @property (nullable, nonatomic, weak) id <UISplitViewControllerDelegate> delegate; // @property(nonatomic) BOOL showsSecondaryOnlyButton __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic) UISplitViewControllerSplitBehavior preferredSplitBehavior __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, readonly) UISplitViewControllerSplitBehavior splitBehavior __attribute__((availability(ios,introduced=14.0))); // - (void)setViewController:(nullable UIViewController *)vc forColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // - (nullable __kindof UIViewController *)viewControllerForColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // - (void)hideColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // - (void)showColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // @property (nonatomic, copy) NSArray<__kindof UIViewController *> *viewControllers; // @property (nonatomic) BOOL presentsWithGesture __attribute__((availability(ios,introduced=5.1))); // @property(nonatomic, readonly, getter=isCollapsed) BOOL collapsed __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) UISplitViewControllerDisplayMode preferredDisplayMode __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly) UISplitViewControllerDisplayMode displayMode __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic, readonly) UIBarButtonItem *displayModeButtonItem __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, assign) CGFloat preferredPrimaryColumnWidthFraction __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, assign) CGFloat preferredPrimaryColumnWidth __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, assign) CGFloat minimumPrimaryColumnWidth __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, assign) CGFloat maximumPrimaryColumnWidth __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic,readonly) CGFloat primaryColumnWidth __attribute__((availability(ios,introduced=8.0))); // @property(nonatomic, assign) CGFloat preferredSupplementaryColumnWidthFraction __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, assign) CGFloat preferredSupplementaryColumnWidth __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, assign) CGFloat minimumSupplementaryColumnWidth __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, assign) CGFloat maximumSupplementaryColumnWidth __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic, readonly) CGFloat supplementaryColumnWidth __attribute__((availability(ios,introduced=14.0))); // @property(nonatomic) UISplitViewControllerPrimaryEdge primaryEdge __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (void)showViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // - (void)showDetailViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // @property (nonatomic) UISplitViewControllerBackgroundStyle primaryBackgroundStyle __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))); /* @end */ // @protocol UISplitViewControllerDelegate /* @optional */ // - (void)splitViewController:(UISplitViewController *)svc willChangeToDisplayMode:(UISplitViewControllerDisplayMode)displayMode __attribute__((availability(ios,introduced=8.0))); // - (UISplitViewControllerDisplayMode)targetDisplayModeForActionInSplitViewController:(UISplitViewController *)svc __attribute__((availability(ios,introduced=8.0))); // - (BOOL)splitViewController:(UISplitViewController *)splitViewController showViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // - (BOOL)splitViewController:(UISplitViewController *)splitViewController showDetailViewController:(UIViewController *)vc sender:(nullable id)sender __attribute__((availability(ios,introduced=8.0))); // - (nullable UIViewController *)primaryViewControllerForCollapsingSplitViewController:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=8.0))); // - (nullable UIViewController *)primaryViewControllerForExpandingSplitViewController:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=8.0))); // - (BOOL)splitViewController:(UISplitViewController *)splitViewController collapseSecondaryViewController:(UIViewController *)secondaryViewController ontoPrimaryViewController:(UIViewController *)primaryViewController __attribute__((availability(ios,introduced=8.0))); // - (nullable UIViewController *)splitViewController:(UISplitViewController *)splitViewController separateSecondaryViewControllerFromPrimaryViewController:(UIViewController *)primaryViewController __attribute__((availability(ios,introduced=8.0))); // - (UIInterfaceOrientationMask)splitViewControllerSupportedInterfaceOrientations:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientation)splitViewControllerPreferredInterfaceOrientationForPresentation:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (void)splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController:(UIPopoverController *)pc __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use splitViewController:willChangeToDisplayMode: and displayModeButtonItem instead"))) __attribute__((availability(tvos,unavailable))); // - (void)splitViewController:(UISplitViewController *)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem __attribute__((availability(ios,introduced=2.0,deprecated=8.0,message="Use splitViewController:willChangeToDisplayMode: and displayModeButtonItem instead"))) __attribute__((availability(tvos,unavailable))); // - (void)splitViewController:(UISplitViewController *)svc popoverController:(UIPopoverController *)pc willPresentViewController:(UIViewController *)aViewController __attribute__((availability(ios,introduced=2.0,deprecated=8.0,replacement="splitViewController:willChangeToDisplayMode:"))) __attribute__((availability(tvos,unavailable))); // - (BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="preferredDisplayMode"))) __attribute__((availability(tvos,unavailable))); // - (UISplitViewControllerColumn)splitViewController:(UISplitViewController *)svc topColumnForCollapsingToProposedTopColumn:(UISplitViewControllerColumn)proposedTopColumn __attribute__((availability(ios,introduced=14.0))); // - (UISplitViewControllerDisplayMode)splitViewController:(UISplitViewController *)svc displayModeForExpandingToProposedDisplayMode:(UISplitViewControllerDisplayMode)proposedDisplayMode __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewControllerDidCollapse:(UISplitViewController *)svc __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewControllerDidExpand:(UISplitViewController *)svc __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewController:(UISplitViewController *)svc willShowColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewController:(UISplitViewController *)svc willHideColumn:(UISplitViewControllerColumn)column __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewControllerInteractivePresentationGestureWillBegin:(UISplitViewController *)svc __attribute__((availability(ios,introduced=14.0))); // - (void)splitViewControllerInteractivePresentationGestureDidEnd:(UISplitViewController *)svc __attribute__((availability(ios,introduced=14.0))); /* @end */ // @interface UIViewController (UISplitViewController) // @property (nullable, nonatomic, readonly, strong) UISplitViewController *splitViewController; // - (void)collapseSecondaryViewController:(UIViewController *)secondaryViewController forSplitViewController:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=8.0))); // - (nullable UIViewController *)separateSecondaryViewControllerForSplitViewController:(UISplitViewController *)splitViewController __attribute__((availability(ios,introduced=8.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIButton; #ifndef _REWRITER_typedef_UIButton #define _REWRITER_typedef_UIButton typedef struct objc_object UIButton; typedef struct {} _objc_exc_UIButton; #endif #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIStepper #define _REWRITER_typedef_UIStepper typedef struct objc_object UIStepper; typedef struct {} _objc_exc_UIStepper; #endif struct UIStepper_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property(nonatomic,getter=isContinuous) BOOL continuous; // @property(nonatomic) BOOL autorepeat; // @property(nonatomic) BOOL wraps; // @property(nonatomic) double value; // @property(nonatomic) double minimumValue; // @property(nonatomic) double maximumValue; // @property(nonatomic) double stepValue; // - (void)setBackgroundImage:(nullable UIImage*)image forState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage*)backgroundImageForState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setDividerImage:(nullable UIImage*)image forLeftSegmentState:(UIControlState)leftState rightSegmentState:(UIControlState)rightState __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage*)dividerImageForLeftSegmentState:(UIControlState)state rightSegmentState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setIncrementImage:(nullable UIImage *)image forState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)incrementImageForState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setDecrementImage:(nullable UIImage *)image forState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)decrementImageForState:(UIControlState)state __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); /* @end */ #pragma clang assume_nonnull end // @class UIViewController; #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif #pragma clang assume_nonnull begin typedef __kindof UIViewController *_Nullable (*UIStoryboardViewControllerCreator)(NSCoder *coder); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) #ifndef _REWRITER_typedef_UIStoryboard #define _REWRITER_typedef_UIStoryboard typedef struct objc_object UIStoryboard; typedef struct {} _objc_exc_UIStoryboard; #endif struct UIStoryboard_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIStoryboard *)storyboardWithName:(NSString *)name bundle:(nullable NSBundle *)storyboardBundleOrNil; // - (nullable __kindof UIViewController *)instantiateInitialViewController; // - (nullable __kindof UIViewController *)instantiateInitialViewControllerWithCreator:(nullable __attribute__((noescape)) UIStoryboardViewControllerCreator)block __attribute__((availability(ios,introduced=13.0))); // - (__kindof UIViewController *)instantiateViewControllerWithIdentifier:(NSString *)identifier; // - (__kindof UIViewController *)instantiateViewControllerWithIdentifier:(NSString *)identifier creator:(nullable __attribute__((noescape)) UIStoryboardViewControllerCreator)block __attribute__((availability(ios,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIViewController; #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0))) #ifndef _REWRITER_typedef_UIStoryboardSegue #define _REWRITER_typedef_UIStoryboardSegue typedef struct objc_object UIStoryboardSegue; typedef struct {} _objc_exc_UIStoryboardSegue; #endif struct UIStoryboardSegue_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)segueWithIdentifier:(nullable NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination performHandler:(void (^)(void))performHandler __attribute__((availability(ios,introduced=6.0))); // - (instancetype)initWithIdentifier:(nullable NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // @property (nullable, nonatomic, copy, readonly) NSString *identifier; // @property (nonatomic, readonly) __kindof UIViewController *sourceViewController; // @property (nonatomic, readonly) __kindof UIViewController *destinationViewController; // - (void)perform; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIStoryboardUnwindSegueSource #define _REWRITER_typedef_UIStoryboardUnwindSegueSource typedef struct objc_object UIStoryboardUnwindSegueSource; typedef struct {} _objc_exc_UIStoryboardUnwindSegueSource; #endif struct UIStoryboardUnwindSegueSource_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // @property (readonly) UIViewController *sourceViewController; // @property (readonly) SEL unwindAction; // @property (readonly, nullable) id sender; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPopoverController; #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=5.0,deprecated=9.0,message="Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"))) #ifndef _REWRITER_typedef_UIStoryboardPopoverSegue #define _REWRITER_typedef_UIStoryboardPopoverSegue typedef struct objc_object UIStoryboardPopoverSegue; typedef struct {} _objc_exc_UIStoryboardPopoverSegue; #endif struct UIStoryboardPopoverSegue_IMPL { struct UIStoryboardSegue_IMPL UIStoryboardSegue_IVARS; }; // @property (nonatomic, strong, readonly) UIPopoverController *popoverController; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UISwitchStyle; enum { UISwitchStyleAutomatic = 0, UISwitchStyleCheckbox, UISwitchStyleSliding } __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UISwitch #define _REWRITER_typedef_UISwitch typedef struct objc_object UISwitch; typedef struct {} _objc_exc_UISwitch; #endif struct UISwitch_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property(nullable, nonatomic, strong) UIColor *onTintColor __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIColor *thumbTintColor __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIImage *onImage __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIImage *offImage __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, copy) NSString *title __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly) UISwitchStyle style __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) UISwitchStyle preferredStyle __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isOn) BOOL on; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (void)setOn:(BOOL)on animated:(BOOL)animated; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UITabBarItemPositioning; enum { UITabBarItemPositioningAutomatic, UITabBarItemPositioningFill, UITabBarItemPositioningCentered, } __attribute__((availability(ios,introduced=7.0))); // @class UITabBarItem; #ifndef _REWRITER_typedef_UITabBarItem #define _REWRITER_typedef_UITabBarItem typedef struct objc_object UITabBarItem; typedef struct {} _objc_exc_UITabBarItem; #endif // @class UIImageView; #ifndef _REWRITER_typedef_UIImageView #define _REWRITER_typedef_UIImageView typedef struct objc_object UIImageView; typedef struct {} _objc_exc_UIImageView; #endif // @class UITabBarAppearance; #ifndef _REWRITER_typedef_UITabBarAppearance #define _REWRITER_typedef_UITabBarAppearance typedef struct objc_object UITabBarAppearance; typedef struct {} _objc_exc_UITabBarAppearance; #endif // @protocol UITabBarDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITabBar #define _REWRITER_typedef_UITabBar typedef struct objc_object UITabBar; typedef struct {} _objc_exc_UITabBar; #endif struct UITabBar_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nullable, nonatomic, weak) id<UITabBarDelegate> delegate; // @property(nullable, nonatomic, copy) NSArray<UITabBarItem *> *items; // @property(nullable, nonatomic, weak) UITabBarItem *selectedItem; // - (void)setItems:(nullable NSArray<UITabBarItem *> *)items animated:(BOOL)animated; // - (void)beginCustomizingItems:(NSArray<UITabBarItem *> *)items __attribute__((availability(tvos,unavailable))); // - (BOOL)endCustomizingAnimated:(BOOL)animated __attribute__((availability(tvos,unavailable))); // @property(nonatomic, readonly, getter=isCustomizing) BOOL customizing __attribute__((availability(tvos,unavailable))); // @property(null_resettable, nonatomic, strong) UIColor *tintColor __attribute__((availability(ios,introduced=5.0))); // @property(nullable, nonatomic, strong) UIColor *barTintColor __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, readwrite, copy, nullable) UIColor *unselectedItemTintColor __attribute__((availability(ios,introduced=10.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIColor *selectedImageTintColor __attribute__((availability(ios,introduced=5.0,deprecated=8.0,replacement="tintColor"))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic, strong) UIImage *backgroundImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIImage *selectionIndicatorImage __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nullable, nonatomic, strong) UIImage *shadowImage __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) UITabBarItemPositioning itemPositioning __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) CGFloat itemWidth __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) CGFloat itemSpacing __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // @property(nonatomic) UIBarStyle barStyle __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isTranslucent) BOOL translucent __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readwrite, copy) UITabBarAppearance *standardAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); // @property(nonatomic, readonly, strong) UIView *leadingAccessoryView __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); // @property(nonatomic, readonly, strong) UIView *trailingAccessoryView __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ // @protocol UITabBarDelegate<NSObject> /* @optional */ // - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item; // - (void)tabBar:(UITabBar *)tabBar willBeginCustomizingItems:(NSArray<UITabBarItem *> *)items __attribute__((availability(tvos,unavailable))); // - (void)tabBar:(UITabBar *)tabBar didBeginCustomizingItems:(NSArray<UITabBarItem *> *)items __attribute__((availability(tvos,unavailable))); // - (void)tabBar:(UITabBar *)tabBar willEndCustomizingItems:(NSArray<UITabBarItem *> *)items changed:(BOOL)changed __attribute__((availability(tvos,unavailable))); // - (void)tabBar:(UITabBar *)tabBar didEndCustomizingItems:(NSArray<UITabBarItem *> *)items changed:(BOOL)changed __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UITabBar (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UINavigationController #define _REWRITER_typedef_UINavigationController typedef struct objc_object UINavigationController; typedef struct {} _objc_exc_UINavigationController; #endif #ifndef _REWRITER_typedef_UITabBarItem #define _REWRITER_typedef_UITabBarItem typedef struct objc_object UITabBarItem; typedef struct {} _objc_exc_UITabBarItem; #endif // @protocol UITabBarControllerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITabBarController #define _REWRITER_typedef_UITabBarController typedef struct objc_object UITabBarController; typedef struct {} _objc_exc_UITabBarController; #endif struct UITabBarController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // @property(nullable, nonatomic,copy) NSArray<__kindof UIViewController *> *viewControllers; // - (void)setViewControllers:(NSArray<__kindof UIViewController *> * _Nullable)viewControllers animated:(BOOL)animated; // @property(nullable, nonatomic, assign) __kindof UIViewController *selectedViewController; // @property(nonatomic) NSUInteger selectedIndex; // @property(nonatomic, readonly) UINavigationController *moreNavigationController __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic, copy) NSArray<__kindof UIViewController *> *customizableViewControllers __attribute__((availability(tvos,unavailable))); // @property(nonatomic,readonly) UITabBar *tabBar __attribute__((availability(ios,introduced=3.0))); // @property(nullable, nonatomic,weak) id<UITabBarControllerDelegate> delegate; /* @end */ // @protocol UITabBarControllerDelegate <NSObject> /* @optional */ // - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController __attribute__((availability(ios,introduced=3.0))); // - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController; // - (void)tabBarController:(UITabBarController *)tabBarController willBeginCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // - (void)tabBarController:(UITabBarController *)tabBarController willEndCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers changed:(BOOL)changed __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // - (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers changed:(BOOL)changed __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientationMask)tabBarControllerSupportedInterfaceOrientations:(UITabBarController *)tabBarController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); // - (UIInterfaceOrientation)tabBarControllerPreferredInterfaceOrientationForPresentation:(UITabBarController *)tabBarController __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); #if 0 - (nullable id <UIViewControllerInteractiveTransitioning>)tabBarController:(UITabBarController *)tabBarController interactionControllerForAnimationController: (id <UIViewControllerAnimatedTransitioning>)animationController __attribute__((availability(ios,introduced=7.0))); #endif #if 0 - (nullable id <UIViewControllerAnimatedTransitioning>)tabBarController:(UITabBarController *)tabBarController animationControllerForTransitionFromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC __attribute__((availability(ios,introduced=7.0))); #endif /* @end */ // @interface UIViewController (UITabBarControllerItem) // @property(null_resettable, nonatomic, strong) UITabBarItem *tabBarItem; // @property(nullable, nonatomic, readonly, strong) UITabBarController *tabBarController; // @property(nullable, nonatomic, strong) UIScrollView *tabBarObservedScrollView __attribute__((availability(tvos,introduced=13.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UITabBarSystemItem; enum { UITabBarSystemItemMore, UITabBarSystemItemFavorites, UITabBarSystemItemFeatured, UITabBarSystemItemTopRated, UITabBarSystemItemRecents, UITabBarSystemItemContacts, UITabBarSystemItemHistory, UITabBarSystemItemBookmarks, UITabBarSystemItemSearch, UITabBarSystemItemDownloads, UITabBarSystemItemMostRecent, UITabBarSystemItemMostViewed, }; // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UITabBarAppearance #define _REWRITER_typedef_UITabBarAppearance typedef struct objc_object UITabBarAppearance; typedef struct {} _objc_exc_UITabBarAppearance; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITabBarItem #define _REWRITER_typedef_UITabBarItem typedef struct objc_object UITabBarItem; typedef struct {} _objc_exc_UITabBarItem; #endif struct UITabBarItem_IMPL { struct UIBarItem_IMPL UIBarItem_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithTitle:(nullable NSString *)title image:(nullable UIImage *)image tag:(NSInteger)tag; // - (instancetype)initWithTitle:(nullable NSString *)title image:(nullable UIImage *)image selectedImage:(nullable UIImage *)selectedImage __attribute__((availability(ios,introduced=7.0))); // - (instancetype)initWithTabBarSystemItem:(UITabBarSystemItem)systemItem tag:(NSInteger)tag; // @property(nullable, nonatomic,strong) UIImage *selectedImage __attribute__((availability(ios,introduced=7.0))); // @property(nullable, nonatomic, copy) NSString *badgeValue; // - (void)setFinishedSelectedImage:(nullable UIImage *)selectedImage withFinishedUnselectedImage:(nullable UIImage *)unselectedImage __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message="Use initWithTitle:image:selectedImage: or the image and selectedImage properties along with UIImageRenderingModeAlwaysOriginal"))) __attribute__((availability(tvos,unavailable))); // - (nullable UIImage *)finishedSelectedImage __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); // - (nullable UIImage *)finishedUnselectedImage __attribute__((availability(ios,introduced=5.0,deprecated=7.0,message=""))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readwrite, assign) UIOffset titlePositionAdjustment __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, readwrite, copy, nullable) UIColor *badgeColor __attribute__((availability(ios,introduced=10.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBadgeTextAttributes:(nullable NSDictionary<NSAttributedStringKey,id> *)textAttributes forState:(UIControlState)state __attribute__((availability(ios,introduced=10.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable NSDictionary<NSAttributedStringKey,id> *)badgeTextAttributesForState:(UIControlState)state __attribute__((availability(ios,introduced=10.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, readwrite, copy, nullable) UITabBarAppearance *standardAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))); /* @end */ // @interface UITabBarItem (SpringLoading) <UISpringLoadedInteractionSupporting> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIViewConfigurationState; #ifndef _REWRITER_typedef_UIViewConfigurationState #define _REWRITER_typedef_UIViewConfigurationState typedef struct objc_object UIViewConfigurationState; typedef struct {} _objc_exc_UIViewConfigurationState; #endif // @class UIBackgroundConfiguration; #ifndef _REWRITER_typedef_UIBackgroundConfiguration #define _REWRITER_typedef_UIBackgroundConfiguration typedef struct objc_object UIBackgroundConfiguration; typedef struct {} _objc_exc_UIBackgroundConfiguration; #endif // @protocol UIContentConfiguration; // @class UIListContentConfiguration; #ifndef _REWRITER_typedef_UIListContentConfiguration #define _REWRITER_typedef_UIListContentConfiguration typedef struct objc_object UIListContentConfiguration; typedef struct {} _objc_exc_UIListContentConfiguration; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=6.0))) #ifndef _REWRITER_typedef_UITableViewHeaderFooterView #define _REWRITER_typedef_UITableViewHeaderFooterView typedef struct objc_object UITableViewHeaderFooterView; typedef struct {} _objc_exc_UITableViewHeaderFooterView; #endif struct UITableViewHeaderFooterView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithReuseIdentifier:(nullable NSString *)reuseIdentifier __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) UIViewConfigurationState *configurationState __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)setNeedsUpdateConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (void)updateConfigurationUsingState:(UIViewConfigurationState *)state __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // - (UIListContentConfiguration *)defaultContentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, copy, nullable) id<UIContentConfiguration> contentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesContentConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, readonly, strong) UIView *contentView; // @property (nonatomic, readonly, strong, nullable) UILabel *textLabel __attribute__((availability(ios,introduced=6.0,deprecated=100000,message="Use UIListContentConfiguration instead, this property will be deprecated in a future release."))); // @property (nonatomic, readonly, strong, nullable) UILabel *detailTextLabel __attribute__((availability(ios,introduced=6.0,deprecated=100000,message="Use UIListContentConfiguration instead, this property will be deprecated in a future release."))); // @property (nonatomic, copy, nullable) UIBackgroundConfiguration *backgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic) BOOL automaticallyUpdatesBackgroundConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,introduced=14.0))) __attribute__((availability(watchos,introduced=7.0))); // @property (nonatomic, strong, nullable) UIView *backgroundView; // @property (nonatomic, readonly, copy, nullable) NSString *reuseIdentifier; // - (void)prepareForReuse __attribute__((objc_requires_super)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITableViewController #define _REWRITER_typedef_UITableViewController typedef struct objc_object UITableViewController; typedef struct {} _objc_exc_UITableViewController; #endif struct UITableViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initWithStyle:(UITableViewStyle)style __attribute__((objc_designated_initializer)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nonatomic, strong, null_resettable) UITableView *tableView; // @property (nonatomic) BOOL clearsSelectionOnViewWillAppear __attribute__((availability(ios,introduced=3.2))); // @property (nonatomic, strong, nullable) UIRefreshControl *refreshControl __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.2))) #ifndef _REWRITER_typedef_UITextChecker #define _REWRITER_typedef_UITextChecker typedef struct objc_object UITextChecker; typedef struct {} _objc_exc_UITextChecker; #endif struct UITextChecker_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (NSRange)rangeOfMisspelledWordInString:(NSString *)stringToCheck range:(NSRange)range startingAt:(NSInteger)startingOffset wrap:(BOOL)wrapFlag language:(NSString *)language; // - (nullable NSArray<NSString *> *)guessesForWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language; // - (nullable NSArray<NSString *> *)completionsForPartialWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language; // - (void)ignoreWord:(NSString *)wordToIgnore; // @property(nonatomic, strong, nullable) NSArray<NSString *> *ignoredWords; // + (void)learnWord:(NSString *)word; // + (BOOL)hasLearnedWord:(NSString *)word; // + (void)unlearnWord:(NSString *)word; @property(class, nonatomic, readonly) NSArray<NSString *> *availableLanguages; /* @end */ #pragma clang assume_nonnull end typedef NSInteger UITextItemInteraction; enum { UITextItemInteractionInvokeDefaultAction, UITextItemInteractionPresentActions, UITextItemInteractionPreview, } __attribute__((availability(ios,introduced=10.0))); #pragma clang assume_nonnull begin // @class UIFont; #ifndef _REWRITER_typedef_UIFont #define _REWRITER_typedef_UIFont typedef struct objc_object UIFont; typedef struct {} _objc_exc_UIFont; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UITextView #define _REWRITER_typedef_UITextView typedef struct objc_object UITextView; typedef struct {} _objc_exc_UITextView; #endif #ifndef _REWRITER_typedef_NSTextContainer #define _REWRITER_typedef_NSTextContainer typedef struct objc_object NSTextContainer; typedef struct {} _objc_exc_NSTextContainer; #endif #ifndef _REWRITER_typedef_NSLayoutManager #define _REWRITER_typedef_NSLayoutManager typedef struct objc_object NSLayoutManager; typedef struct {} _objc_exc_NSLayoutManager; #endif #ifndef _REWRITER_typedef_NSTextStorage #define _REWRITER_typedef_NSTextStorage typedef struct objc_object NSTextStorage; typedef struct {} _objc_exc_NSTextStorage; #endif #ifndef _REWRITER_typedef_NSTextAttachment #define _REWRITER_typedef_NSTextAttachment typedef struct objc_object NSTextAttachment; typedef struct {} _objc_exc_NSTextAttachment; #endif // @protocol UITextViewDelegate <NSObject, UIScrollViewDelegate> /* @optional */ // - (BOOL)textViewShouldBeginEditing:(UITextView *)textView; // - (BOOL)textViewShouldEndEditing:(UITextView *)textView; // - (void)textViewDidBeginEditing:(UITextView *)textView; // - (void)textViewDidEndEditing:(UITextView *)textView; // - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text; // - (void)textViewDidChange:(UITextView *)textView; // - (void)textViewDidChangeSelection:(UITextView *)textView; // - (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction __attribute__((availability(ios,introduced=10.0))); // - (BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction __attribute__((availability(ios,introduced=10.0))); // - (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange __attribute__((availability(ios,introduced=7.0,deprecated=10.0,replacement="textView:shouldInteractWithURL:inRange:interaction:"))); // - (BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange __attribute__((availability(ios,introduced=7.0,deprecated=10.0,replacement="textView:shouldInteractWithTextAttachment:inRange:interaction:"))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UITextView #define _REWRITER_typedef_UITextView typedef struct objc_object UITextView; typedef struct {} _objc_exc_UITextView; #endif struct UITextView_IMPL { struct UIScrollView_IMPL UIScrollView_IVARS; }; // @property(nullable,nonatomic,weak) id<UITextViewDelegate> delegate; // @property(null_resettable,nonatomic,copy) NSString *text; // @property(nullable,nonatomic,strong) UIFont *font; // @property(nullable,nonatomic,strong) UIColor *textColor; // @property(nonatomic) NSTextAlignment textAlignment; // @property(nonatomic) NSRange selectedRange; // @property(nonatomic,getter=isEditable) BOOL editable __attribute__((availability(tvos,unavailable))); // @property(nonatomic,getter=isSelectable) BOOL selectable __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic) UIDataDetectorTypes dataDetectorTypes __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); // @property(nonatomic) BOOL allowsEditingTextAttributes __attribute__((availability(ios,introduced=6.0))); // @property(null_resettable,copy) NSAttributedString *attributedText __attribute__((availability(ios,introduced=6.0))); // @property(nonatomic,copy) NSDictionary<NSAttributedStringKey, id> *typingAttributes __attribute__((availability(ios,introduced=6.0))); // - (void)scrollRangeToVisible:(NSRange)range; // @property (nullable, readwrite, strong) UIView *inputView; // @property (nullable, readwrite, strong) UIView *inputAccessoryView; // @property(nonatomic) BOOL clearsOnInsertion __attribute__((availability(ios,introduced=6.0))); // - (instancetype)initWithFrame:(CGRect)frame textContainer:(nullable NSTextContainer *)textContainer __attribute__((availability(ios,introduced=7.0))) __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property(nonatomic,readonly) NSTextContainer *textContainer __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, assign) UIEdgeInsets textContainerInset __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic,readonly) NSLayoutManager *layoutManager __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic,readonly,strong) NSTextStorage *textStorage __attribute__((availability(ios,introduced=7.0))); // @property(null_resettable, nonatomic, copy) NSDictionary<NSAttributedStringKey,id> *linkTextAttributes __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) BOOL usesStandardTextScaling __attribute__((availability(ios,introduced=13.0))); /* @end */ // @interface UITextView () <UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting> /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextViewTextDidBeginEditingNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextViewTextDidChangeNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UITextViewTextDidEndEditingNotification; #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIBarButtonItem; #ifndef _REWRITER_typedef_UIBarButtonItem #define _REWRITER_typedef_UIBarButtonItem typedef struct objc_object UIBarButtonItem; typedef struct {} _objc_exc_UIBarButtonItem; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIToolbarAppearance #define _REWRITER_typedef_UIToolbarAppearance typedef struct objc_object UIToolbarAppearance; typedef struct {} _objc_exc_UIToolbarAppearance; #endif // @protocol UIToolbarDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIToolbar #define _REWRITER_typedef_UIToolbar typedef struct objc_object UIToolbar; typedef struct {} _objc_exc_UIToolbar; #endif struct UIToolbar_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property(nonatomic) UIBarStyle barStyle __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(tvos,unavailable))); // @property(nullable, nonatomic, copy) NSArray<UIBarButtonItem *> *items; // @property(nonatomic,assign,getter=isTranslucent) BOOL translucent __attribute__((availability(ios,introduced=3.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setItems:(nullable NSArray<UIBarButtonItem *> *)items animated:(BOOL)animated; // @property(null_resettable, nonatomic, strong) UIColor *tintColor; // @property(nullable, nonatomic, strong) UIColor *barTintColor __attribute__((availability(ios,introduced=7.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setBackgroundImage:(nullable UIImage *)backgroundImage forToolbarPosition:(UIBarPosition)topOrBottom barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)backgroundImageForToolbarPosition:(UIBarPosition)topOrBottom barMetrics:(UIBarMetrics)barMetrics __attribute__((availability(ios,introduced=5.0))) __attribute__((annotate("ui_appearance_selector"))); // - (void)setShadowImage:(nullable UIImage *)shadowImage forToolbarPosition:(UIBarPosition)topOrBottom __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // - (nullable UIImage *)shadowImageForToolbarPosition:(UIBarPosition)topOrBottom __attribute__((availability(ios,introduced=6.0))) __attribute__((annotate("ui_appearance_selector"))); // @property (nonatomic, readwrite, copy) UIToolbarAppearance *standardAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, readwrite, copy, nullable) UIToolbarAppearance *compactAppearance __attribute__((annotate("ui_appearance_selector"))) __attribute__((availability(ios,introduced=13.0))); // @property(nullable, nonatomic, weak) id<UIToolbarDelegate> delegate __attribute__((availability(ios,introduced=7.0))); /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIToolbarDelegate <UIBarPositioningDelegate> /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIVideoEditorControllerDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=3.1))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIVideoEditorController #define _REWRITER_typedef_UIVideoEditorController typedef struct objc_object UIVideoEditorController; typedef struct {} _objc_exc_UIVideoEditorController; #endif struct UIVideoEditorController_IMPL { struct UINavigationController_IMPL UINavigationController_IVARS; }; // + (BOOL)canEditVideoAtPath:(NSString *)videoPath __attribute__((availability(ios,introduced=3.1))); // @property(nullable, nonatomic,assign) id <UINavigationControllerDelegate, UIVideoEditorControllerDelegate> delegate; // @property(nonatomic, copy) NSString *videoPath; // @property(nonatomic) NSTimeInterval videoMaximumDuration; // @property(nonatomic) UIImagePickerControllerQualityType videoQuality; /* @end */ __attribute__((availability(tvos,unavailable))) // @protocol UIVideoEditorControllerDelegate<NSObject> /* @optional */ // - (void)videoEditorController:(UIVideoEditorController *)editor didSaveEditedVideoToPath:(NSString *)editedVideoPath; // - (void)videoEditorController:(UIVideoEditorController *)editor didFailWithError:(NSError *)error; // - (void)videoEditorControllerDidCancel:(UIVideoEditorController *)editor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIWebViewNavigationType; enum { UIWebViewNavigationTypeLinkClicked, UIWebViewNavigationTypeFormSubmitted, UIWebViewNavigationTypeBackForward, UIWebViewNavigationTypeReload, UIWebViewNavigationTypeFormResubmitted, UIWebViewNavigationTypeOther } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIWebPaginationMode; enum { UIWebPaginationModeUnpaginated, UIWebPaginationModeLeftToRight, UIWebPaginationModeTopToBottom, UIWebPaginationModeBottomToTop, UIWebPaginationModeRightToLeft } __attribute__((availability(tvos,unavailable))); typedef NSInteger UIWebPaginationBreakingMode; enum { UIWebPaginationBreakingModePage, UIWebPaginationBreakingModeColumn } __attribute__((availability(tvos,unavailable))); // @class UIWebViewInternal; #ifndef _REWRITER_typedef_UIWebViewInternal #define _REWRITER_typedef_UIWebViewInternal typedef struct objc_object UIWebViewInternal; typedef struct {} _objc_exc_UIWebViewInternal; #endif // @protocol UIWebViewDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="No longer supported; please adopt WKWebView."))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) #ifndef _REWRITER_typedef_UIWebView #define _REWRITER_typedef_UIWebView typedef struct objc_object UIWebView; typedef struct {} _objc_exc_UIWebView; #endif struct UIWebView_IMPL { struct UIView_IMPL UIView_IVARS; }; // @property (nullable, nonatomic, assign) id <UIWebViewDelegate> delegate; // @property (nonatomic, readonly, strong) UIScrollView *scrollView __attribute__((availability(ios,introduced=5.0))); // - (void)loadRequest:(NSURLRequest *)request; // - (void)loadHTMLString:(NSString *)string baseURL:(nullable NSURL *)baseURL; // - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL; // @property (nullable, nonatomic, readonly, strong) NSURLRequest *request; // - (void)reload; // - (void)stopLoading; // - (void)goBack; // - (void)goForward; // @property (nonatomic, readonly, getter=canGoBack) BOOL canGoBack; // @property (nonatomic, readonly, getter=canGoForward) BOOL canGoForward; // @property (nonatomic, readonly, getter=isLoading) BOOL loading; // - (nullable NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script; // @property (nonatomic) BOOL scalesPageToFit; // @property (nonatomic) BOOL detectsPhoneNumbers __attribute__((availability(ios,introduced=2.0,deprecated=3.0,message=""))); // @property (nonatomic) UIDataDetectorTypes dataDetectorTypes __attribute__((availability(ios,introduced=3.0))); // @property (nonatomic) BOOL allowsInlineMediaPlayback __attribute__((availability(ios,introduced=4.0))); // @property (nonatomic) BOOL mediaPlaybackRequiresUserAction __attribute__((availability(ios,introduced=4.0))); // @property (nonatomic) BOOL mediaPlaybackAllowsAirPlay __attribute__((availability(ios,introduced=5.0))); // @property (nonatomic) BOOL suppressesIncrementalRendering __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic) BOOL keyboardDisplayRequiresUserAction __attribute__((availability(ios,introduced=6.0))); // @property (nonatomic) UIWebPaginationMode paginationMode __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) UIWebPaginationBreakingMode paginationBreakingMode __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat pageLength __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat gapBetweenPages __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic, readonly) NSUInteger pageCount __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) BOOL allowsPictureInPictureMediaPlayback __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL allowsLinkPreview __attribute__((availability(ios,introduced=9.0))); /* @end */ __attribute__((availability(tvos,unavailable))) __attribute__((availability(macos,unavailable))) __attribute__((availability(macCatalyst,unavailable))) // @protocol UIWebViewDelegate <NSObject> /* @optional */ // - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="No longer supported."))); // - (void)webViewDidStartLoad:(UIWebView *)webView __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="No longer supported."))); // - (void)webViewDidFinishLoad:(UIWebView *)webView __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="No longer supported."))); // - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error __attribute__((availability(ios,introduced=2.0,deprecated=12.0,message="No longer supported."))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef CGFloat UIWindowLevel __attribute__((swift_wrapper(struct))); // @class UIEvent; #ifndef _REWRITER_typedef_UIEvent #define _REWRITER_typedef_UIEvent typedef struct objc_object UIEvent; typedef struct {} _objc_exc_UIEvent; #endif #ifndef _REWRITER_typedef_UIScreen #define _REWRITER_typedef_UIScreen typedef struct objc_object UIScreen; typedef struct {} _objc_exc_UIScreen; #endif #ifndef _REWRITER_typedef_NSUndoManager #define _REWRITER_typedef_NSUndoManager typedef struct objc_object NSUndoManager; typedef struct {} _objc_exc_NSUndoManager; #endif #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif #ifndef _REWRITER_typedef_UIWindowScene #define _REWRITER_typedef_UIWindowScene typedef struct objc_object UIWindowScene; typedef struct {} _objc_exc_UIWindowScene; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=2.0))) #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif struct UIWindow_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithWindowScene:(UIWindowScene *)windowScene __attribute__((availability(ios,introduced=13.0))); // @property(nullable, nonatomic, weak) UIWindowScene *windowScene __attribute__((availability(ios,introduced=13.0))); // @property(nonatomic, setter=setCanResizeToFitContent:) BOOL canResizeToFitContent __attribute__((availability(macCatalyst,introduced=13.0))); // @property(nonatomic,strong) UIScreen *screen __attribute__((availability(ios,introduced=3.2))); // - (void)setScreen:(UIScreen *)screen __attribute__((availability(ios,introduced=3.2,deprecated=13.0,replacement="setWindowScene:"))); // @property(nonatomic) UIWindowLevel windowLevel; // @property(nonatomic,readonly,getter=isKeyWindow) BOOL keyWindow; // - (void)becomeKeyWindow; // - (void)resignKeyWindow; // - (void)makeKeyWindow; // - (void)makeKeyAndVisible; // @property(nullable, nonatomic,strong) UIViewController *rootViewController __attribute__((availability(ios,introduced=4.0))); // - (void)sendEvent:(UIEvent *)event; // - (CGPoint)convertPoint:(CGPoint)point toWindow:(nullable UIWindow *)window; // - (CGPoint)convertPoint:(CGPoint)point fromWindow:(nullable UIWindow *)window; // - (CGRect)convertRect:(CGRect)rect toWindow:(nullable UIWindow *)window; // - (CGRect)convertRect:(CGRect)rect fromWindow:(nullable UIWindow *)window; /* @end */ extern "C" __attribute__((visibility ("default"))) const UIWindowLevel UIWindowLevelNormal; extern "C" __attribute__((visibility ("default"))) const UIWindowLevel UIWindowLevelAlert; extern "C" __attribute__((visibility ("default"))) const UIWindowLevel UIWindowLevelStatusBar __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIWindowDidBecomeVisibleNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIWindowDidBecomeHiddenNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIWindowDidBecomeKeyNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIWindowDidResignKeyNotification; extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardWillShowNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardDidShowNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardWillHideNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardDidHideNotification __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardFrameBeginUserInfoKey __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardFrameEndUserInfoKey __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardAnimationDurationUserInfoKey __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardAnimationCurveUserInfoKey __attribute__((availability(ios,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardIsLocalUserInfoKey __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardWillChangeFrameNotification __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const UIKeyboardDidChangeFrameNotification __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardCenterBeginUserInfoKey __attribute__((availability(ios,introduced=2.0,deprecated=3.2,message=""))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardCenterEndUserInfoKey __attribute__((availability(ios,introduced=2.0,deprecated=3.2,message=""))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) NSString *const UIKeyboardBoundsUserInfoKey __attribute__((availability(ios,introduced=2.0,deprecated=3.2,message=""))) __attribute__((availability(tvos,unavailable))); #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDragPreview; #ifndef _REWRITER_typedef_UIDragPreview #define _REWRITER_typedef_UIDragPreview typedef struct objc_object UIDragPreview; typedef struct {} _objc_exc_UIDragPreview; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif struct UIDragItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) __kindof NSItemProvider *itemProvider; // @property (nonatomic, strong, nullable) id localObject; // @property (nonatomic, copy, nullable) UIDragPreview * _Nullable (^previewProvider)(void); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDragPreviewParameters; #ifndef _REWRITER_typedef_UIDragPreviewParameters #define _REWRITER_typedef_UIDragPreviewParameters typedef struct objc_object UIDragPreviewParameters; typedef struct {} _objc_exc_UIDragPreviewParameters; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDragPreview #define _REWRITER_typedef_UIDragPreview typedef struct objc_object UIDragPreview; typedef struct {} _objc_exc_UIDragPreview; #endif struct UIDragPreview_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithView:(UIView *)view parameters:(UIDragPreviewParameters *)parameters __attribute__((objc_designated_initializer)); // - (instancetype)initWithView:(UIView *)view; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) UIView *view; // @property (nonatomic, readonly, copy) UIDragPreviewParameters *parameters; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIBezierPath; #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPreviewParameters #define _REWRITER_typedef_UIPreviewParameters typedef struct objc_object UIPreviewParameters; typedef struct {} _objc_exc_UIPreviewParameters; #endif struct UIPreviewParameters_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (instancetype)initWithTextLineRects:(NSArray<NSValue *> *)textLineRects; // @property (nonatomic, copy, nullable) UIBezierPath *visiblePath; // @property (nonatomic, copy, nullable) UIBezierPath *shadowPath __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (nonatomic, copy, null_resettable) UIColor *backgroundColor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDragPreviewParameters #define _REWRITER_typedef_UIDragPreviewParameters typedef struct objc_object UIDragPreviewParameters; typedef struct {} _objc_exc_UIDragPreviewParameters; #endif struct UIDragPreviewParameters_IMPL { struct UIPreviewParameters_IMPL UIPreviewParameters_IVARS; }; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDragItem; #ifndef _REWRITER_typedef_UIDragItem #define _REWRITER_typedef_UIDragItem typedef struct objc_object UIDragItem; typedef struct {} _objc_exc_UIDragItem; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDragDropSession <NSObject> // @property (nonatomic, readonly) NSArray<UIDragItem *> *items; // - (CGPoint)locationInView:(UIView *)view; // @property (nonatomic, readonly) BOOL allowsMoveOperation; // @property (nonatomic, readonly, getter=isRestrictedToDraggingApplication) BOOL restrictedToDraggingApplication; // - (BOOL)hasItemsConformingToTypeIdentifiers:(NSArray<NSString *> *)typeIdentifiers; // - (BOOL)canLoadObjectsOfClass:(Class<NSItemProviderReading>)aClass; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDragSession <UIDragDropSession> // @property (nonatomic, strong, nullable) id localContext; /* @end */ typedef NSUInteger UIDropSessionProgressIndicatorStyle; enum { UIDropSessionProgressIndicatorStyleNone, UIDropSessionProgressIndicatorStyleDefault, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDropSession <UIDragDropSession, NSProgressReporting> // @property (nonatomic, readonly, nullable) id<UIDragSession> localDragSession; // @property (nonatomic) UIDropSessionProgressIndicatorStyle progressIndicatorStyle; // - (NSProgress *)loadObjectsOfClass:(Class<NSItemProviderReading>)aClass completion:(void(^)(NSArray<__kindof id<NSItemProviderReading>> *objects))completion; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPreviewParameters; #ifndef _REWRITER_typedef_UIPreviewParameters #define _REWRITER_typedef_UIPreviewParameters typedef struct objc_object UIPreviewParameters; typedef struct {} _objc_exc_UIPreviewParameters; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPreviewTarget #define _REWRITER_typedef_UIPreviewTarget typedef struct objc_object UIPreviewTarget; typedef struct {} _objc_exc_UIPreviewTarget; #endif struct UIPreviewTarget_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithContainer:(UIView *)container center:(CGPoint)center transform:(CGAffineTransform)transform __attribute__((objc_designated_initializer)); // - (instancetype)initWithContainer:(UIView *)container center:(CGPoint)center; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) UIView *container; // @property (nonatomic, readonly) CGPoint center; // @property (nonatomic, readonly) CGAffineTransform transform; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UITargetedPreview #define _REWRITER_typedef_UITargetedPreview typedef struct objc_object UITargetedPreview; typedef struct {} _objc_exc_UITargetedPreview; #endif struct UITargetedPreview_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithView:(UIView *)view parameters:(__kindof UIPreviewParameters *)parameters target:(__kindof UIPreviewTarget *)target __attribute__((objc_designated_initializer)); // - (instancetype)initWithView:(UIView *)view parameters:(__kindof UIPreviewParameters *)parameters; // - (instancetype)initWithView:(UIView *)view; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) __kindof UIPreviewTarget *target; // @property (nonatomic, readonly) UIView *view; // @property (nonatomic, readonly, copy) __kindof UIPreviewParameters *parameters; // @property (nonatomic, readonly) CGSize size; // - (__kindof UITargetedPreview *)retargetedPreviewWithTarget:(__kindof UIPreviewTarget *)newTarget; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDragPreviewParameters; #ifndef _REWRITER_typedef_UIDragPreviewParameters #define _REWRITER_typedef_UIDragPreviewParameters typedef struct objc_object UIDragPreviewParameters; typedef struct {} _objc_exc_UIDragPreviewParameters; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDragPreviewTarget #define _REWRITER_typedef_UIDragPreviewTarget typedef struct objc_object UIDragPreviewTarget; typedef struct {} _objc_exc_UIDragPreviewTarget; #endif struct UIDragPreviewTarget_IMPL { struct UIPreviewTarget_IMPL UIPreviewTarget_IVARS; }; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UITargetedDragPreview #define _REWRITER_typedef_UITargetedDragPreview typedef struct objc_object UITargetedDragPreview; typedef struct {} _objc_exc_UITargetedDragPreview; #endif struct UITargetedDragPreview_IMPL { struct UITargetedPreview_IMPL UITargetedPreview_IVARS; }; // - (UITargetedDragPreview *)retargetedPreviewWithTarget:(UIDragPreviewTarget *)newTarget; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UISpringLoadedInteractionEffectState; enum { UISpringLoadedInteractionEffectStateInactive, UISpringLoadedInteractionEffectStatePossible, UISpringLoadedInteractionEffectStateActivating, UISpringLoadedInteractionEffectStateActivated, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @protocol UISpringLoadedInteractionBehavior, UISpringLoadedInteractionEffect, UISpringLoadedInteractionContext; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UISpringLoadedInteraction #define _REWRITER_typedef_UISpringLoadedInteraction typedef struct objc_object UISpringLoadedInteraction; typedef struct {} _objc_exc_UISpringLoadedInteraction; #endif struct UISpringLoadedInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithInteractionBehavior:(nullable id<UISpringLoadedInteractionBehavior>)interactionBehavior interactionEffect:(nullable id<UISpringLoadedInteractionEffect>)interactionEffect activationHandler:(void(^)(UISpringLoadedInteraction *interaction, id<UISpringLoadedInteractionContext> context))handler __attribute__((objc_designated_initializer)); // - (instancetype)initWithActivationHandler:(void(^)(UISpringLoadedInteraction *interaction, id<UISpringLoadedInteractionContext> context))handler; // @property (nonatomic, strong, readonly) id<UISpringLoadedInteractionBehavior> interactionBehavior; // @property (nonatomic, strong, readonly) id<UISpringLoadedInteractionEffect> interactionEffect; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UISpringLoadedInteractionBehavior <NSObject> /* @required */ // - (BOOL)shouldAllowInteraction:(UISpringLoadedInteraction *)interaction withContext:(id<UISpringLoadedInteractionContext>)context; /* @optional */ // - (void)interactionDidFinish:(UISpringLoadedInteraction *)interaction; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UISpringLoadedInteractionEffect <NSObject> /* @required */ // - (void)interaction:(UISpringLoadedInteraction *)interaction didChangeWithContext:(id<UISpringLoadedInteractionContext>)context; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UISpringLoadedInteractionContext <NSObject> // @property (nonatomic, readonly) UISpringLoadedInteractionEffectState state; // @property (nonatomic, strong, nullable) UIView *targetView; // @property (nonatomic, strong, nullable) id targetItem; // - (CGPoint)locationInView:(nullable UIView *)view; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif // @class UIBlurEffect; #ifndef _REWRITER_typedef_UIBlurEffect #define _REWRITER_typedef_UIBlurEffect typedef struct objc_object UIBlurEffect; typedef struct {} _objc_exc_UIBlurEffect; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UIBarAppearance #define _REWRITER_typedef_UIBarAppearance typedef struct objc_object UIBarAppearance; typedef struct {} _objc_exc_UIBarAppearance; #endif struct UIBarAppearance_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (instancetype)initWithIdiom:(UIUserInterfaceIdiom)idiom __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly, assign) UIUserInterfaceIdiom idiom; // - (instancetype)initWithBarAppearance:(UIBarAppearance *)barAppearance __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)copy; // - (void)configureWithDefaultBackground; // - (void)configureWithOpaqueBackground; // - (void)configureWithTransparentBackground; // @property (nonatomic, readwrite, copy, nullable) UIBlurEffect *backgroundEffect; // @property (nonatomic, readwrite, copy, nullable) UIColor *backgroundColor; // @property (nonatomic, readwrite, strong, nullable) UIImage *backgroundImage; // @property (nonatomic, readwrite, assign) UIViewContentMode backgroundImageContentMode; // @property (nonatomic, readwrite, copy, nullable) UIColor *shadowColor; // @property (nonatomic, readwrite, strong, nullable) UIImage *shadowImage; /* @end */ #pragma clang assume_nonnull end // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UIBarButtonItemStateAppearance #define _REWRITER_typedef_UIBarButtonItemStateAppearance typedef struct objc_object UIBarButtonItemStateAppearance; typedef struct {} _objc_exc_UIBarButtonItemStateAppearance; #endif struct UIBarButtonItemStateAppearance_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *titleTextAttributes; // @property (nonatomic, readwrite, assign) UIOffset titlePositionAdjustment; // @property (nonatomic, readwrite, strong, nullable) UIImage *backgroundImage; // @property (nonatomic, readwrite, assign) UIOffset backgroundImagePositionAdjustment; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UIBarButtonItemAppearance #define _REWRITER_typedef_UIBarButtonItemAppearance typedef struct objc_object UIBarButtonItemAppearance; typedef struct {} _objc_exc_UIBarButtonItemAppearance; #endif struct UIBarButtonItemAppearance_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (instancetype)initWithStyle:(UIBarButtonItemStyle)style __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)copy; // - (void)configureWithDefaultForStyle:(UIBarButtonItemStyle)style; // @property (nonatomic, readonly, strong) UIBarButtonItemStateAppearance *normal; // @property (nonatomic, readonly, strong) UIBarButtonItemStateAppearance *highlighted; // @property (nonatomic, readonly, strong) UIBarButtonItemStateAppearance *disabled; // @property (nonatomic, readonly, strong) UIBarButtonItemStateAppearance *focused; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UINavigationBarAppearance #define _REWRITER_typedef_UINavigationBarAppearance typedef struct objc_object UINavigationBarAppearance; typedef struct {} _objc_exc_UINavigationBarAppearance; #endif struct UINavigationBarAppearance_IMPL { struct UIBarAppearance_IMPL UIBarAppearance_IVARS; }; // @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *titleTextAttributes; // @property (nonatomic, readwrite, assign) UIOffset titlePositionAdjustment; // @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *largeTitleTextAttributes; // @property (nonatomic, readwrite, copy) UIBarButtonItemAppearance *buttonAppearance; // @property (nonatomic, readwrite, copy) UIBarButtonItemAppearance *doneButtonAppearance; // @property (nonatomic, readwrite, copy) UIBarButtonItemAppearance *backButtonAppearance; // @property (nonatomic, readonly, strong) UIImage *backIndicatorImage; // @property (nonatomic, readonly, strong) UIImage *backIndicatorTransitionMaskImage; // - (void)setBackIndicatorImage:(nullable UIImage *)backIndicatorImage transitionMaskImage:(nullable UIImage *)backIndicatorTransitionMaskImage; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIToolbarAppearance #define _REWRITER_typedef_UIToolbarAppearance typedef struct objc_object UIToolbarAppearance; typedef struct {} _objc_exc_UIToolbarAppearance; #endif struct UIToolbarAppearance_IMPL { struct UIBarAppearance_IMPL UIBarAppearance_IVARS; }; // @property (nonatomic, readwrite, copy) UIBarButtonItemAppearance *buttonAppearance; // @property (nonatomic, readwrite, copy) UIBarButtonItemAppearance *doneButtonAppearance; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UITabBarItemStateAppearance #define _REWRITER_typedef_UITabBarItemStateAppearance typedef struct objc_object UITabBarItemStateAppearance; typedef struct {} _objc_exc_UITabBarItemStateAppearance; #endif struct UITabBarItemStateAppearance_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *titleTextAttributes; // @property (nonatomic, readwrite, assign) UIOffset titlePositionAdjustment; // @property (nonatomic, readwrite, copy, nullable) UIColor *iconColor; // @property (nonatomic, readwrite, assign) UIOffset badgePositionAdjustment; // @property (nonatomic, readwrite, copy, nullable) UIColor *badgeBackgroundColor; // @property (nonatomic, readwrite, copy) NSDictionary<NSAttributedStringKey, id> *badgeTextAttributes; // @property (nonatomic, readwrite, assign) UIOffset badgeTitlePositionAdjustment; /* @end */ typedef NSInteger UITabBarItemAppearanceStyle; enum { UITabBarItemAppearanceStyleStacked, UITabBarItemAppearanceStyleInline, UITabBarItemAppearanceStyleCompactInline, }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UITabBarItemAppearance #define _REWRITER_typedef_UITabBarItemAppearance typedef struct objc_object UITabBarItemAppearance; typedef struct {} _objc_exc_UITabBarItemAppearance; #endif struct UITabBarItemAppearance_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init; // - (instancetype)initWithStyle:(UITabBarItemAppearanceStyle)style __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)copy; // - (void)configureWithDefaultForStyle:(UITabBarItemAppearanceStyle)style; // @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *normal; // @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *selected; // @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *disabled; // @property (nonatomic, readonly, strong) UITabBarItemStateAppearance *focused; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,introduced=13.0))) #ifndef _REWRITER_typedef_UITabBarAppearance #define _REWRITER_typedef_UITabBarAppearance typedef struct objc_object UITabBarAppearance; typedef struct {} _objc_exc_UITabBarAppearance; #endif struct UITabBarAppearance_IMPL { struct UIBarAppearance_IMPL UIBarAppearance_IVARS; }; // @property (nonatomic, readwrite, copy) UITabBarItemAppearance *stackedLayoutAppearance; // @property (nonatomic, readwrite, copy) UITabBarItemAppearance *inlineLayoutAppearance; // @property (nonatomic, readwrite, copy) UITabBarItemAppearance *compactInlineLayoutAppearance; // @property (nonatomic, readwrite, copy, nullable) UIColor *selectionIndicatorTintColor; // @property (nonatomic, readwrite, strong, nullable) UIImage *selectionIndicatorImage; // @property (nonatomic, readwrite, assign) UITabBarItemPositioning stackedItemPositioning; // @property (nonatomic, readwrite, assign) CGFloat stackedItemWidth; // @property (nonatomic, readwrite, assign) CGFloat stackedItemSpacing; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIActivity; #ifndef _REWRITER_typedef_UIActivity #define _REWRITER_typedef_UIActivity typedef struct objc_object UIActivity; typedef struct {} _objc_exc_UIActivity; #endif typedef NSString * UIActivityItemsConfigurationMetadataKey __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityItemsConfigurationMetadataKey const UIActivityItemsConfigurationMetadataKeyTitle __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityItemsConfigurationMetadataKey const UIActivityItemsConfigurationMetadataKeyMessageBody __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef NSString * UIActivityItemsConfigurationPreviewIntent __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityItemsConfigurationPreviewIntent const UIActivityItemsConfigurationPreviewIntentFullSize __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityItemsConfigurationPreviewIntent const UIActivityItemsConfigurationPreviewIntentThumbnail __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); typedef NSString * UIActivityItemsConfigurationInteraction __attribute__((swift_wrapper(struct))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityItemsConfigurationInteraction const UIActivityItemsConfigurationInteractionShare __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @protocol UIActivityItemsConfigurationReading <NSObject> // @property (nonatomic, readonly, copy) NSArray<NSItemProvider *> *itemProvidersForActivityItemsConfiguration; /* @optional */ // - (BOOL)activityItemsConfigurationSupportsInteraction:(UIActivityItemsConfigurationInteraction)interaction __attribute__((swift_name("activityItemsConfigurationSupports(interaction:)"))); // - (nullable id)activityItemsConfigurationMetadataForKey:(UIActivityItemsConfigurationMetadataKey)key __attribute__((swift_name("activityItemsConfigurationMetadata(key:)"))); // - (nullable id)activityItemsConfigurationMetadataForItemAtIndex:(NSInteger)index key:(UIActivityItemsConfigurationMetadataKey)key; // - (nullable NSItemProvider *)activityItemsConfigurationPreviewForItemAtIndex:(NSInteger)index intent:(UIActivityItemsConfigurationPreviewIntent)intent suggestedSize:(CGSize)suggestedSize; // @property (nonatomic, readonly, nullable, copy) NSArray <UIActivity *> *applicationActivitiesForActivityItemsConfiguration; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIActivity; #ifndef _REWRITER_typedef_UIActivity #define _REWRITER_typedef_UIActivity typedef struct objc_object UIActivity; typedef struct {} _objc_exc_UIActivity; #endif // @class UIViewController; #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif // @class UIView; #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIActivityItemsConfiguration #define _REWRITER_typedef_UIActivityItemsConfiguration typedef struct objc_object UIActivityItemsConfiguration; typedef struct {} _objc_exc_UIActivityItemsConfiguration; #endif struct UIActivityItemsConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, strong, nullable) id localObject; // @property (nonatomic, copy) NSArray<UIActivityItemsConfigurationInteraction> *supportedInteractions; // @property (nonatomic, strong, nullable) id _Nullable (^metadataProvider)(UIActivityItemsConfigurationMetadataKey key); // @property (nonatomic, strong, nullable) id _Nullable (^perItemMetadataProvider)(NSInteger index, UIActivityItemsConfigurationMetadataKey key); // @property (nonatomic, strong, nullable) NSItemProvider *_Nullable (^previewProvider)(NSInteger index, UIActivityItemsConfigurationPreviewIntent intent, CGSize suggestedSize); // @property (nonatomic, strong, nullable) NSArray<UIActivity *> *(^applicationActivitiesProvider)(void); // + (instancetype)activityItemsConfigurationWithObjects:(NSArray<id<NSItemProviderWriting> > *)objects; // + (instancetype)activityItemsConfigurationWithItemProviders:(NSArray<NSItemProvider *> *)itemProviders; // - (instancetype)initWithObjects:(NSArray<id<NSItemProviderWriting> > *)objects __attribute__((objc_designated_initializer)); // - (instancetype)initWithItemProviders:(NSArray<NSItemProvider *> *)itemProviders __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIActivityItemsConfigurationReading; __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) // @interface UIResponder (UIActivityItemsConfiguration) // @property (nonatomic, strong, nullable) id<UIActivityItemsConfigurationReading> activityItemsConfiguration __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=14.0))) // @protocol UISearchSuggestion <NSObject> // @property (nonatomic, readonly, nullable) NSString *localizedSuggestion; /* @optional */ // @property (nonatomic, readonly, nullable) NSString *localizedDescription; // @property (nonatomic, readonly, nullable) UIImage *iconImage; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,introduced=14.0))) #ifndef _REWRITER_typedef_UISearchSuggestionItem #define _REWRITER_typedef_UISearchSuggestionItem typedef struct objc_object UISearchSuggestionItem; typedef struct {} _objc_exc_UISearchSuggestionItem; #endif struct UISearchSuggestionItem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)suggestionWithLocalizedSuggestion:(NSString *)suggestion __attribute__((availability(swift, unavailable, message="Use init(string suggestionString: String) instead."))); // + (instancetype)suggestionWithLocalizedSuggestion:(NSString *)suggestion descriptionString:(nullable NSString *)description __attribute__((availability(swift, unavailable, message="Use init(string suggestionString: String, descriptionString: String?) instead."))); // + (instancetype)suggestionWithLocalizedSuggestion:(NSString *)suggestion descriptionString:(nullable NSString *)description iconImage:(nullable UIImage *)iconImage __attribute__((availability(swift, unavailable, message="Use init(string suggestionString: String, descriptionString: String?, iconImage: UIImage?) instead."))); // - (instancetype)initWithLocalizedSuggestion:(NSString *)suggestion; // - (instancetype)initWithLocalizedSuggestion:(NSString *)suggestion localizedDescription:(nullable NSString *)description; // - (instancetype)initWithLocalizedSuggestion:(NSString *)suggestion localizedDescription:(nullable NSString *)description iconImage:(nullable UIImage *)iconImage; // @property (nonatomic, readonly, nullable) NSString *localizedSuggestion; // @property (nonatomic, readonly, nullable) NSString *localizedDescription; // @property (nonatomic, readonly, nullable) UIImage *iconImage; /* @end */ #pragma clang assume_nonnull end // @protocol UIScribbleInteractionDelegate; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIScribbleInteraction #define _REWRITER_typedef_UIScribbleInteraction typedef struct objc_object UIScribbleInteraction; typedef struct {} _objc_exc_UIScribbleInteraction; #endif struct UIScribbleInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)initWithDelegate:(id<UIScribbleInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // @property (nonatomic, weak, nullable, readonly) id<UIScribbleInteractionDelegate> delegate; // @property (nonatomic, readonly, getter=isHandlingWriting) BOOL handlingWriting; @property (nonatomic, readonly, class, getter=isPencilInputExpected) BOOL pencilInputExpected; /* @end */ __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIScribbleInteractionDelegate <NSObject> /* @optional */ // - (BOOL)scribbleInteraction:(UIScribbleInteraction *)interaction shouldBeginAtLocation:(CGPoint)location __attribute__((swift_name("scribbleInteraction(_:shouldBeginAt:)"))); // - (BOOL)scribbleInteractionShouldDelayFocus:(UIScribbleInteraction *)interaction; // - (void)scribbleInteractionWillBeginWriting:(UIScribbleInteraction *)interaction; // - (void)scribbleInteractionDidFinishWriting:(UIScribbleInteraction *)interaction; /* @end */ #pragma clang assume_nonnull end // @protocol UIIndirectScribbleInteractionDelegate; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIIndirectScribbleInteraction #define _REWRITER_typedef_UIIndirectScribbleInteraction typedef struct objc_object UIIndirectScribbleInteraction; typedef struct {} _objc_exc_UIIndirectScribbleInteraction; #endif struct UIIndirectScribbleInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)initWithDelegate:(id<UIIndirectScribbleInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // @property (nonatomic, weak, nullable, readonly) id<UIIndirectScribbleInteractionDelegate> delegate; // @property (nonatomic, readonly, getter=isHandlingWriting) BOOL handlingWriting; /* @end */ typedef id/*<NSCopying, NSObject>*/ UIScribbleElementIdentifier __attribute__((swift_private)); __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) // @protocol UIIndirectScribbleInteractionDelegate <NSObject> // - (void)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction requestElementsInRect:(CGRect)rect completion:(void(^)(NSArray<UIScribbleElementIdentifier> *elements))completion; // - (BOOL)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction isElementFocused:(UIScribbleElementIdentifier)elementIdentifier; // - (CGRect)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction frameForElement:(UIScribbleElementIdentifier)elementIdentifier; // - (void)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction focusElementIfNeeded:(UIScribbleElementIdentifier)elementIdentifier referencePoint:(CGPoint)focusReferencePoint completion:(void(^)(UIResponder<UITextInput> * _Nullable focusedInput))completion; /* @optional */ // - (BOOL)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction shouldDelayFocusForElement:(UIScribbleElementIdentifier)elementIdentifier; // - (void)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction willBeginWritingInElement:(UIScribbleElementIdentifier)elementIdentifier; // - (void)indirectScribbleInteraction:(UIIndirectScribbleInteraction *)interaction didFinishWritingInElement:(UIScribbleElementIdentifier)elementIdentifier; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class NSLayoutConstraint; #ifndef _REWRITER_typedef_NSLayoutConstraint #define _REWRITER_typedef_NSLayoutConstraint typedef struct objc_object NSLayoutConstraint; typedef struct {} _objc_exc_NSLayoutConstraint; #endif #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif extern "C" __attribute((visibility("default"))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_NSLayoutAnchor #define _REWRITER_typedef_NSLayoutAnchor typedef struct objc_object NSLayoutAnchor; typedef struct {} _objc_exc_NSLayoutAnchor; #endif struct NSLayoutAnchor_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutAnchor<AnchorType> *)anchor constant:(CGFloat)c __attribute__((warn_unused_result)); // @property (readonly, copy) NSString *name __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly, nullable, weak) id item __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly) BOOL hasAmbiguousLayout __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @property (readonly) NSArray<NSLayoutConstraint *> *constraintsAffectingLayout __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @class NSLayoutXAxisAnchor; #ifndef _REWRITER_typedef_NSLayoutXAxisAnchor #define _REWRITER_typedef_NSLayoutXAxisAnchor typedef struct objc_object NSLayoutXAxisAnchor; typedef struct {} _objc_exc_NSLayoutXAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutYAxisAnchor #define _REWRITER_typedef_NSLayoutYAxisAnchor typedef struct objc_object NSLayoutYAxisAnchor; typedef struct {} _objc_exc_NSLayoutYAxisAnchor; #endif #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif extern "C" __attribute((visibility("default"))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_NSLayoutXAxisAnchor #define _REWRITER_typedef_NSLayoutXAxisAnchor typedef struct objc_object NSLayoutXAxisAnchor; typedef struct {} _objc_exc_NSLayoutXAxisAnchor; #endif struct NSLayoutXAxisAnchor_IMPL { struct NSLayoutAnchor_IMPL NSLayoutAnchor_IVARS; }; // - (NSLayoutDimension *)anchorWithOffsetToAnchor:(NSLayoutXAxisAnchor *)otherAnchor __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ extern "C" __attribute((visibility("default"))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_NSLayoutYAxisAnchor #define _REWRITER_typedef_NSLayoutYAxisAnchor typedef struct objc_object NSLayoutYAxisAnchor; typedef struct {} _objc_exc_NSLayoutYAxisAnchor; #endif struct NSLayoutYAxisAnchor_IMPL { struct NSLayoutAnchor_IMPL NSLayoutAnchor_IVARS; }; // - (NSLayoutDimension *)anchorWithOffsetToAnchor:(NSLayoutYAxisAnchor *)otherAnchor __attribute__((availability(macos,introduced=10.12))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,introduced=10.0))); /* @end */ extern "C" __attribute((visibility("default"))) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_NSLayoutDimension #define _REWRITER_typedef_NSLayoutDimension typedef struct objc_object NSLayoutDimension; typedef struct {} _objc_exc_NSLayoutDimension; #endif struct NSLayoutDimension_IMPL { struct NSLayoutAnchor_IMPL NSLayoutAnchor_IVARS; }; // - (NSLayoutConstraint *)constraintEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintLessThanOrEqualToConstant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); // - (NSLayoutConstraint *)constraintLessThanOrEqualToAnchor:(NSLayoutDimension *)anchor multiplier:(CGFloat)m constant:(CGFloat)c __attribute__((warn_unused_result)); /* @end */ // @interface NSLayoutXAxisAnchor (UIViewDynamicSystemSpacingSupport) // - (NSLayoutConstraint *)constraintEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSLayoutConstraint *)constraintLessThanOrEqualToSystemSpacingAfterAnchor:(NSLayoutXAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ // @interface NSLayoutYAxisAnchor (UIViewDynamicSystemSpacingSupport) // - (NSLayoutConstraint *)constraintEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSLayoutConstraint *)constraintGreaterThanOrEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (NSLayoutConstraint *)constraintLessThanOrEqualToSystemSpacingBelowAnchor:(NSLayoutYAxisAnchor *)anchor multiplier:(CGFloat)multiplier __attribute__((warn_unused_result)) __attribute__((availability(macos,introduced=11.0))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); /* @end */ #pragma clang assume_nonnull end typedef NSInteger UIStackViewDistribution; enum { UIStackViewDistributionFill = 0, UIStackViewDistributionFillEqually, UIStackViewDistributionFillProportionally, UIStackViewDistributionEqualSpacing, UIStackViewDistributionEqualCentering, } __attribute__((availability(ios,introduced=9.0))); typedef NSInteger UIStackViewAlignment; enum { UIStackViewAlignmentFill, UIStackViewAlignmentLeading, UIStackViewAlignmentTop = UIStackViewAlignmentLeading, UIStackViewAlignmentFirstBaseline, UIStackViewAlignmentCenter, UIStackViewAlignmentTrailing, UIStackViewAlignmentBottom = UIStackViewAlignmentTrailing, UIStackViewAlignmentLastBaseline, } __attribute__((availability(ios,introduced=9.0))); static const CGFloat UIStackViewSpacingUseDefault __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 3.40282347e+38F; static const CGFloat UIStackViewSpacingUseSystem __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))) = 1.17549435e-38F; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIStackView #define _REWRITER_typedef_UIStackView typedef struct objc_object UIStackView; typedef struct {} _objc_exc_UIStackView; #endif struct UIStackView_IMPL { struct UIView_IMPL UIView_IVARS; }; // - (instancetype)initWithFrame:(CGRect)frame __attribute__((objc_designated_initializer)); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // - (instancetype)initWithArrangedSubviews:(NSArray<__kindof UIView *> *)views; // @property(nonatomic,readonly,copy) NSArray<__kindof UIView *> *arrangedSubviews; // - (void)addArrangedSubview:(UIView *)view; // - (void)removeArrangedSubview:(UIView *)view; // - (void)insertArrangedSubview:(UIView *)view atIndex:(NSUInteger)stackIndex; // @property(nonatomic) UILayoutConstraintAxis axis; // @property(nonatomic) UIStackViewDistribution distribution; // @property(nonatomic) UIStackViewAlignment alignment; // @property(nonatomic) CGFloat spacing; // - (void)setCustomSpacing:(CGFloat)spacing afterView:(UIView *)arrangedSubview __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // - (CGFloat)customSpacingAfterView:(UIView *)arrangedSubview __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,introduced=11.0))); // @property(nonatomic,getter=isBaselineRelativeArrangement) BOOL baselineRelativeArrangement; // @property(nonatomic,getter=isLayoutMarginsRelativeArrangement) BOOL layoutMarginsRelativeArrangement; /* @end */ #pragma clang assume_nonnull end // @class NSArray; #ifndef _REWRITER_typedef_NSArray #define _REWRITER_typedef_NSArray typedef struct objc_object NSArray; typedef struct {} _objc_exc_NSArray; #endif #ifndef _REWRITER_typedef_NSLayoutManager #define _REWRITER_typedef_NSLayoutManager typedef struct objc_object NSLayoutManager; typedef struct {} _objc_exc_NSLayoutManager; #endif #ifndef _REWRITER_typedef_NSNotification #define _REWRITER_typedef_NSNotification typedef struct objc_object NSNotification; typedef struct {} _objc_exc_NSNotification; #endif // @protocol NSTextStorageDelegate; #pragma clang assume_nonnull begin typedef NSUInteger NSTextStorageEditActions; enum { NSTextStorageEditedAttributes = (1 << 0), NSTextStorageEditedCharacters = (1 << 1) } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_NSTextStorage #define _REWRITER_typedef_NSTextStorage typedef struct objc_object NSTextStorage; typedef struct {} _objc_exc_NSTextStorage; #endif struct NSTextStorage_IMPL { struct NSMutableAttributedString_IMPL NSMutableAttributedString_IVARS; }; // @property (readonly, copy, nonatomic) NSArray<NSLayoutManager *> *layoutManagers; // - (void)addLayoutManager:(NSLayoutManager *)aLayoutManager; // - (void)removeLayoutManager:(NSLayoutManager *)aLayoutManager; // @property (readonly, nonatomic) NSTextStorageEditActions editedMask; // @property (readonly, nonatomic) NSRange editedRange; // @property (readonly, nonatomic) NSInteger changeInLength; // @property (nullable, weak, nonatomic) id <NSTextStorageDelegate> delegate; // - (void)edited:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta; // - (void)processEditing; // @property (readonly, nonatomic) BOOL fixesAttributesLazily; // - (void)invalidateAttributesInRange:(NSRange)range; // - (void)ensureAttributesAreFixedInRange:(NSRange)range; /* @end */ // @protocol NSTextStorageDelegate <NSObject> /* @optional */ // - (void)textStorage:(NSTextStorage *)textStorage willProcessEditing:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (void)textStorage:(NSTextStorage *)textStorage didProcessEditing:(NSTextStorageEditActions)editedMask range:(NSRange)editedRange changeInLength:(NSInteger)delta __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) NSNotificationName const NSTextStorageWillProcessEditingNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) NSNotificationName const NSTextStorageDidProcessEditingNotification __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); #pragma clang assume_nonnull end // @class NSTextContainer; #ifndef _REWRITER_typedef_NSTextContainer #define _REWRITER_typedef_NSTextContainer typedef struct objc_object NSTextContainer; typedef struct {} _objc_exc_NSTextContainer; #endif // @class UIColor; #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #pragma clang assume_nonnull begin // @protocol NSLayoutManagerDelegate; typedef NSInteger NSTextLayoutOrientation; enum { NSTextLayoutOrientationHorizontal = 0, NSTextLayoutOrientationVertical = 1, } __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); typedef NSInteger NSGlyphProperty; enum { NSGlyphPropertyNull = (1 << 0), NSGlyphPropertyControlCharacter = (1 << 1), NSGlyphPropertyElastic = (1 << 2), NSGlyphPropertyNonBaseCharacter = (1 << 3) } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); typedef NSInteger NSControlCharacterAction; enum { NSControlCharacterActionZeroAdvancement = (1 << 0), NSControlCharacterActionWhitespace = (1 << 1), NSControlCharacterActionHorizontalTab = (1 << 2), NSControlCharacterActionLineBreak = (1 << 3), NSControlCharacterActionParagraphBreak = (1 << 4), NSControlCharacterActionContainerBreak = (1 << 5) } __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @protocol NSTextLayoutOrientationProvider // @property (readonly, nonatomic) NSTextLayoutOrientation layoutOrientation __attribute__((availability(macos,introduced=10.7))) __attribute__((availability(ios,introduced=7.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_NSLayoutManager #define _REWRITER_typedef_NSLayoutManager typedef struct objc_object NSLayoutManager; typedef struct {} _objc_exc_NSLayoutManager; #endif struct NSLayoutManager_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nullable, assign, nonatomic) NSTextStorage *textStorage; // @property (readonly, nonatomic) NSArray<NSTextContainer *> *textContainers; // - (void)addTextContainer:(NSTextContainer *)container; // - (void)insertTextContainer:(NSTextContainer *)container atIndex:(NSUInteger)index; // - (void)removeTextContainerAtIndex:(NSUInteger)index; // - (void)textContainerChangedGeometry:(NSTextContainer *)container; // @property (nullable, weak, nonatomic) id <NSLayoutManagerDelegate> delegate; // @property (nonatomic) BOOL showsInvisibleCharacters; // @property (nonatomic) BOOL showsControlCharacters; // @property (nonatomic) BOOL usesFontLeading; // @property (nonatomic) BOOL allowsNonContiguousLayout __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=7.0))); // @property (readonly, nonatomic) BOOL hasNonContiguousLayout __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=7.0))); // @property BOOL limitsLayoutForSuspiciousContents __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=12.0))) __attribute__((availability(watchos,introduced=5.0))) __attribute__((availability(tvos,introduced=12.0))); // @property BOOL usesDefaultHyphenation __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (void)invalidateGlyphsForCharacterRange:(NSRange)charRange changeInLength:(NSInteger)delta actualCharacterRange:(nullable NSRangePointer)actualCharRange; // - (void)invalidateLayoutForCharacterRange:(NSRange)charRange actualCharacterRange:(nullable NSRangePointer)actualCharRange __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=7.0))); // - (void)invalidateDisplayForCharacterRange:(NSRange)charRange; // - (void)invalidateDisplayForGlyphRange:(NSRange)glyphRange; // - (void)processEditingForTextStorage:(NSTextStorage *)textStorage edited:(NSTextStorageEditActions)editMask range:(NSRange)newCharRange changeInLength:(NSInteger)delta invalidatedRange:(NSRange)invalidatedCharRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (void)ensureGlyphsForCharacterRange:(NSRange)charRange; // - (void)ensureGlyphsForGlyphRange:(NSRange)glyphRange; // - (void)ensureLayoutForCharacterRange:(NSRange)charRange; // - (void)ensureLayoutForGlyphRange:(NSRange)glyphRange; // - (void)ensureLayoutForTextContainer:(NSTextContainer *)container; // - (void)ensureLayoutForBoundingRect:(CGRect)bounds inTextContainer:(NSTextContainer *)container; // - (void)setGlyphs:(const CGGlyph *)glyphs properties:(const NSGlyphProperty *)props characterIndexes:(const NSUInteger *)charIndexes font:(UIFont *)aFont forGlyphRange:(NSRange)glyphRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (readonly, nonatomic) NSUInteger numberOfGlyphs; // - (CGGlyph)CGGlyphAtIndex:(NSUInteger)glyphIndex isValidIndex:(nullable BOOL *)isValidIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGGlyph)CGGlyphAtIndex:(NSUInteger)glyphIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (BOOL)isValidGlyphIndex:(NSUInteger)glyphIndex __attribute__((availability(macosx,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,introduced=2.0))) __attribute__((availability(tvos,introduced=9.0))); // - (NSGlyphProperty)propertyForGlyphAtIndex:(NSUInteger)glyphIndex __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=7.0))); // - (NSUInteger)characterIndexForGlyphAtIndex:(NSUInteger)glyphIndex; // - (NSUInteger)glyphIndexForCharacterAtIndex:(NSUInteger)charIndex; // - (NSUInteger)getGlyphsInRange:(NSRange)glyphRange glyphs:(nullable CGGlyph *)glyphBuffer properties:(nullable NSGlyphProperty *)props characterIndexes:(nullable NSUInteger *)charIndexBuffer bidiLevels:(nullable unsigned char *)bidiLevelBuffer __attribute__((availability(macos,introduced=10.5))) __attribute__((availability(ios,introduced=7.0))); // - (void)setTextContainer:(NSTextContainer *)container forGlyphRange:(NSRange)glyphRange; // - (void)setLineFragmentRect:(CGRect)fragmentRect forGlyphRange:(NSRange)glyphRange usedRect:(CGRect)usedRect; // - (void)setExtraLineFragmentRect:(CGRect)fragmentRect usedRect:(CGRect)usedRect textContainer:(NSTextContainer *)container; // - (void)setLocation:(CGPoint)location forStartOfGlyphRange:(NSRange)glyphRange; // - (void)setNotShownAttribute:(BOOL)flag forGlyphAtIndex:(NSUInteger)glyphIndex; // - (void)setDrawsOutsideLineFragment:(BOOL)flag forGlyphAtIndex:(NSUInteger)glyphIndex; // - (void)setAttachmentSize:(CGSize)attachmentSize forGlyphRange:(NSRange)glyphRange; // - (void)getFirstUnlaidCharacterIndex:(nullable NSUInteger *)charIndex glyphIndex:(nullable NSUInteger *)glyphIndex; // - (NSUInteger)firstUnlaidCharacterIndex; // - (NSUInteger)firstUnlaidGlyphIndex; // - (nullable NSTextContainer *)textContainerForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange; // - (nullable NSTextContainer *)textContainerForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange withoutAdditionalLayout:(BOOL)flag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // - (CGRect)usedRectForTextContainer:(NSTextContainer *)container; // - (CGRect)lineFragmentRectForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange; // - (CGRect)lineFragmentRectForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange withoutAdditionalLayout:(BOOL)flag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // - (CGRect)lineFragmentUsedRectForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange; // - (CGRect)lineFragmentUsedRectForGlyphAtIndex:(NSUInteger)glyphIndex effectiveRange:(nullable NSRangePointer)effectiveGlyphRange withoutAdditionalLayout:(BOOL)flag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // @property (readonly, nonatomic) CGRect extraLineFragmentRect; // @property (readonly, nonatomic) CGRect extraLineFragmentUsedRect; // @property (nullable, readonly, nonatomic) NSTextContainer *extraLineFragmentTextContainer; // - (CGPoint)locationForGlyphAtIndex:(NSUInteger)glyphIndex; // - (BOOL)notShownAttributeForGlyphAtIndex:(NSUInteger)glyphIndex; // - (BOOL)drawsOutsideLineFragmentForGlyphAtIndex:(NSUInteger)glyphIndex; // - (CGSize)attachmentSizeForGlyphAtIndex:(NSUInteger)glyphIndex; // - (NSRange)truncatedGlyphRangeInLineFragmentForGlyphAtIndex:(NSUInteger)glyphIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (NSRange)glyphRangeForCharacterRange:(NSRange)charRange actualCharacterRange:(nullable NSRangePointer)actualCharRange; // - (NSRange)characterRangeForGlyphRange:(NSRange)glyphRange actualGlyphRange:(nullable NSRangePointer)actualGlyphRange; // - (NSRange)glyphRangeForTextContainer:(NSTextContainer *)container; // - (NSRange)rangeOfNominallySpacedGlyphsContainingIndex:(NSUInteger)glyphIndex; // - (CGRect)boundingRectForGlyphRange:(NSRange)glyphRange inTextContainer:(NSTextContainer *)container; // - (NSRange)glyphRangeForBoundingRect:(CGRect)bounds inTextContainer:(NSTextContainer *)container; // - (NSRange)glyphRangeForBoundingRectWithoutAdditionalLayout:(CGRect)bounds inTextContainer:(NSTextContainer *)container; // - (NSUInteger)glyphIndexForPoint:(CGPoint)point inTextContainer:(NSTextContainer *)container fractionOfDistanceThroughGlyph:(nullable CGFloat *)partialFraction; // - (NSUInteger)glyphIndexForPoint:(CGPoint)point inTextContainer:(NSTextContainer *)container; // - (CGFloat)fractionOfDistanceThroughGlyphForPoint:(CGPoint)point inTextContainer:(NSTextContainer *)container; // - (NSUInteger)characterIndexForPoint:(CGPoint)point inTextContainer:(NSTextContainer *)container fractionOfDistanceBetweenInsertionPoints:(nullable CGFloat *)partialFraction; // - (NSUInteger)getLineFragmentInsertionPointsForCharacterAtIndex:(NSUInteger)charIndex alternatePositions:(BOOL)aFlag inDisplayOrder:(BOOL)dFlag positions:(nullable CGFloat *)positions characterIndexes:(nullable NSUInteger *)charIndexes; // - (void)enumerateLineFragmentsForGlyphRange:(NSRange)glyphRange usingBlock:(void (^)(CGRect rect, CGRect usedRect, NSTextContainer *textContainer, NSRange glyphRange, BOOL *stop))block __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (void)enumerateEnclosingRectsForGlyphRange:(NSRange)glyphRange withinSelectedGlyphRange:(NSRange)selectedRange inTextContainer:(NSTextContainer *)textContainer usingBlock:(void (^)(CGRect rect, BOOL *stop))block __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (void)drawBackgroundForGlyphRange:(NSRange)glyphsToShow atPoint:(CGPoint)origin; // - (void)drawGlyphsForGlyphRange:(NSRange)glyphsToShow atPoint:(CGPoint)origin; // - (void)showCGGlyphs:(const CGGlyph *)glyphs positions:(const CGPoint *)positions count:(NSInteger)glyphCount font:(UIFont *)font textMatrix:(CGAffineTransform)textMatrix attributes:(NSDictionary<NSAttributedStringKey, id> *)attributes inContext:(CGContextRef)CGContext __attribute__((availability(macos,introduced=10.15))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,introduced=6.0))) __attribute__((availability(tvos,introduced=13.0))); // - (void)fillBackgroundRectArray:(const CGRect *)rectArray count:(NSUInteger)rectCount forCharacterRange:(NSRange)charRange color:(UIColor *)color __attribute__((availability(macos,introduced=10.6))) __attribute__((availability(ios,introduced=7.0))); // - (void)drawUnderlineForGlyphRange:(NSRange)glyphRange underlineType:(NSUnderlineStyle)underlineVal baselineOffset:(CGFloat)baselineOffset lineFragmentRect:(CGRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(CGPoint)containerOrigin; // - (void)underlineGlyphRange:(NSRange)glyphRange underlineType:(NSUnderlineStyle)underlineVal lineFragmentRect:(CGRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(CGPoint)containerOrigin; // - (void)drawStrikethroughForGlyphRange:(NSRange)glyphRange strikethroughType:(NSUnderlineStyle)strikethroughVal baselineOffset:(CGFloat)baselineOffset lineFragmentRect:(CGRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(CGPoint)containerOrigin; // - (void)strikethroughGlyphRange:(NSRange)glyphRange strikethroughType:(NSUnderlineStyle)strikethroughVal lineFragmentRect:(CGRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(CGPoint)containerOrigin; /* @end */ // @protocol NSLayoutManagerDelegate <NSObject> /* @optional */ // - (NSUInteger)layoutManager:(NSLayoutManager *)layoutManager shouldGenerateGlyphs:(const CGGlyph *)glyphs properties:(const NSGlyphProperty *)props characterIndexes:(const NSUInteger *)charIndexes font:(UIFont *)aFont forGlyphRange:(NSRange)glyphRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGFloat)layoutManager:(NSLayoutManager *)layoutManager lineSpacingAfterGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(CGRect)rect __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGFloat)layoutManager:(NSLayoutManager *)layoutManager paragraphSpacingBeforeGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(CGRect)rect __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGFloat)layoutManager:(NSLayoutManager *)layoutManager paragraphSpacingAfterGlyphAtIndex:(NSUInteger)glyphIndex withProposedLineFragmentRect:(CGRect)rect __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (NSControlCharacterAction)layoutManager:(NSLayoutManager *)layoutManager shouldUseAction:(NSControlCharacterAction)action forControlCharacterAtIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (BOOL)layoutManager:(NSLayoutManager *)layoutManager shouldBreakLineByWordBeforeCharacterAtIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (BOOL)layoutManager:(NSLayoutManager *)layoutManager shouldBreakLineByHyphenatingBeforeCharacterAtIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGRect)layoutManager:(NSLayoutManager *)layoutManager boundingBoxForControlGlyphAtIndex:(NSUInteger)glyphIndex forTextContainer:(NSTextContainer *)textContainer proposedLineFragment:(CGRect)proposedRect glyphPosition:(CGPoint)glyphPosition characterIndex:(NSUInteger)charIndex __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (BOOL)layoutManager:(NSLayoutManager *)layoutManager shouldSetLineFragmentRect:(inout CGRect *)lineFragmentRect lineFragmentUsedRect:(inout CGRect *)lineFragmentUsedRect baselineOffset:(inout CGFloat *)baselineOffset inTextContainer:(NSTextContainer *)textContainer forGlyphRange:(NSRange)glyphRange __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=9.0))); // - (void)layoutManagerDidInvalidateLayout:(NSLayoutManager *)sender __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (void)layoutManager:(NSLayoutManager *)layoutManager didCompleteLayoutForTextContainer:(nullable NSTextContainer *)textContainer atEnd:(BOOL)layoutFinishedFlag __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))); // - (void)layoutManager:(NSLayoutManager *)layoutManager textContainer:(NSTextContainer *)textContainer didChangeGeometryFromSize:(CGSize)oldSize __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); /* @end */ enum { NSControlCharacterZeroAdvancementAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionZeroAdvancement instead"))) = NSControlCharacterActionZeroAdvancement, NSControlCharacterWhitespaceAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionWhitespace instead"))) = NSControlCharacterActionWhitespace, NSControlCharacterHorizontalTabAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionHorizontalTab instead"))) = NSControlCharacterActionHorizontalTab, NSControlCharacterLineBreakAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionLineBreak instead"))) = NSControlCharacterActionLineBreak, NSControlCharacterParagraphBreakAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionParagraphBreak instead"))) = NSControlCharacterActionParagraphBreak, NSControlCharacterContainerBreakAction __attribute__((availability(ios,introduced=7_0,deprecated=9_0,message="" "Use NSControlCharacterActionContainerBreak instead"))) = NSControlCharacterActionContainerBreak }; // @interface NSLayoutManager (NSLayoutManagerDeprecated) // - (CGGlyph)glyphAtIndex:(NSUInteger)glyphIndex isValidIndex:(nullable BOOL *)isValidIndex; // - (CGGlyph)glyphAtIndex:(NSUInteger)glyphIndex; // @property CGFloat hyphenationFactor __attribute__((availability(macos,introduced=10.0,deprecated=10.15,message="Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead."))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,message="Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead."))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,message="Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead."))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,message="Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead."))) __attribute__((availability(macCatalyst,unavailable))); // - (void)showCGGlyphs:(const CGGlyph *)glyphs positions:(const CGPoint *)positions count:(NSUInteger)glyphCount font:(UIFont *)font matrix:(CGAffineTransform)textMatrix attributes:(NSDictionary<NSAttributedStringKey, id> *)attributes inContext:(CGContextRef)graphicsContext __attribute__((availability(macos,introduced=10.7,deprecated=10.15,replacement="showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"))) __attribute__((availability(ios,introduced=7.0,deprecated=13.0,replacement="showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"))) __attribute__((availability(watchos,introduced=2.0,deprecated=6.0,replacement="showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"))) __attribute__((availability(tvos,introduced=9.0,deprecated=13.0,replacement="showCGGlyphs:positions:count:font:textMatrix:attributes:inContext:"))) __attribute__((availability(macCatalyst,unavailable))); /* @end */ #pragma clang assume_nonnull end // @class UIBezierPath; #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_NSTextContainer #define _REWRITER_typedef_NSTextContainer typedef struct objc_object NSTextContainer; typedef struct {} _objc_exc_NSTextContainer; #endif struct NSTextContainer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithSize:(CGSize)size __attribute__((objc_designated_initializer)) __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (instancetype)initWithCoder:(NSCoder *)coder __attribute__((objc_designated_initializer)); // @property (nullable, assign, nonatomic) NSLayoutManager *layoutManager; // - (void)replaceLayoutManager:(NSLayoutManager *)newLayoutManager __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) CGSize size __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (copy, nonatomic) NSArray<UIBezierPath *> *exclusionPaths __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) NSLineBreakMode lineBreakMode __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (nonatomic) CGFloat lineFragmentPadding; // @property (nonatomic) NSUInteger maximumNumberOfLines __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // - (CGRect)lineFragmentRectForProposedRect:(CGRect)proposedRect atIndex:(NSUInteger)characterIndex writingDirection:(NSWritingDirection)baseWritingDirection remainingRect:(nullable CGRect *)remainingRect __attribute__((availability(macos,introduced=10.11))) __attribute__((availability(ios,introduced=7.0))); // @property (getter=isSimpleRectangularTextContainer, readonly, nonatomic) BOOL simpleRectangularTextContainer __attribute__((availability(macos,introduced=10.0))) __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic) BOOL widthTracksTextView; // @property (nonatomic) BOOL heightTracksTextView; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIPreviewInteractionDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPreviewInteraction #define _REWRITER_typedef_UIPreviewInteraction typedef struct objc_object UIPreviewInteraction; typedef struct {} _objc_exc_UIPreviewInteraction; #endif struct UIPreviewInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithView:(UIView *)view __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly, weak) UIView *view; // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, nullable, weak) id <UIPreviewInteractionDelegate> delegate; // - (CGPoint)locationInCoordinateSpace:(nullable id <UICoordinateSpace>)coordinateSpace; // - (void)cancelInteraction; /* @end */ // @protocol UIPreviewInteractionDelegate <NSObject> // - (void)previewInteraction:(UIPreviewInteraction *)previewInteraction didUpdatePreviewTransition:(CGFloat)transitionProgress ended:(BOOL)ended __attribute__((availability(ios,introduced=10_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)previewInteractionDidCancel:(UIPreviewInteraction *)previewInteraction __attribute__((availability(ios,introduced=10_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @optional */ // - (BOOL)previewInteractionShouldBegin:(UIPreviewInteraction *)previewInteraction __attribute__((availability(ios,introduced=10_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // - (void)previewInteraction:(UIPreviewInteraction *)previewInteraction didUpdateCommitTransition:(CGFloat)transitionProgress ended:(BOOL)ended __attribute__((availability(ios,introduced=10_0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPopoverPresentationController; #ifndef _REWRITER_typedef_UIPopoverPresentationController #define _REWRITER_typedef_UIPopoverPresentationController typedef struct objc_object UIPopoverPresentationController; typedef struct {} _objc_exc_UIPopoverPresentationController; #endif __attribute__((availability(tvos,unavailable))) // @protocol UIPopoverPresentationControllerDelegate <UIAdaptivePresentationControllerDelegate> /* @optional */ // - (void)prepareForPopoverPresentation:(UIPopoverPresentationController *)popoverPresentationController; // - (BOOL)popoverPresentationControllerShouldDismissPopover:(UIPopoverPresentationController *)popoverPresentationController __attribute__((availability(ios,introduced=8.0,deprecated=13.0,replacement="presentationControllerShouldDismiss:")));; // - (void)popoverPresentationControllerDidDismissPopover:(UIPopoverPresentationController *)popoverPresentationController __attribute__((availability(ios,introduced=8.0,deprecated=13.0,replacement="presentationControllerDidDismiss:"))); // - (void)popoverPresentationController:(UIPopoverPresentationController *)popoverPresentationController willRepositionPopoverToRect:(inout CGRect *)rect inView:(inout UIView * _Nonnull * _Nonnull)view; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPopoverPresentationController #define _REWRITER_typedef_UIPopoverPresentationController typedef struct objc_object UIPopoverPresentationController; typedef struct {} _objc_exc_UIPopoverPresentationController; #endif struct UIPopoverPresentationController_IMPL { struct UIPresentationController_IMPL UIPresentationController_IVARS; }; // @property (nullable, nonatomic, weak) id <UIPopoverPresentationControllerDelegate> delegate; // @property (nonatomic, assign) UIPopoverArrowDirection permittedArrowDirections; // @property (nullable, nonatomic, strong) UIView *sourceView; // @property (nonatomic, assign) CGRect sourceRect; // @property (nonatomic, assign) BOOL canOverlapSourceViewRect __attribute__((availability(ios,introduced=9.0))); // @property (nullable, nonatomic, strong) UIBarButtonItem *barButtonItem; // @property (nonatomic, readonly) UIPopoverArrowDirection arrowDirection; // @property (nullable, nonatomic, copy) NSArray<UIView *> *passthroughViews; // @property (nullable, nonatomic, copy) UIColor *backgroundColor; // @property (nonatomic, readwrite) UIEdgeInsets popoverLayoutMargins; // @property (nullable, nonatomic, readwrite, strong) Class <UIPopoverBackgroundViewMethods> popoverBackgroundViewClass; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIDynamicBehavior; #ifndef _REWRITER_typedef_UIDynamicBehavior #define _REWRITER_typedef_UIDynamicBehavior typedef struct objc_object UIDynamicBehavior; typedef struct {} _objc_exc_UIDynamicBehavior; #endif // @class UIDynamicAnimator; #ifndef _REWRITER_typedef_UIDynamicAnimator #define _REWRITER_typedef_UIDynamicAnimator typedef struct objc_object UIDynamicAnimator; typedef struct {} _objc_exc_UIDynamicAnimator; #endif // @protocol UIDynamicAnimatorDelegate <NSObject> /* @optional */ // - (void)dynamicAnimatorWillResume:(UIDynamicAnimator *)animator; // - (void)dynamicAnimatorDidPause:(UIDynamicAnimator *)animator; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIDynamicAnimator #define _REWRITER_typedef_UIDynamicAnimator typedef struct objc_object UIDynamicAnimator; typedef struct {} _objc_exc_UIDynamicAnimator; #endif struct UIDynamicAnimator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithReferenceView:(UIView *)view __attribute__((objc_designated_initializer)); // - (void)addBehavior:(UIDynamicBehavior *)behavior; // - (void)removeBehavior:(UIDynamicBehavior *)behavior; // - (void)removeAllBehaviors; // @property (nullable, nonatomic, readonly) UIView *referenceView; // @property (nonatomic, readonly, copy) NSArray<__kindof UIDynamicBehavior*> *behaviors; // - (NSArray<id<UIDynamicItem>> *)itemsInRect:(CGRect)rect; // - (void)updateItemUsingCurrentState:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, getter = isRunning) BOOL running; // @property (nonatomic, readonly) NSTimeInterval elapsedTime; // @property (nullable, nonatomic, weak) id <UIDynamicAnimatorDelegate> delegate; /* @end */ // @interface UIDynamicAnimator (UICollectionViewAdditions) // - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForCellAtIndexPath:(NSIndexPath *)indexPath; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath; // - (nullable UICollectionViewLayoutAttributes *)layoutAttributesForDecorationViewOfKind:(NSString *)decorationViewKind atIndexPath:(NSIndexPath *)indexPath; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPushBehaviorMode; enum { UIPushBehaviorModeContinuous, UIPushBehaviorModeInstantaneous } __attribute__((availability(ios,introduced=7.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIPushBehavior #define _REWRITER_typedef_UIPushBehavior typedef struct objc_object UIPushBehavior; typedef struct {} _objc_exc_UIPushBehavior; #endif struct UIPushBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items mode:(UIPushBehaviorMode)mode __attribute__((objc_designated_initializer)); // - (void)addItem:(id <UIDynamicItem>)item; // - (void)removeItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // - (UIOffset)targetOffsetFromCenterForItem:(id <UIDynamicItem>)item; // - (void)setTargetOffsetFromCenter:(UIOffset)o forItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly) UIPushBehaviorMode mode; // @property (nonatomic, readwrite) BOOL active; // @property (readwrite, nonatomic) CGFloat angle; // @property (readwrite, nonatomic) CGFloat magnitude; // @property (readwrite, nonatomic) CGVector pushDirection; // - (void)setAngle:(CGFloat)angle magnitude:(CGFloat)magnitude; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UISnapBehavior #define _REWRITER_typedef_UISnapBehavior typedef struct objc_object UISnapBehavior; typedef struct {} _objc_exc_UISnapBehavior; #endif struct UISnapBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItem:(id <UIDynamicItem>)item snapToPoint:(CGPoint)point __attribute__((objc_designated_initializer)); // @property (nonatomic, assign) CGPoint snapPoint __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, assign) CGFloat damping; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIDynamicItemBehavior #define _REWRITER_typedef_UIDynamicItemBehavior typedef struct objc_object UIDynamicItemBehavior; typedef struct {} _objc_exc_UIDynamicItemBehavior; #endif struct UIDynamicItemBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items __attribute__((objc_designated_initializer)); // - (void)addItem:(id <UIDynamicItem>)item; // - (void)removeItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // @property (readwrite, nonatomic) CGFloat elasticity; // @property (readwrite, nonatomic) CGFloat friction; // @property (readwrite, nonatomic) CGFloat density; // @property (readwrite, nonatomic) CGFloat resistance; // @property (readwrite, nonatomic) CGFloat angularResistance; // @property (readwrite, nonatomic) CGFloat charge __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, getter = isAnchored) BOOL anchored __attribute__((availability(ios,introduced=9.0))); // @property (readwrite, nonatomic) BOOL allowsRotation; // - (void)addLinearVelocity:(CGPoint)velocity forItem:(id <UIDynamicItem>)item; // - (CGPoint)linearVelocityForItem:(id <UIDynamicItem>)item; // - (void)addAngularVelocity:(CGFloat)velocity forItem:(id <UIDynamicItem>)item; // - (CGFloat)angularVelocityForItem:(id <UIDynamicItem>)item; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIRegion; #ifndef _REWRITER_typedef_UIRegion #define _REWRITER_typedef_UIRegion typedef struct objc_object UIRegion; typedef struct {} _objc_exc_UIRegion; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIFieldBehavior #define _REWRITER_typedef_UIFieldBehavior typedef struct objc_object UIFieldBehavior; typedef struct {} _objc_exc_UIFieldBehavior; #endif struct UIFieldBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (void)addItem:(id <UIDynamicItem>)item; // - (void)removeItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // @property (nonatomic, assign) CGPoint position; // @property (nonatomic, strong) UIRegion *region; // @property (nonatomic, assign) CGFloat strength; // @property (nonatomic, assign) CGFloat falloff; // @property (nonatomic, assign) CGFloat minimumRadius; // @property (nonatomic, assign) CGVector direction; // @property (nonatomic, assign) CGFloat smoothness; // @property (nonatomic, assign) CGFloat animationSpeed; // + (instancetype)dragField; // + (instancetype)vortexField; // + (instancetype)radialGravityFieldWithPosition:(CGPoint)position; // + (instancetype)linearGravityFieldWithVector:(CGVector)direction; // + (instancetype)velocityFieldWithVector:(CGVector)direction; // + (instancetype)noiseFieldWithSmoothness:(CGFloat)smoothness animationSpeed:(CGFloat)speed; // + (instancetype)turbulenceFieldWithSmoothness:(CGFloat)smoothness animationSpeed:(CGFloat)speed; // + (instancetype)springField; // + (instancetype)electricField; // + (instancetype)magneticField; // + (instancetype)fieldWithEvaluationBlock:(CGVector(^)(UIFieldBehavior *field, CGPoint position, CGVector velocity, CGFloat mass, CGFloat charge, NSTimeInterval deltaTime))block; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIGravityBehavior #define _REWRITER_typedef_UIGravityBehavior typedef struct objc_object UIGravityBehavior; typedef struct {} _objc_exc_UIGravityBehavior; #endif struct UIGravityBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items __attribute__((objc_designated_initializer)); // - (void)addItem:(id <UIDynamicItem>)item; // - (void)removeItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // @property (readwrite, nonatomic) CGVector gravityDirection; // @property (readwrite, nonatomic) CGFloat angle; // @property (readwrite, nonatomic) CGFloat magnitude; // - (void)setAngle:(CGFloat)angle magnitude:(CGFloat)magnitude; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIAttachmentBehaviorType; enum { UIAttachmentBehaviorTypeItems, UIAttachmentBehaviorTypeAnchor } __attribute__((availability(ios,introduced=7.0))); typedef struct { CGFloat minimum; CGFloat maximum; } UIFloatRange; extern "C" __attribute__((visibility ("default"))) const UIFloatRange UIFloatRangeZero __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) const UIFloatRange UIFloatRangeInfinite __attribute__((availability(ios,introduced=9.0))); extern "C" __attribute__((visibility ("default"))) BOOL UIFloatRangeIsInfinite(UIFloatRange range) __attribute__((availability(ios,introduced=9.0))); static inline UIFloatRange UIFloatRangeMake(CGFloat minimum, CGFloat maximum) { return (UIFloatRange){minimum, maximum}; } static inline BOOL UIFloatRangeIsEqualToRange(UIFloatRange range, UIFloatRange otherRange) { return range.minimum == otherRange.minimum && range.maximum == otherRange.maximum; } extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UIAttachmentBehavior #define _REWRITER_typedef_UIAttachmentBehavior typedef struct objc_object UIAttachmentBehavior; typedef struct {} _objc_exc_UIAttachmentBehavior; #endif struct UIAttachmentBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItem:(id <UIDynamicItem>)item attachedToAnchor:(CGPoint)point; // - (instancetype)initWithItem:(id <UIDynamicItem>)item offsetFromCenter:(UIOffset)offset attachedToAnchor:(CGPoint)point __attribute__((objc_designated_initializer)); // - (instancetype)initWithItem:(id <UIDynamicItem>)item1 attachedToItem:(id <UIDynamicItem>)item2; // - (instancetype)initWithItem:(id <UIDynamicItem>)item1 offsetFromCenter:(UIOffset)offset1 attachedToItem:(id <UIDynamicItem>)item2 offsetFromCenter:(UIOffset)offset2 __attribute__((objc_designated_initializer)); // + (instancetype)slidingAttachmentWithItem:(id <UIDynamicItem>)item1 attachedToItem:(id <UIDynamicItem>)item2 attachmentAnchor:(CGPoint)point axisOfTranslation:(CGVector)axis __attribute__((availability(ios,introduced=9.0))); // + (instancetype)slidingAttachmentWithItem:(id <UIDynamicItem>)item attachmentAnchor:(CGPoint)point axisOfTranslation:(CGVector)axis __attribute__((availability(ios,introduced=9.0))); // + (instancetype)limitAttachmentWithItem:(id <UIDynamicItem>)item1 offsetFromCenter:(UIOffset)offset1 attachedToItem:(id <UIDynamicItem>)item2 offsetFromCenter:(UIOffset)offset2 __attribute__((availability(ios,introduced=9.0))); // + (instancetype)fixedAttachmentWithItem:(id <UIDynamicItem>)item1 attachedToItem:(id <UIDynamicItem>)item2 attachmentAnchor:(CGPoint)point __attribute__((availability(ios,introduced=9.0))); // + (instancetype)pinAttachmentWithItem:(id <UIDynamicItem>)item1 attachedToItem:(id <UIDynamicItem>)item2 attachmentAnchor:(CGPoint)point __attribute__((availability(ios,introduced=9.0))); // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // @property (readonly, nonatomic) UIAttachmentBehaviorType attachedBehaviorType; // @property (readwrite, nonatomic) CGPoint anchorPoint; // @property (readwrite, nonatomic) CGFloat length; // @property (readwrite, nonatomic) CGFloat damping; // @property (readwrite, nonatomic) CGFloat frequency; // @property (readwrite, nonatomic) CGFloat frictionTorque __attribute__((availability(ios,introduced=9.0))); // @property (readwrite, nonatomic) UIFloatRange attachmentRange __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UICollisionBehavior; #ifndef _REWRITER_typedef_UICollisionBehavior #define _REWRITER_typedef_UICollisionBehavior typedef struct objc_object UICollisionBehavior; typedef struct {} _objc_exc_UICollisionBehavior; #endif typedef NSUInteger UICollisionBehaviorMode; enum { UICollisionBehaviorModeItems = 1 << 0, UICollisionBehaviorModeBoundaries = 1 << 1, UICollisionBehaviorModeEverything = (9223372036854775807L *2UL+1UL) } __attribute__((availability(ios,introduced=7.0))); // @protocol UICollisionBehaviorDelegate <NSObject> /* @optional */ // - (void)collisionBehavior:(UICollisionBehavior *)behavior beganContactForItem:(id <UIDynamicItem>)item1 withItem:(id <UIDynamicItem>)item2 atPoint:(CGPoint)p; // - (void)collisionBehavior:(UICollisionBehavior *)behavior endedContactForItem:(id <UIDynamicItem>)item1 withItem:(id <UIDynamicItem>)item2; // - (void)collisionBehavior:(UICollisionBehavior*)behavior beganContactForItem:(id <UIDynamicItem>)item withBoundaryIdentifier:(nullable id <NSCopying>)identifier atPoint:(CGPoint)p; // - (void)collisionBehavior:(UICollisionBehavior*)behavior endedContactForItem:(id <UIDynamicItem>)item withBoundaryIdentifier:(nullable id <NSCopying>)identifier; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=7.0))) #ifndef _REWRITER_typedef_UICollisionBehavior #define _REWRITER_typedef_UICollisionBehavior typedef struct objc_object UICollisionBehavior; typedef struct {} _objc_exc_UICollisionBehavior; #endif struct UICollisionBehavior_IMPL { struct UIDynamicBehavior_IMPL UIDynamicBehavior_IVARS; }; // - (instancetype)initWithItems:(NSArray<id <UIDynamicItem>> *)items __attribute__((objc_designated_initializer)); // - (void)addItem:(id <UIDynamicItem>)item; // - (void)removeItem:(id <UIDynamicItem>)item; // @property (nonatomic, readonly, copy) NSArray<id <UIDynamicItem>> *items; // @property (nonatomic, readwrite) UICollisionBehaviorMode collisionMode; // @property (nonatomic, readwrite) BOOL translatesReferenceBoundsIntoBoundary; // - (void)setTranslatesReferenceBoundsIntoBoundaryWithInsets:(UIEdgeInsets)insets; // - (void)addBoundaryWithIdentifier:(id <NSCopying>)identifier forPath:(UIBezierPath *)bezierPath; // - (void)addBoundaryWithIdentifier:(id <NSCopying>)identifier fromPoint:(CGPoint)p1 toPoint:(CGPoint)p2; // - (nullable UIBezierPath *)boundaryWithIdentifier:(id <NSCopying>)identifier; // - (void)removeBoundaryWithIdentifier:(id <NSCopying>)identifier; // @property (nullable, nonatomic, readonly, copy) NSArray<id <NSCopying>> *boundaryIdentifiers; // - (void)removeAllBoundaries; // @property (nullable, nonatomic, weak, readwrite) id <UICollisionBehaviorDelegate> collisionDelegate; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=9.0))) #ifndef _REWRITER_typedef_UIRegion #define _REWRITER_typedef_UIRegion typedef struct objc_object UIRegion; typedef struct {} _objc_exc_UIRegion; #endif struct UIRegion_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) UIRegion *infiniteRegion; // - (instancetype)initWithRadius:(CGFloat)radius; // - (instancetype)initWithSize:(CGSize)size; // - (instancetype)inverseRegion; // - (instancetype)regionByUnionWithRegion:(UIRegion *)region; // - (instancetype)regionByDifferenceFromRegion:(UIRegion *)region; // - (instancetype)regionByIntersectionWithRegion:(UIRegion *)region; // - (BOOL)containsPoint:(CGPoint)point; /* @end */ #pragma clang assume_nonnull end // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UITextDragPreviewRenderer #define _REWRITER_typedef_UITextDragPreviewRenderer typedef struct objc_object UITextDragPreviewRenderer; typedef struct {} _objc_exc_UITextDragPreviewRenderer; #endif struct UITextDragPreviewRenderer_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)initWithLayoutManager:(NSLayoutManager*)layoutManager range:(NSRange)range; // - (instancetype)initWithLayoutManager:(NSLayoutManager*)layoutManager range:(NSRange)range unifyRects:(BOOL)unifyRects __attribute__((objc_designated_initializer)); // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, readonly) NSLayoutManager *layoutManager; // @property (nonatomic, readonly) UIImage *image; // @property (nonatomic, readonly) CGRect firstLineRect; // @property (nonatomic, readonly) CGRect bodyRect; // @property (nonatomic, readonly) CGRect lastLineRect; // - (void)adjustFirstLineRect:(inout CGRect*)firstLineRect bodyRect:(inout CGRect*)bodyRect lastLineRect:(inout CGRect*)lastLineRect textOrigin:(CGPoint)origin; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @interface UIDragPreview (URLPreviews) // + (instancetype)previewForURL:(NSURL *)url __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (instancetype)previewForURL:(NSURL *)url title:(NSString * _Nullable)title __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ // @interface UITargetedDragPreview (URLPreviews) // + (instancetype)previewForURL:(NSURL *)url target:(UIDragPreviewTarget*)target __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // + (instancetype)previewForURL:(NSURL *)url title:(NSString * _Nullable)title target:(UIDragPreviewTarget*)target __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) #ifndef _REWRITER_typedef_UIViewPropertyAnimator #define _REWRITER_typedef_UIViewPropertyAnimator typedef struct objc_object UIViewPropertyAnimator; typedef struct {} _objc_exc_UIViewPropertyAnimator; #endif struct UIViewPropertyAnimator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nullable, nonatomic, copy, readonly) id <UITimingCurveProvider> timingParameters; // @property(nonatomic, readonly) NSTimeInterval duration; // @property(nonatomic, readonly) NSTimeInterval delay; // @property(nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // @property(nonatomic, getter=isManualHitTestingEnabled) BOOL manualHitTestingEnabled; // @property(nonatomic, getter=isInterruptible) BOOL interruptible; // @property(nonatomic) BOOL scrubsLinearly __attribute__((availability(ios,introduced=11.0))); // @property(nonatomic) BOOL pausesOnCompletion __attribute__((availability(ios,introduced=11.0))); // - (instancetype)initWithDuration:(NSTimeInterval)duration timingParameters:(id <UITimingCurveProvider>)parameters __attribute__((objc_designated_initializer)); // - (instancetype)initWithDuration:(NSTimeInterval)duration curve:(UIViewAnimationCurve)curve animations:(void (^ _Nullable)(void))animations; // - (instancetype)initWithDuration:(NSTimeInterval)duration controlPoint1:(CGPoint)point1 controlPoint2:(CGPoint)point2 animations:(void (^ _Nullable)(void))animations; // - (instancetype)initWithDuration:(NSTimeInterval)duration dampingRatio:(CGFloat)ratio animations:(void (^ _Nullable)(void))animations; #if 0 + (instancetype)runningPropertyAnimatorWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^ _Nullable)(UIViewAnimatingPosition finalPosition))completion; #endif // - (void)addAnimations:(void (^)(void))animation delayFactor:(CGFloat)delayFactor; // - (void)addAnimations:(void (^)(void))animation; // - (void)addCompletion:(void (^)(UIViewAnimatingPosition finalPosition))completion; // - (void)continueAnimationWithTimingParameters:(nullable id <UITimingCurveProvider>)parameters durationFactor:(CGFloat)durationFactor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIFeedbackGenerator #define _REWRITER_typedef_UIFeedbackGenerator typedef struct objc_object UIFeedbackGenerator; typedef struct {} _objc_exc_UIFeedbackGenerator; #endif struct UIFeedbackGenerator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (void)prepare; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UISelectionFeedbackGenerator #define _REWRITER_typedef_UISelectionFeedbackGenerator typedef struct objc_object UISelectionFeedbackGenerator; typedef struct {} _objc_exc_UISelectionFeedbackGenerator; #endif struct UISelectionFeedbackGenerator_IMPL { struct UIFeedbackGenerator_IMPL UIFeedbackGenerator_IVARS; }; // - (void)selectionChanged; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIImpactFeedbackStyle; enum { UIImpactFeedbackStyleLight, UIImpactFeedbackStyleMedium, UIImpactFeedbackStyleHeavy, UIImpactFeedbackStyleSoft __attribute__((availability(ios,introduced=13.0))), UIImpactFeedbackStyleRigid __attribute__((availability(ios,introduced=13.0))) }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIImpactFeedbackGenerator #define _REWRITER_typedef_UIImpactFeedbackGenerator typedef struct objc_object UIImpactFeedbackGenerator; typedef struct {} _objc_exc_UIImpactFeedbackGenerator; #endif struct UIImpactFeedbackGenerator_IMPL { struct UIFeedbackGenerator_IMPL UIFeedbackGenerator_IVARS; }; // - (instancetype)initWithStyle:(UIImpactFeedbackStyle)style; // - (void)impactOccurred; // - (void)impactOccurredWithIntensity:(CGFloat)intensity __attribute__((availability(ios,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UINotificationFeedbackType; enum { UINotificationFeedbackTypeSuccess, UINotificationFeedbackTypeWarning, UINotificationFeedbackTypeError }; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UINotificationFeedbackGenerator #define _REWRITER_typedef_UINotificationFeedbackGenerator typedef struct objc_object UINotificationFeedbackGenerator; typedef struct {} _objc_exc_UINotificationFeedbackGenerator; #endif struct UINotificationFeedbackGenerator_IMPL { struct UIFeedbackGenerator_IMPL UIFeedbackGenerator_IVARS; }; // - (void)notificationOccurred:(UINotificationFeedbackType)notificationType; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UITextInteraction; #ifndef _REWRITER_typedef_UITextInteraction #define _REWRITER_typedef_UITextInteraction typedef struct objc_object UITextInteraction; typedef struct {} _objc_exc_UITextInteraction; #endif typedef NSInteger UITextInteractionMode; enum { UITextInteractionModeEditable, UITextInteractionModeNonEditable, }; // @protocol UITextInteractionDelegate <NSObject> /* @optional */ // - (BOOL)interactionShouldBegin:(UITextInteraction *)interaction atPoint:(CGPoint)point; // - (void)interactionWillBegin:(UITextInteraction *)interaction; // - (void)interactionDidEnd:(UITextInteraction *)interaction; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UITextInteraction #define _REWRITER_typedef_UITextInteraction typedef struct objc_object UITextInteraction; typedef struct {} _objc_exc_UITextInteraction; #endif struct UITextInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, weak) id <UITextInteractionDelegate> delegate; // @property (nonatomic, weak) UIResponder <UITextInput> *textInput; // @property (nonatomic, readonly) UITextInteractionMode textInteractionMode; // @property (nonatomic, readonly) NSArray <UIGestureRecognizer *> *gesturesForFailureRequirements; // + (instancetype)textInteractionForMode:(UITextInteractionMode)mode; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIPressesEvent; #ifndef _REWRITER_typedef_UIPressesEvent #define _REWRITER_typedef_UIPressesEvent typedef struct objc_object UIPressesEvent; typedef struct {} _objc_exc_UIPressesEvent; #endif // @class UIPress; #ifndef _REWRITER_typedef_UIPress #define _REWRITER_typedef_UIPress typedef struct objc_object UIPress; typedef struct {} _objc_exc_UIPress; #endif // @interface UIGestureRecognizer (UIGestureRecognizerProtected) // @property(nonatomic,readwrite) UIGestureRecognizerState state; // - (void)ignoreTouch:(UITouch*)touch forEvent:(UIEvent*)event; // - (void)ignorePress:(UIPress *)button forEvent:(UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)reset; // - (BOOL)canPreventGestureRecognizer:(UIGestureRecognizer *)preventedGestureRecognizer; // - (BOOL)canBePreventedByGestureRecognizer:(UIGestureRecognizer *)preventingGestureRecognizer; // - (BOOL)shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0))); // - (BOOL)shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer __attribute__((availability(ios,introduced=7.0))); // - (BOOL)shouldReceiveEvent:(UIEvent *)event __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(tvos,introduced=13.4))) __attribute__((availability(watchos,unavailable))); // - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; // - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; // - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; // - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event; // - (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches __attribute__((availability(ios,introduced=9.1))); // - (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); // - (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event __attribute__((availability(ios,introduced=9.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef void (*UIGraphicsDrawingActions)(__kindof UIGraphicsRendererContext *rendererContext) __attribute__((availability(ios,introduced=10.0))); // @interface UIGraphicsRenderer (UIGraphicsRendererProtected) // + (Class)rendererContextClass __attribute__((availability(ios,introduced=10.0))); // + (nullable CGContextRef)contextWithFormat:(UIGraphicsRendererFormat *)format __attribute__((cf_returns_retained)) __attribute__((availability(ios,introduced=10.0))); // + (void)prepareCGContext:(CGContextRef)context withRendererContext:(UIGraphicsRendererContext *)rendererContext __attribute__((availability(ios,introduced=10.0))); // - (BOOL)runDrawingActions:(__attribute__((noescape)) UIGraphicsDrawingActions)drawingActions completionActions:(nullable __attribute__((noescape)) UIGraphicsDrawingActions)completionActions error:(NSError **)error __attribute__((availability(ios,introduced=10.0))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin typedef NSInteger UIPencilPreferredAction; enum { UIPencilPreferredActionIgnore = 0, UIPencilPreferredActionSwitchEraser, UIPencilPreferredActionSwitchPrevious, UIPencilPreferredActionShowColorPalette, } __attribute__((availability(ios,introduced=12.1))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); // @protocol UIPencilInteractionDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=12.1))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPencilInteraction #define _REWRITER_typedef_UIPencilInteraction typedef struct objc_object UIPencilInteraction; typedef struct {} _objc_exc_UIPencilInteraction; #endif struct UIPencilInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, nonatomic, readonly) UIPencilPreferredAction preferredTapAction; @property (class, nonatomic, readonly) BOOL prefersPencilOnlyDrawing; // @property (nonatomic, weak, nullable) id <UIPencilInteractionDelegate> delegate; // @property (nonatomic, getter=isEnabled) BOOL enabled; /* @end */ __attribute__((availability(ios,introduced=12.1))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIPencilInteractionDelegate <NSObject> /* @optional */ // - (void)pencilInteractionDidTap:(UIPencilInteraction *)interaction; /* @end */ #pragma clang assume_nonnull end // @class UIScene; #ifndef _REWRITER_typedef_UIScene #define _REWRITER_typedef_UIScene typedef struct objc_object UIScene; typedef struct {} _objc_exc_UIScene; #endif #ifndef _REWRITER_typedef_UIOpenURLContext #define _REWRITER_typedef_UIOpenURLContext typedef struct objc_object UIOpenURLContext; typedef struct {} _objc_exc_UIOpenURLContext; #endif #ifndef _REWRITER_typedef_UNNotificationResponse #define _REWRITER_typedef_UNNotificationResponse typedef struct objc_object UNNotificationResponse; typedef struct {} _objc_exc_UNNotificationResponse; #endif #ifndef _REWRITER_typedef_UIApplicationShortcutItem #define _REWRITER_typedef_UIApplicationShortcutItem typedef struct objc_object UIApplicationShortcutItem; typedef struct {} _objc_exc_UIApplicationShortcutItem; #endif #ifndef _REWRITER_typedef_CKShareMetadata #define _REWRITER_typedef_CKShareMetadata typedef struct objc_object CKShareMetadata; typedef struct {} _objc_exc_CKShareMetadata; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneConnectionOptions #define _REWRITER_typedef_UISceneConnectionOptions typedef struct objc_object UISceneConnectionOptions; typedef struct {} _objc_exc_UISceneConnectionOptions; #endif struct UISceneConnectionOptions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, readonly, copy) NSSet<UIOpenURLContext *> *URLContexts; // @property (nullable, nonatomic, readonly) NSString *sourceApplication; // @property (nullable, nonatomic, readonly) NSString *handoffUserActivityType; // @property (nonatomic, readonly, copy) NSSet<NSUserActivity *> *userActivities; // @property (nullable, nonatomic, readonly) UNNotificationResponse *notificationResponse __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, readonly) UIApplicationShortcutItem *shortcutItem __attribute__((availability(tvos,unavailable))); // @property (nullable, nonatomic, readonly) CKShareMetadata *cloudKitShareMetadata; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneOpenURLOptions #define _REWRITER_typedef_UISceneOpenURLOptions typedef struct objc_object UISceneOpenURLOptions; typedef struct {} _objc_exc_UISceneOpenURLOptions; #endif struct UISceneOpenURLOptions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nullable, nonatomic, readonly) NSString *sourceApplication; // @property (nullable, nonatomic, readonly) id annotation; // @property (nonatomic, readonly) BOOL openInPlace; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneOpenExternalURLOptions #define _REWRITER_typedef_UISceneOpenExternalURLOptions typedef struct objc_object UISceneOpenExternalURLOptions; typedef struct {} _objc_exc_UISceneOpenExternalURLOptions; #endif struct UISceneOpenExternalURLOptions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readwrite) BOOL universalLinksOnly; /* @end */ typedef NSInteger UISceneCollectionJoinBehavior; enum { UISceneCollectionJoinBehaviorAutomatic, UISceneCollectionJoinBehaviorPreferred, UISceneCollectionJoinBehaviorDisallowed, UISceneCollectionJoinBehaviorPreferredWithoutActivating, } __attribute__((availability(macCatalyst,introduced=10.14))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneActivationRequestOptions #define _REWRITER_typedef_UISceneActivationRequestOptions typedef struct objc_object UISceneActivationRequestOptions; typedef struct {} _objc_exc_UISceneActivationRequestOptions; #endif struct UISceneActivationRequestOptions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nullable, nonatomic, readwrite, strong) UIScene *requestingScene; // @property (nonatomic, readwrite) UISceneCollectionJoinBehavior collectionJoinBehavior __attribute__((availability(macCatalyst,introduced=10.14))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneDestructionRequestOptions #define _REWRITER_typedef_UISceneDestructionRequestOptions typedef struct objc_object UISceneDestructionRequestOptions; typedef struct {} _objc_exc_UISceneDestructionRequestOptions; #endif struct UISceneDestructionRequestOptions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIScreen; #ifndef _REWRITER_typedef_UIScreen #define _REWRITER_typedef_UIScreen typedef struct objc_object UIScreen; typedef struct {} _objc_exc_UIScreen; #endif #ifndef _REWRITER_typedef_UIWindow #define _REWRITER_typedef_UIWindow typedef struct objc_object UIWindow; typedef struct {} _objc_exc_UIWindow; #endif #ifndef _REWRITER_typedef_UIWindowSceneDelegate #define _REWRITER_typedef_UIWindowSceneDelegate typedef struct objc_object UIWindowSceneDelegate; typedef struct {} _objc_exc_UIWindowSceneDelegate; #endif #ifndef _REWRITER_typedef_UISceneDestructionRequestOptions #define _REWRITER_typedef_UISceneDestructionRequestOptions typedef struct objc_object UISceneDestructionRequestOptions; typedef struct {} _objc_exc_UISceneDestructionRequestOptions; #endif #ifndef _REWRITER_typedef_CKShareMetadata #define _REWRITER_typedef_CKShareMetadata typedef struct objc_object CKShareMetadata; typedef struct {} _objc_exc_CKShareMetadata; #endif #ifndef _REWRITER_typedef_UISceneSizeRestrictions #define _REWRITER_typedef_UISceneSizeRestrictions typedef struct objc_object UISceneSizeRestrictions; typedef struct {} _objc_exc_UISceneSizeRestrictions; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIWindowScene #define _REWRITER_typedef_UIWindowScene typedef struct objc_object UIWindowScene; typedef struct {} _objc_exc_UIWindowScene; #endif struct UIWindowScene_IMPL { struct UIScene_IMPL UIScene_IVARS; }; // @property (nonatomic, readonly) UIScreen *screen; // @property (nonatomic, readonly) UIInterfaceOrientation interfaceOrientation __attribute__((availability(tvos,unavailable))); // @property (nonatomic, readonly) id<UICoordinateSpace> coordinateSpace; // @property (nonatomic, readonly) UITraitCollection *traitCollection; // @property (nonatomic, readonly, nullable) UISceneSizeRestrictions *sizeRestrictions __attribute__((availability(ios,introduced=13.0))); // @property (nonatomic, readonly) NSArray<UIWindow *> *windows; /* @end */ __attribute__((availability(ios,introduced=13.0))) // @protocol UIWindowSceneDelegate <UISceneDelegate> /* @optional */ // @property (nullable, nonatomic, strong) UIWindow *window; // - (void)windowScene:(UIWindowScene *)windowScene didUpdateCoordinateSpace:(id<UICoordinateSpace>)previousCoordinateSpace interfaceOrientation:(UIInterfaceOrientation)previousInterfaceOrientation traitCollection:(UITraitCollection *)previousTraitCollection __attribute__((availability(tvos,unavailable))); // - (void)windowScene:(UIWindowScene *)windowScene performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void(^)(BOOL succeeded))completionHandler __attribute__((availability(tvos,unavailable))); // - (void)windowScene:(UIWindowScene *)windowScene userDidAcceptCloudKitShareWithMetadata:(CKShareMetadata *)cloudKitShareMetadata; /* @end */ extern "C" __attribute__((visibility ("default"))) UISceneSessionRole const UIWindowSceneSessionRoleApplication __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) UISceneSessionRole const UIWindowSceneSessionRoleExternalDisplay __attribute__((availability(ios,introduced=13.0))); typedef NSInteger UIWindowSceneDismissalAnimation; enum { UIWindowSceneDismissalAnimationStandard = 1, UIWindowSceneDismissalAnimationCommit = 2, UIWindowSceneDismissalAnimationDecline = 3 } __attribute__((availability(ios,introduced=13.0))); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIWindowSceneDestructionRequestOptions #define _REWRITER_typedef_UIWindowSceneDestructionRequestOptions typedef struct objc_object UIWindowSceneDestructionRequestOptions; typedef struct {} _objc_exc_UIWindowSceneDestructionRequestOptions; #endif struct UIWindowSceneDestructionRequestOptions_IMPL { struct UISceneDestructionRequestOptions_IMPL UISceneDestructionRequestOptions_IVARS; }; // @property (nonatomic, readwrite) UIWindowSceneDismissalAnimation windowDismissalAnimation; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneSizeRestrictions #define _REWRITER_typedef_UISceneSizeRestrictions typedef struct objc_object UISceneSizeRestrictions; typedef struct {} _objc_exc_UISceneSizeRestrictions; #endif struct UISceneSizeRestrictions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, assign) CGSize minimumSize; // @property (nonatomic, assign) CGSize maximumSize; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIScene; #ifndef _REWRITER_typedef_UIScene #define _REWRITER_typedef_UIScene typedef struct objc_object UIScene; typedef struct {} _objc_exc_UIScene; #endif #ifndef _REWRITER_typedef_UIStoryboard #define _REWRITER_typedef_UIStoryboard typedef struct objc_object UIStoryboard; typedef struct {} _objc_exc_UIStoryboard; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneConfiguration #define _REWRITER_typedef_UISceneConfiguration typedef struct objc_object UISceneConfiguration; typedef struct {} _objc_exc_UISceneConfiguration; #endif struct UISceneConfiguration_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)configurationWithName:(nullable NSString *)name sessionRole:(UISceneSessionRole)sessionRole; // - (instancetype)initWithName:(nullable NSString *)name sessionRole:(UISceneSessionRole)sessionRole __attribute__((objc_designated_initializer)); // @property (nonatomic, nullable, readonly) NSString *name; // @property (nonatomic, readonly) UISceneSessionRole role; // @property (nonatomic, nullable) Class sceneClass; // @property (nonatomic, nullable) Class delegateClass; // @property (nonatomic, nullable, strong) UIStoryboard *storyboard; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneSession #define _REWRITER_typedef_UISceneSession typedef struct objc_object UISceneSession; typedef struct {} _objc_exc_UISceneSession; #endif struct UISceneSession_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, readonly, nullable) UIScene *scene; // @property (nonatomic, readonly) UISceneSessionRole role; // @property (nonatomic, readonly, copy) UISceneConfiguration *configuration; // @property (nonatomic, readonly) NSString *persistentIdentifier; // @property (nonatomic, nullable, strong) NSUserActivity *stateRestorationActivity; // @property (nonatomic, nullable, copy) NSDictionary<NSString *, id> *userInfo; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UISceneActivationConditions #define _REWRITER_typedef_UISceneActivationConditions typedef struct objc_object UISceneActivationConditions; typedef struct {} _objc_exc_UISceneActivationConditions; #endif struct UISceneActivationConditions_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((objc_designated_initializer)); // - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder __attribute__((objc_designated_initializer)); // @property(nonatomic, copy) NSPredicate *canActivateForTargetContentIdentifierPredicate; // @property(nonatomic, copy) NSPredicate *prefersToActivateForTargetContentIdentifierPredicate; /* @end */ extern "C" __attribute__((visibility ("default"))) // @interface NSUserActivity (UISceneActivationConditions) // @property (nullable, nonatomic, copy) NSString *targetContentIdentifier __attribute__((availability(ios,introduced=13.0))); /* @end */ #pragma clang assume_nonnull end // @class UISceneOpenURLOptions; #ifndef _REWRITER_typedef_UISceneOpenURLOptions #define _REWRITER_typedef_UISceneOpenURLOptions typedef struct objc_object UISceneOpenURLOptions; typedef struct {} _objc_exc_UISceneOpenURLOptions; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIOpenURLContext #define _REWRITER_typedef_UIOpenURLContext typedef struct objc_object UIOpenURLContext; typedef struct {} _objc_exc_UIOpenURLContext; #endif struct UIOpenURLContext_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // @property (nonatomic, readonly, copy) NSURL *URL; // @property (nonatomic, readonly, strong) UISceneOpenURLOptions *options; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIStatusBarManager #define _REWRITER_typedef_UIStatusBarManager typedef struct objc_object UIStatusBarManager; typedef struct {} _objc_exc_UIStatusBarManager; #endif struct UIStatusBarManager_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, readonly) UIStatusBarStyle statusBarStyle; // @property (nonatomic, readonly, getter=isStatusBarHidden) BOOL statusBarHidden; // @property (nonatomic, readonly) CGRect statusBarFrame; /* @end */ // @interface UIWindowScene (StatusBarManager) // @property (nonatomic, readonly, nullable) UIStatusBarManager *statusBarManager __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIScreenshotServiceDelegate; extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIScreenshotService #define _REWRITER_typedef_UIScreenshotService typedef struct objc_object UIScreenshotService; typedef struct {} _objc_exc_UIScreenshotService; #endif struct UIScreenshotService_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); // @property (nonatomic, weak, nullable) id<UIScreenshotServiceDelegate> delegate; // @property (nonatomic, weak, readonly, nullable) UIWindowScene *windowScene; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) // @interface UIWindowScene (UIScreenshotService) // @property (nonatomic, readonly, nullable) UIScreenshotService *screenshotService; /* @end */ // @protocol UIScreenshotServiceDelegate <NSObject> /* @optional */ // - (void)screenshotService:(UIScreenshotService *)screenshotService generatePDFRepresentationWithCompletion:(void (^)(NSData *_Nullable PDFData, NSInteger indexOfCurrentPage, CGRect rectInCurrentPage))completionHandler; /* @end */ #pragma clang assume_nonnull end extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @interface NSUserActivity (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting> /* @end */ // @class UNNotification; #ifndef _REWRITER_typedef_UNNotification #define _REWRITER_typedef_UNNotification typedef struct objc_object UNNotification; typedef struct {} _objc_exc_UNNotification; #endif #pragma clang assume_nonnull begin extern NSString *const UNNotificationDefaultActionIdentifier __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,unavailable))); extern NSString *const UNNotificationDismissActionIdentifier __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,unavailable))); __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UNNotificationResponse #define _REWRITER_typedef_UNNotificationResponse typedef struct objc_object UNNotificationResponse; typedef struct {} _objc_exc_UNNotificationResponse; #endif struct UNNotificationResponse_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly, copy) UNNotification *notification; // @property (nonatomic, readonly, copy) NSString *actionIdentifier; // - (instancetype)init __attribute__((unavailable)); /* @end */ __attribute__((availability(macos,introduced=10.14))) __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,introduced=3.0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UNTextInputNotificationResponse #define _REWRITER_typedef_UNTextInputNotificationResponse typedef struct objc_object UNTextInputNotificationResponse; typedef struct {} _objc_exc_UNTextInputNotificationResponse; #endif struct UNTextInputNotificationResponse_IMPL { struct UNNotificationResponse_IMPL UNNotificationResponse_IVARS; }; // @property (nonatomic, readonly, copy) NSString *userText; /* @end */ #pragma clang assume_nonnull end // @class UIScene; #ifndef _REWRITER_typedef_UIScene #define _REWRITER_typedef_UIScene typedef struct objc_object UIScene; typedef struct {} _objc_exc_UIScene; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) // @interface UNNotificationResponse (UIKitAdditions) // @property (nullable, nonatomic, readonly) UIScene *targetScene __attribute__((availability(ios,introduced=13_0))); /* @end */ #pragma clang assume_nonnull end // @class UICommand; #ifndef _REWRITER_typedef_UICommand #define _REWRITER_typedef_UICommand typedef struct objc_object UICommand; typedef struct {} _objc_exc_UICommand; #endif // @class UIMenuSystem; #ifndef _REWRITER_typedef_UIMenuSystem #define _REWRITER_typedef_UIMenuSystem typedef struct objc_object UIMenuSystem; typedef struct {} _objc_exc_UIMenuSystem; #endif #pragma clang assume_nonnull begin __attribute__((availability(ios,introduced=13.0))) // @protocol UIMenuBuilder // @property (nonatomic, readonly) UIMenuSystem *system; // - (nullable UIMenu *)menuForIdentifier:(UIMenuIdentifier)identifier __attribute__((swift_name("menu(for:)"))); // - (nullable UIAction *)actionForIdentifier:(UIActionIdentifier)identifier __attribute__((swift_name("action(for:)"))); // - (nullable UICommand *)commandForAction:(SEL)action propertyList:(nullable id)propertyList __attribute__((swift_private)); // - (void)replaceMenuForIdentifier:(UIMenuIdentifier)replacedIdentifier withMenu:(UIMenu *)replacementMenu __attribute__((swift_name("replace(menu:with:)"))); #if 0 - (void)replaceChildrenOfMenuForIdentifier:(UIMenuIdentifier)parentIdentifier fromChildrenBlock:(NSArray<UIMenuElement *> *(__attribute__((noescape)) ^)(NSArray<UIMenuElement *> *))childrenBlock __attribute__((swift_name("replaceChildren(ofMenu:from:)"))); #endif // - (void)insertSiblingMenu:(UIMenu *)siblingMenu beforeMenuForIdentifier:(UIMenuIdentifier)siblingIdentifier __attribute__((swift_name("insertSibling(_:beforeMenu:)"))); // - (void)insertSiblingMenu:(UIMenu *)siblingMenu afterMenuForIdentifier:(UIMenuIdentifier)siblingIdentifier __attribute__((swift_name("insertSibling(_:afterMenu:)"))); // - (void)insertChildMenu:(UIMenu *)childMenu atStartOfMenuForIdentifier:(UIMenuIdentifier)parentIdentifier __attribute__((swift_name("insertChild(_:atStartOfMenu:)"))); // - (void)insertChildMenu:(UIMenu *)childMenu atEndOfMenuForIdentifier:(UIMenuIdentifier)parentIdentifier __attribute__((swift_name("insertChild(_:atEndOfMenu:)"))); // - (void)removeMenuForIdentifier:(UIMenuIdentifier)removedIdentifier __attribute__((swift_name("remove(menu:)"))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) #ifndef _REWRITER_typedef_UIDeferredMenuElement #define _REWRITER_typedef_UIDeferredMenuElement typedef struct objc_object UIDeferredMenuElement; typedef struct {} _objc_exc_UIDeferredMenuElement; #endif struct UIDeferredMenuElement_IMPL { struct UIMenuElement_IMPL UIMenuElement_IVARS; }; // + (instancetype)elementWithProvider:(void(^)(void(^completion)(NSArray<UIMenuElement *> *elements)))elementProvider; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UIMenuSystem #define _REWRITER_typedef_UIMenuSystem typedef struct objc_object UIMenuSystem; typedef struct {} _objc_exc_UIMenuSystem; #endif struct UIMenuSystem_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property (class, nonatomic, readonly) UIMenuSystem *mainSystem; @property (class, nonatomic, readonly) UIMenuSystem *contextSystem; // + (instancetype)new __attribute__((unavailable)); // - (instancetype)init __attribute__((unavailable)); // - (void)setNeedsRebuild; // - (void)setNeedsRevalidate; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIWindowScene; #ifndef _REWRITER_typedef_UIWindowScene #define _REWRITER_typedef_UIWindowScene typedef struct objc_object UIWindowScene; typedef struct {} _objc_exc_UIWindowScene; #endif __attribute__((availability(ios,introduced=13.0))) // @protocol UITextFormattingCoordinatorDelegate <NSObject> // - (void)updateTextAttributesWithConversionHandler:(__attribute__((noescape)) UITextAttributesConversionHandler _Nonnull)conversionHandler __attribute__((availability(ios,introduced=13.0))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.0))) #ifndef _REWRITER_typedef_UITextFormattingCoordinator #define _REWRITER_typedef_UITextFormattingCoordinator typedef struct objc_object UITextFormattingCoordinator; typedef struct {} _objc_exc_UITextFormattingCoordinator; #endif struct UITextFormattingCoordinator_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property(nullable, nonatomic, weak) id<UITextFormattingCoordinatorDelegate> delegate; @property(class, readonly, getter=isFontPanelVisible) BOOL fontPanelVisible; // + (instancetype)textFormattingCoordinatorForWindowScene:(UIWindowScene *)windowScene; // - (instancetype)initWithWindowScene:(UIWindowScene *)windowScene __attribute__((objc_designated_initializer)); // - (instancetype)init __attribute__((unavailable)); #if 0 - (void)setSelectedAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes isMultiple:(BOOL)flag; #endif // + (void)toggleFontPanel:(id)sender; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPointerRegion #define _REWRITER_typedef_UIPointerRegion typedef struct objc_object UIPointerRegion; typedef struct {} _objc_exc_UIPointerRegion; #endif struct UIPointerRegion_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) CGRect rect; // @property (nonatomic, readonly, nullable) id<NSObject> identifier __attribute__((swift_private)); // + (instancetype)regionWithRect:(CGRect)rect identifier:(nullable id<NSObject>)identifier __attribute__((swift_private)); // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end // @class UITargetedPreview; #ifndef _REWRITER_typedef_UITargetedPreview #define _REWRITER_typedef_UITargetedPreview typedef struct objc_object UITargetedPreview; typedef struct {} _objc_exc_UITargetedPreview; #endif #ifndef _REWRITER_typedef_UIBezierPath #define _REWRITER_typedef_UIBezierPath typedef struct objc_object UIBezierPath; typedef struct {} _objc_exc_UIBezierPath; #endif #ifndef _REWRITER_typedef_UIPointerEffect #define _REWRITER_typedef_UIPointerEffect typedef struct objc_object UIPointerEffect; typedef struct {} _objc_exc_UIPointerEffect; #endif #ifndef _REWRITER_typedef_UIPointerShape #define _REWRITER_typedef_UIPointerShape typedef struct objc_object UIPointerShape; typedef struct {} _objc_exc_UIPointerShape; #endif #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPointerStyle #define _REWRITER_typedef_UIPointerStyle typedef struct objc_object UIPointerStyle; typedef struct {} _objc_exc_UIPointerStyle; #endif struct UIPointerStyle_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)styleWithEffect:(UIPointerEffect *)effect shape:(nullable UIPointerShape *)shape __attribute__((swift_private)); // + (instancetype)styleWithShape:(UIPointerShape *)shape constrainedAxes:(UIAxis)axes __attribute__((swift_private)); // + (instancetype)hiddenPointerStyle; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIPointerEffect #define _REWRITER_typedef_UIPointerEffect typedef struct objc_object UIPointerEffect; typedef struct {} _objc_exc_UIPointerEffect; #endif struct UIPointerEffect_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, copy, readonly) UITargetedPreview *preview; // + (instancetype)effectWithPreview:(UITargetedPreview *)preview; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIPointerHighlightEffect #define _REWRITER_typedef_UIPointerHighlightEffect typedef struct objc_object UIPointerHighlightEffect; typedef struct {} _objc_exc_UIPointerHighlightEffect; #endif struct UIPointerHighlightEffect_IMPL { struct UIPointerEffect_IMPL UIPointerEffect_IVARS; }; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIPointerLiftEffect #define _REWRITER_typedef_UIPointerLiftEffect typedef struct objc_object UIPointerLiftEffect; typedef struct {} _objc_exc_UIPointerLiftEffect; #endif struct UIPointerLiftEffect_IMPL { struct UIPointerEffect_IMPL UIPointerEffect_IVARS; }; /* @end */ typedef NSInteger UIPointerEffectTintMode; enum { UIPointerEffectTintModeNone = 0, UIPointerEffectTintModeOverlay, UIPointerEffectTintModeUnderlay, } __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)); extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIPointerHoverEffect #define _REWRITER_typedef_UIPointerHoverEffect typedef struct objc_object UIPointerHoverEffect; typedef struct {} _objc_exc_UIPointerHoverEffect; #endif struct UIPointerHoverEffect_IMPL { struct UIPointerEffect_IMPL UIPointerEffect_IVARS; }; // @property (nonatomic) UIPointerEffectTintMode preferredTintMode; // @property (nonatomic) BOOL prefersShadow; // @property (nonatomic) BOOL prefersScaledContent; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_private)) #ifndef _REWRITER_typedef_UIPointerShape #define _REWRITER_typedef_UIPointerShape typedef struct objc_object UIPointerShape; typedef struct {} _objc_exc_UIPointerShape; #endif struct UIPointerShape_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (instancetype)shapeWithPath:(UIBezierPath *)path; // + (instancetype)shapeWithRoundedRect:(CGRect)rect; // + (instancetype)shapeWithRoundedRect:(CGRect)rect cornerRadius:(CGFloat)cornerRadius; // + (instancetype)beamWithPreferredLength:(CGFloat)length axis:(UIAxis)axis; // - (instancetype)init __attribute__((unavailable)); // + (instancetype)new __attribute__((unavailable)); /* @end */ #pragma clang assume_nonnull end // @class UIPointerRegionRequest; #ifndef _REWRITER_typedef_UIPointerRegionRequest #define _REWRITER_typedef_UIPointerRegionRequest typedef struct objc_object UIPointerRegionRequest; typedef struct {} _objc_exc_UIPointerRegionRequest; #endif // @protocol UIPointerInteractionDelegate, UIPointerInteractionAnimating; #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPointerInteraction #define _REWRITER_typedef_UIPointerInteraction typedef struct objc_object UIPointerInteraction; typedef struct {} _objc_exc_UIPointerInteraction; #endif struct UIPointerInteraction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, weak, readonly, nullable) id<UIPointerInteractionDelegate> delegate; // @property (nonatomic, getter=isEnabled) BOOL enabled; // - (instancetype)initWithDelegate:(nullable id<UIPointerInteractionDelegate>)delegate __attribute__((objc_designated_initializer)); // - (void)invalidate; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIPointerInteractionDelegate <NSObject> /* @optional */ // - (nullable UIPointerRegion *)pointerInteraction:(UIPointerInteraction *)interaction regionForRequest:(UIPointerRegionRequest *)request defaultRegion:(UIPointerRegion *)defaultRegion; // - (nullable UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region; // - (void)pointerInteraction:(UIPointerInteraction *)interaction willEnterRegion:(UIPointerRegion *)region animator:(id<UIPointerInteractionAnimating>)animator; // - (void)pointerInteraction:(UIPointerInteraction *)interaction willExitRegion:(UIPointerRegion *)region animator:(id<UIPointerInteractionAnimating>)animator __attribute__((swift_name("pointerInteraction(_:willExit:animator:)"))); /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIPointerRegionRequest #define _REWRITER_typedef_UIPointerRegionRequest typedef struct objc_object UIPointerRegionRequest; typedef struct {} _objc_exc_UIPointerRegionRequest; #endif struct UIPointerRegionRequest_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // @property (nonatomic, readonly) CGPoint location; // @property (nonatomic, readonly) UIKeyModifierFlags modifiers; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=13.4))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIPointerInteractionAnimating <NSObject> // - (void)addAnimations:(void (^)(void))animations; // - (void)addCompletion:(void (^)(BOOL finished))completion; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))) #ifndef _REWRITER_typedef_UIColorWell #define _REWRITER_typedef_UIColorWell typedef struct objc_object UIColorWell; typedef struct {} _objc_exc_UIColorWell; #endif struct UIColorWell_IMPL { struct UIControl_IMPL UIControl_IVARS; }; // @property (nullable, nonatomic, copy) NSString *title; // @property (nonatomic) BOOL supportsAlpha; // @property (nullable, nonatomic, strong) UIColor *selectedColor; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIColorPickerViewController; #ifndef _REWRITER_typedef_UIColorPickerViewController #define _REWRITER_typedef_UIColorPickerViewController typedef struct objc_object UIColorPickerViewController; typedef struct {} _objc_exc_UIColorPickerViewController; #endif extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIColorPickerViewControllerDelegate <NSObject> /* @optional */ // - (void)colorPickerViewControllerDidSelectColor:(UIColorPickerViewController *)viewController; // - (void)colorPickerViewControllerDidFinish:(UIColorPickerViewController *)viewController; /* @end */ extern "C" __attribute__((visibility ("default"))) __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIColorPickerViewController #define _REWRITER_typedef_UIColorPickerViewController typedef struct objc_object UIColorPickerViewController; typedef struct {} _objc_exc_UIColorPickerViewController; #endif struct UIColorPickerViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // @property (nullable, weak, nonatomic) id<UIColorPickerViewControllerDelegate> delegate; // @property (strong, nonatomic) UIColor *selectedColor; // @property (nonatomic) BOOL supportsAlpha; // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable)); // - (instancetype)init __attribute__((objc_designated_initializer)); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIDocumentBrowserViewControllerDelegate; // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIColor #define _REWRITER_typedef_UIColor typedef struct objc_object UIColor; typedef struct {} _objc_exc_UIColor; #endif #ifndef _REWRITER_typedef_UIActivity #define _REWRITER_typedef_UIActivity typedef struct objc_object UIActivity; typedef struct {} _objc_exc_UIActivity; #endif #ifndef _REWRITER_typedef_UTType #define _REWRITER_typedef_UTType typedef struct objc_object UTType; typedef struct {} _objc_exc_UTType; #endif #ifndef _REWRITER_typedef_UIActivityViewController #define _REWRITER_typedef_UIActivityViewController typedef struct objc_object UIActivityViewController; typedef struct {} _objc_exc_UIActivityViewController; #endif #ifndef _REWRITER_typedef_UIDocumentBrowserAction #define _REWRITER_typedef_UIDocumentBrowserAction typedef struct objc_object UIDocumentBrowserAction; typedef struct {} _objc_exc_UIDocumentBrowserAction; #endif #ifndef _REWRITER_typedef_UIDocumentBrowserTransitionController #define _REWRITER_typedef_UIDocumentBrowserTransitionController typedef struct objc_object UIDocumentBrowserTransitionController; typedef struct {} _objc_exc_UIDocumentBrowserTransitionController; #endif extern NSErrorDomain const UIDocumentBrowserErrorDomain __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UIDocumentBrowserErrorCode; enum { UIDocumentBrowserErrorGeneric = 1, UIDocumentBrowserErrorNoLocationAvailable __attribute__((availability(ios,introduced=12.0))) = 2, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))); typedef NSUInteger UIDocumentBrowserImportMode; enum { UIDocumentBrowserImportModeNone, UIDocumentBrowserImportModeCopy, UIDocumentBrowserImportModeMove, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_name("UIDocumentBrowserViewController.ImportMode"))); typedef NSUInteger UIDocumentBrowserUserInterfaceStyle; enum { UIDocumentBrowserUserInterfaceStyleWhite = 0, UIDocumentBrowserUserInterfaceStyleLight, UIDocumentBrowserUserInterfaceStyleDark, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_name("UIDocumentBrowserViewController.BrowserUserInterfaceStyle"))); __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentBrowserViewController #define _REWRITER_typedef_UIDocumentBrowserViewController typedef struct objc_object UIDocumentBrowserViewController; typedef struct {} _objc_exc_UIDocumentBrowserViewController; #endif struct UIDocumentBrowserViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)initForOpeningFilesWithContentTypes:(nullable NSArray <NSString *> *)allowedContentTypes __attribute__((objc_designated_initializer)) __attribute__((availability(ios,introduced=11.0,deprecated=14.0,replacement="use initForOpeningContentTypes: instead"))); // - (instancetype)initForOpeningContentTypes:(nullable NSArray <UTType *> *)contentTypes __attribute__((objc_designated_initializer)) __attribute__((swift_name("init(forOpening:)"))) __attribute__((availability(ios,introduced=14.0))); // - (instancetype)initWithNibName:(nullable NSString *)nibName bundle:(nullable NSBundle *)bundle __attribute__((unavailable)); // @property (nullable, nonatomic, weak) id <UIDocumentBrowserViewControllerDelegate> delegate; // @property (assign, nonatomic) BOOL allowsDocumentCreation; // @property (assign, nonatomic) BOOL allowsPickingMultipleItems; // @property (readonly, copy, nonatomic) NSArray<NSString *> *allowedContentTypes __attribute__((availability(ios,introduced=11.0,deprecated=14.0,message="allowedContentTypes is no longer supported"))); // @property (readonly, copy, nonatomic) NSArray<NSString *> *recentDocumentsContentTypes __attribute__((availability(ios,introduced=11.0,deprecated=14.0,replacement="use contentTypesForRecentDocuments instead"))); // @property (readonly, copy, nonatomic) NSArray<UTType *> *contentTypesForRecentDocuments __attribute__((availability(ios,introduced=14.0))); // @property (assign, nonatomic) BOOL shouldShowFileExtensions __attribute__((availability(ios,introduced=13.0))); // @property (strong, nonatomic) NSArray <UIBarButtonItem *> *additionalLeadingNavigationBarButtonItems; // @property (strong, nonatomic) NSArray <UIBarButtonItem *> *additionalTrailingNavigationBarButtonItems; // - (void)revealDocumentAtURL:(NSURL *)url importIfNeeded:(BOOL)importIfNeeded completion:(nullable void(^)(NSURL * _Nullable revealedDocumentURL, NSError * _Nullable error))completion; // - (void)importDocumentAtURL:(NSURL *)documentURL nextToDocumentAtURL:(NSURL *)neighbourURL mode:(UIDocumentBrowserImportMode)importMode completionHandler:(void (^)(NSURL * _Nullable, NSError * _Nullable))completion; // - (UIDocumentBrowserTransitionController *)transitionControllerForDocumentAtURL:(NSURL *)documentURL __attribute__((availability(ios,introduced=12.0))) __attribute__((swift_name("transitionController(forDocumentAt:)"))); // - (UIDocumentBrowserTransitionController *)transitionControllerForDocumentURL:(NSURL *)documentURL __attribute__((availability(ios,introduced=11.0,deprecated=12.0,replacement="transitionControllerForDocumentAtURL:"))); // @property (copy, nonatomic) NSArray <UIDocumentBrowserAction *> *customActions; // @property (assign, nonatomic) UIDocumentBrowserUserInterfaceStyle browserUserInterfaceStyle; // @property(copy, nonatomic) NSString * localizedCreateDocumentActionTitle __attribute__((availability(ios,introduced=13.0))); // @property(assign, nonatomic) CGFloat defaultDocumentAspectRatio __attribute__((availability(ios,introduced=13.0))); /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) // @protocol UIDocumentBrowserViewControllerDelegate <NSObject> /* @optional */ // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller didPickDocumentURLs:(NSArray <NSURL *> *)documentURLs __attribute__((availability(ios,introduced=11.0,deprecated=12.0,replacement="documentBrowser:didPickDocumentsAtURLs:"))); // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller didPickDocumentsAtURLs:(NSArray <NSURL *> *)documentURLs __attribute__((availability(ios,introduced=12.0))); // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller didRequestDocumentCreationWithHandler:(void(^)(NSURL *_Nullable urlToImport, UIDocumentBrowserImportMode importMode))importHandler; // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller didImportDocumentAtURL:(NSURL *)sourceURL toDestinationURL:(NSURL *)destinationURL; // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller failedToImportDocumentAtURL:(NSURL *)documentURL error:(NSError * _Nullable)error; // - (NSArray<__kindof UIActivity *> *)documentBrowser:(UIDocumentBrowserViewController *)controller applicationActivitiesForDocumentURLs:(NSArray <NSURL *> *)documentURLs; // - (void)documentBrowser:(UIDocumentBrowserViewController *)controller willPresentActivityViewController:(UIActivityViewController *)activityViewController; /* @end */ __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentBrowserTransitionController #define _REWRITER_typedef_UIDocumentBrowserTransitionController typedef struct objc_object UIDocumentBrowserTransitionController; typedef struct {} _objc_exc_UIDocumentBrowserTransitionController; #endif struct UIDocumentBrowserTransitionController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // @property (strong, nonatomic, nullable) NSProgress *loadingProgress; // @property (weak, nullable, nonatomic) UIView *targetView; /* @end */ #pragma clang assume_nonnull end // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #pragma clang assume_nonnull begin typedef NSInteger UIDocumentBrowserActionAvailability; enum { UIDocumentBrowserActionAvailabilityMenu = 1, UIDocumentBrowserActionAvailabilityNavigationBar = 1 << 1, } __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) __attribute__((swift_name("UIDocumentBrowserAction.Availability"))); __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(watchos,unavailable))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentBrowserAction #define _REWRITER_typedef_UIDocumentBrowserAction typedef struct objc_object UIDocumentBrowserAction; typedef struct {} _objc_exc_UIDocumentBrowserAction; #endif struct UIDocumentBrowserAction_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithIdentifier:(NSString *)identifier localizedTitle:(NSString *)localizedTitle availability:(UIDocumentBrowserActionAvailability)availability handler:(void(^)(NSArray <NSURL *> *))handler __attribute__((objc_designated_initializer)); // @property (nonatomic, readonly) NSString *identifier; // @property (nonatomic, readonly) NSString *localizedTitle; // @property (nonatomic, readonly) UIDocumentBrowserActionAvailability availability; // @property (nonatomic, strong, nullable) UIImage *image; // @property (nonatomic, copy) NSArray<NSString*> *supportedContentTypes; // @property (nonatomic, assign) BOOL supportsMultipleItems; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIViewController #define _REWRITER_typedef_UIViewController typedef struct objc_object UIViewController; typedef struct {} _objc_exc_UIViewController; #endif typedef NSString * UIActivityType __attribute__((swift_wrapper(struct))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToFacebook __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToTwitter __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToWeibo __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeMessage __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeMail __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePrint __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeCopyToPasteboard __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeAssignToContact __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeSaveToCameraRoll __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeAddToReadingList __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToFlickr __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToVimeo __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypePostToTencentWeibo __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeAirDrop __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeOpenInIBooks __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(tvos,unavailable))); extern "C" __attribute__((visibility ("default"))) UIActivityType const UIActivityTypeMarkupAsPDF __attribute__((availability(ios,introduced=11.0))) __attribute__((availability(tvos,unavailable))); typedef NSInteger UIActivityCategory; enum { UIActivityCategoryAction, UIActivityCategoryShare, } __attribute__((availability(ios,introduced=7_0))) __attribute__((availability(tvos,unavailable))); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=6_0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIActivity #define _REWRITER_typedef_UIActivity typedef struct objc_object UIActivity; typedef struct {} _objc_exc_UIActivity; #endif struct UIActivity_IMPL { struct NSObject_IMPL NSObject_IVARS; }; @property(class, nonatomic, readonly) UIActivityCategory activityCategory __attribute__((availability(ios,introduced=7.0))); // @property(nonatomic, readonly, nullable) UIActivityType activityType; // @property(nonatomic, readonly, nullable) NSString *activityTitle; // @property(nonatomic, readonly, nullable) UIImage *activityImage; // - (BOOL)canPerformWithActivityItems:(NSArray *)activityItems; // - (void)prepareWithActivityItems:(NSArray *)activityItems; // @property(nonatomic, readonly, nullable) UIViewController *activityViewController; // - (void)performActivity; // - (void)activityDidFinish:(BOOL)completed; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @class UIActivityViewController; #ifndef _REWRITER_typedef_UIActivityViewController #define _REWRITER_typedef_UIActivityViewController typedef struct objc_object UIActivityViewController; typedef struct {} _objc_exc_UIActivityViewController; #endif #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_LPLinkMetadata #define _REWRITER_typedef_LPLinkMetadata typedef struct objc_object LPLinkMetadata; typedef struct {} _objc_exc_LPLinkMetadata; #endif // @protocol UIActivityItemSource <NSObject> /* @required */ // - (id)activityViewControllerPlaceholderItem:(UIActivityViewController *)activityViewController; // - (nullable id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(nullable UIActivityType)activityType; /* @optional */ // - (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(nullable UIActivityType)activityType; // - (NSString *)activityViewController:(UIActivityViewController *)activityViewController dataTypeIdentifierForActivityType:(nullable UIActivityType)activityType; // - (nullable UIImage *)activityViewController:(UIActivityViewController *)activityViewController thumbnailImageForActivityType:(nullable UIActivityType)activityType suggestedSize:(CGSize)size; // - (nullable LPLinkMetadata *)activityViewControllerLinkMetadata:(UIActivityViewController *)activityViewController __attribute__((availability(ios,introduced=13.0))); /* @end */ __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=6_0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIActivityItemProvider #define _REWRITER_typedef_UIActivityItemProvider typedef struct objc_object UIActivityItemProvider; typedef struct {} _objc_exc_UIActivityItemProvider; #endif struct UIActivityItemProvider_IMPL { struct NSOperation_IMPL NSOperation_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithPlaceholderItem:(id)placeholderItem __attribute__((objc_designated_initializer)); // @property(nullable,nonatomic,strong,readonly) id placeholderItem; // @property(nullable,nonatomic,copy,readonly) UIActivityType activityType; // @property(nonnull, nonatomic, readonly) id item; /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIActivityItemsConfigurationReading; typedef void (*UIActivityViewControllerCompletionHandler)(UIActivityType _Nullable activityType, BOOL completed); typedef void (*UIActivityViewControllerCompletionWithItemsHandler)(UIActivityType _Nullable activityType, BOOL completed, NSArray * _Nullable returnedItems, NSError * _Nullable activityError); __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=6_0))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIActivityViewController #define _REWRITER_typedef_UIActivityViewController typedef struct objc_object UIActivityViewController; typedef struct {} _objc_exc_UIActivityViewController; #endif struct UIActivityViewController_IMPL { struct UIViewController_IMPL UIViewController_IVARS; }; // - (instancetype)init __attribute__((unavailable)); // - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil __attribute__((unavailable)); // - (nullable instancetype)initWithCoder:(NSCoder *)coder __attribute__((unavailable)); // - (instancetype)initWithActivityItems:(NSArray *)activityItems applicationActivities:(nullable NSArray<__kindof UIActivity *> *)applicationActivities __attribute__((objc_designated_initializer)); // @property(nullable, nonatomic, copy) UIActivityViewControllerCompletionHandler completionHandler __attribute__((availability(ios,introduced=6.0,deprecated=8.0,replacement="completionWithItemsHandler"))); // @property(nullable, nonatomic, copy) UIActivityViewControllerCompletionWithItemsHandler completionWithItemsHandler __attribute__((availability(ios,introduced=8.0))); // @property(nullable, nonatomic, copy) NSArray<UIActivityType> *excludedActivityTypes; /* @end */ // @interface UIActivityViewController (UIActivityItemsConfiguration) // - (instancetype)initWithActivityItemsConfiguration:(id<UIActivityItemsConfigurationReading>)activityItemsConfiguration __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(tvos,unavailable))) __attribute__((availability(watchos,unavailable))); /* @end */ #pragma clang assume_nonnull end #pragma clang assume_nonnull begin // @protocol UIDocumentInteractionControllerDelegate; // @class UIImage; #ifndef _REWRITER_typedef_UIImage #define _REWRITER_typedef_UIImage typedef struct objc_object UIImage; typedef struct {} _objc_exc_UIImage; #endif #ifndef _REWRITER_typedef_UIView #define _REWRITER_typedef_UIView typedef struct objc_object UIView; typedef struct {} _objc_exc_UIView; #endif #ifndef _REWRITER_typedef_UIPopoverController #define _REWRITER_typedef_UIPopoverController typedef struct objc_object UIPopoverController; typedef struct {} _objc_exc_UIPopoverController; #endif __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))) #ifndef _REWRITER_typedef_UIDocumentInteractionController #define _REWRITER_typedef_UIDocumentInteractionController typedef struct objc_object UIDocumentInteractionController; typedef struct {} _objc_exc_UIDocumentInteractionController; #endif struct UIDocumentInteractionController_IMPL { struct NSObject_IMPL NSObject_IVARS; }; // + (UIDocumentInteractionController *)interactionControllerWithURL:(NSURL *)url; // @property(nullable, nonatomic, weak) id<UIDocumentInteractionControllerDelegate> delegate; // @property(nullable, strong) NSURL *URL; // @property(nullable, nonatomic, copy) NSString *UTI; // @property(nullable, copy) NSString *name; // @property(nonatomic, readonly) NSArray<UIImage *> *icons; // @property(nullable, nonatomic, strong) id annotation; // - (BOOL)presentOptionsMenuFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated; // - (BOOL)presentOptionsMenuFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated; // - (BOOL)presentPreviewAnimated:(BOOL)animated; // - (BOOL)presentOpenInMenuFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated; // - (BOOL)presentOpenInMenuFromBarButtonItem:(UIBarButtonItem *)item animated:(BOOL)animated; // - (void)dismissPreviewAnimated:(BOOL)animated; // - (void)dismissMenuAnimated:(BOOL)animated; // @property(nonatomic, readonly) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers; /* @end */ __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))) // @protocol UIDocumentInteractionControllerDelegate <NSObject> /* @optional */ // - (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller; // - (CGRect)documentInteractionControllerRectForPreview:(UIDocumentInteractionController *)controller; // - (nullable UIView *)documentInteractionControllerViewForPreview:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerWillBeginPreview:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerWillPresentOptionsMenu:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerDidDismissOptionsMenu:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerWillPresentOpenInMenu:(UIDocumentInteractionController *)controller; // - (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller; // - (void)documentInteractionController:(UIDocumentInteractionController *)controller willBeginSendingToApplication:(nullable NSString *)application; // - (void)documentInteractionController:(UIDocumentInteractionController *)controller didEndSendingToApplication:(nullable NSString *)application; // - (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(nullable SEL)action __attribute__((availability(ios,introduced=3_2,deprecated=6_0,message="" ))); // - (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller performAction:(nullable SEL)action __attribute__((availability(ios,introduced=3_2,deprecated=6_0,message="" ))); /* @end */ #pragma clang assume_nonnull end NSString * fly_name; struct __main_block_impl_0 { struct __block_impl impl; struct __main_block_desc_0* Desc; __main_block_impl_0(void *fp, struct __main_block_desc_0 *desc, int flags=0) { impl.isa = &_NSConcreteStackBlock; impl.Flags = flags; impl.FuncPtr = fp; Desc = desc; } }; static void __main_block_func_0(struct __main_block_impl_0 *__cself) { fly_name = (NSString *)&__NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_1; NSLog((NSString *)&__NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_2, fly_name); } static struct __main_block_desc_0 { size_t reserved; size_t Block_size; } __main_block_desc_0_DATA = { 0, sizeof(struct __main_block_impl_0)}; int main(int argc, char * argv[]) { /* @autoreleasepool */ { __AtAutoreleasePool __autoreleasepool; fly_name = ((NSString * _Nonnull (*)(id, SEL, NSString * _Nonnull, ...))(void *)objc_msgSend)((id)objc_getClass("NSString"), sel_registerName("stringWithFormat:"), (NSString *)&__NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_0); void (*block)(void) = ((void (*)())&__main_block_impl_0((void *)__main_block_func_0, &__main_block_desc_0_DATA)); ((void (*)(__block_impl *))((__block_impl *)block)->FuncPtr)((__block_impl *)block); NSLog((NSString *)&__NSConstantStringImpl__var_folders_dq_mwrk2yjx1b18hws5lc3pb7g80000gn_T_main_2_6b67be_mi_3, fly_name); } return 0; } static struct IMAGE_INFO { unsigned version; unsigned flag; } _OBJC_IMAGE_INFO = { 0, 2 };
[ "393890129@qq.com" ]
393890129@qq.com
2cb1b985f30e8584999edc6e465ddaa5161c493a
d56feed94e4842bb89324150fb8ffcd65ff23b39
/heart/src/posix/pal/base/hDebugMacros.cpp
f20b4fcee945c864091f4b5975147c1a7c28057a
[ "Zlib", "FTL" ]
permissive
JoJo2nd/Heart
421830c5ba09ed92ab68edab94d1416146dcf676
4b50dfa6cbf87d32768f6c01b578bc1b23c18591
refs/heads/master
2021-01-10T20:44:09.213276
2016-01-30T21:41:07
2016-01-30T21:41:07
3,228,772
2
0
null
null
null
null
UTF-8
C++
false
false
3,549
cpp
/******************************************************************** Written by James Moran Please see the file HEART_LICENSE.txt in the source's root directory. *********************************************************************/ #include "pal/hPlatform.h" #include "base/hTypes.h" #include <stdio.h> #include <stdarg.h> ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// static hPrintfCallback g_printcallback = NULL; static void HEART_API hcOutputStringFlush() { #if defined (PLATFORM_LINUX) fflush(stdout); #endif } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// void HEART_API hcOutputStringVA( const hChar* msg, bool newline, va_list vargs ) { #ifdef HEART_DEBUG #ifdef HEART_PLAT_WINDOWS const hUint32 ks = 4; hChar buffer[ ks*1024 ]; buffer[ (ks*1024)-1 ] = 0; hUint32 len = vsnprintf(buffer, ks*1024, msg, vargs); if ( newline && buffer[ len - 1 ] != '\n' ) { buffer[ len ] = '\n'; buffer[ len+1 ] = 0; } OutputDebugString( buffer ); #endif #if defined (PLATFORM_LINUX) hUint32 len = vprintf(msg, vargs); if (msg[len-1] != '\n' ) { putchar('\n'); } hcOutputStringFlush(); #endif // if (g_printcallback) // g_printcallback(buffer); #endif } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// void HEART_API hcOutputString( const hChar* msg, ... ) { va_list marker; va_start(marker, msg); hcOutputStringVA(msg, true, marker); va_end(marker); } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// hUint32 HEART_API hAssertMsgFunc(hBool ignore, const hChar* msg, ...) { va_list marker; va_start( marker, msg ); const hUint32 ks = 4; hChar buffer[ ks*1024 ]; hUint32 ret = 0; buffer[ (ks*1024)-1 ] = 0; hUint32 len = vsnprintf(buffer, ks*1024, msg, marker); if ( buffer[ len - 1 ] != '\n' ) { buffer[ len ] = '\n'; buffer[ len+1 ] = 0; } hcOutputString( buffer ); #if 0 if (!ignore) { ret = 1;//MessageBox(NULL, buffer, "ASSERT FAILED!", MB_ABORTRETRYIGNORE); if (ret == IDABORT) { ret = 1; // break to debugger //ret = 0; // abort } else if (ret == IDRETRY) { ret = 1; // break to debugger } else { ret = 2; // ignore } } else { ret = 2; // ignore } #else ret = 1; #endif va_end( marker ); return ret; } ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// void HEART_API hcSetOutputStringCallback( hPrintfCallback cb ) { g_printcallback = cb; } void debug_break_now() { raise(SIGTRAP); }
[ "jojo.2nd.jm@gmail.com" ]
jojo.2nd.jm@gmail.com
45bedb810f42c56f8a9cd37ce6b06ce2a660b099
3ea34c23f90326359c3c64281680a7ee237ff0f2
/Data/1702/H
4c024479b9b18135acb491e52327d75a53a4a661
[]
no_license
lcnbr/EM
c6b90c02ba08422809e94882917c87ae81b501a2
aec19cb6e07e6659786e92db0ccbe4f3d0b6c317
refs/heads/master
2023-04-28T20:25:40.955518
2020-02-16T23:14:07
2020-02-16T23:14:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
92,506
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source Cstd::filesystem::create_directory();FD | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "Data/1702"; object H; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 4096 ( (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1.12200837346178e-14,-8.73778228777178e-12,1.11327355637401e-11) (-6.40555849307709e-13,-1.97921835793822e-11,1.07542358154736e-11) (-6.08315095965406e-13,-3.6041960148811e-11,9.67249452315871e-12) (-3.81946561411251e-14,-5.79310855246571e-11,7.96612768325209e-12) (-2.01861610163872e-13,-9.16154640604651e-11,6.21431783191676e-12) (3.74764829693841e-13,-1.435163793417e-10,3.83065138590522e-12) (1.40827398008053e-12,-2.28964983943232e-10,1.79848606759968e-12) (2.19675718508442e-12,-3.71848225088211e-10,8.28479048549778e-13) (3.11398171342326e-12,-6.08001863534012e-10,5.27656899556252e-13) (3.22948273443368e-12,-9.36875735697177e-10,4.30576373342361e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (3.7801262361788e-13,-8.44503622538391e-12,2.32445796062706e-11) (-5.33221109917569e-13,-1.87142963050542e-11,2.25537728488656e-11) (-1.12619187913468e-12,-3.40990767726956e-11,2.09064722959955e-11) (-2.12548615019457e-13,-5.56966588939943e-11,1.81119503485936e-11) (-3.48416150113371e-13,-8.90636443129442e-11,1.43151025576741e-11) (5.66699833014768e-14,-1.41542362727998e-10,9.5994230516671e-12) (1.62246740664603e-12,-2.2785769105254e-10,5.53371023307956e-12) (3.22020914878041e-12,-3.71405220210403e-10,3.40424599397286e-12) (4.74896898438858e-12,-6.07982540252218e-10,2.27317937780693e-12) (4.98292134043332e-12,-9.366720026859e-10,1.43617089049885e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (3.35215344423754e-13,-7.61436794918294e-12,3.86421545707938e-11) (-1.6834058050649e-13,-1.70156667941838e-11,3.75332039440405e-11) (-8.20784719597399e-13,-3.12919953148477e-11,3.53110760851861e-11) (-1.17507948137158e-12,-5.15332176587708e-11,3.14443598985866e-11) (-1.50992458005687e-12,-8.40788595273955e-11,2.59582619082461e-11) (-1.43535262501998e-12,-1.3736517849531e-10,1.96306590907661e-11) (6.93967722602254e-13,-2.25463743859669e-10,1.36879450615433e-11) (2.67595755854082e-12,-3.70460005222848e-10,9.95727994654973e-12) (4.59920125025844e-12,-6.07333350431877e-10,6.9869968132626e-12) (4.71644513219307e-12,-9.35679795293653e-10,4.01758528910884e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.58786374741381e-13,-6.40981303527177e-12,6.11892572478025e-11) (-1.11801430994609e-12,-1.48095270605794e-11,6.0011398789612e-11) (-1.94898178427115e-12,-2.73144056558944e-11,5.75101800116438e-11) (-3.5377794147432e-12,-4.56432709106022e-11,5.33108429124044e-11) (-4.25812705532345e-12,-7.70892438551729e-11,4.74150285643899e-11) (-3.63034600447315e-12,-1.30731653046501e-10,3.9968822876746e-11) (-4.99880736102715e-13,-2.2114109447644e-10,3.21962178301793e-11) (2.01291193195355e-12,-3.68619170626604e-10,2.54138193083906e-11) (3.88364621427309e-12,-6.05575258353764e-10,1.7958318336535e-11) (3.98264357231782e-12,-9.33223561053514e-10,9.61847292640482e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.11177100050005e-12,-5.29865179854091e-12,9.39982302043482e-11) (-1.93977536579224e-12,-1.22126807102366e-11,9.29747881150412e-11) (-2.71836829142386e-12,-2.23956711782621e-11,9.07069049511765e-11) (-4.0337744934594e-12,-3.87593112144797e-11,8.71076783906671e-11) (-5.03311190680925e-12,-6.84525326993806e-11,8.1984619353015e-11) (-3.6685348647403e-12,-1.21345975677019e-10,7.5227718255605e-11) (-1.12768649165169e-13,-2.13124949662307e-10,6.72108839602595e-11) (1.77649834815874e-12,-3.62898888210097e-10,5.47375524201639e-11) (2.53480146130346e-12,-5.9928606325531e-10,3.89918320656056e-11) (2.10329703276192e-12,-9.25944877676271e-10,2.04754747132981e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8.45391936505698e-13,-4.53399564520025e-12,1.45141134667414e-10) (-1.74794516868877e-12,-9.90918175805937e-12,1.4427775799116e-10) (-3.12225795724216e-12,-1.79375001443521e-11,1.42548620438102e-10) (-4.33603539387868e-12,-3.20335966430611e-11,1.39951235817908e-10) (-5.31751227937967e-12,-5.95003843117925e-11,1.35707020898234e-10) (-4.1253812339169e-12,-1.1096021128852e-10,1.28612976408169e-10) (-9.23245087026885e-13,-2.02786525212142e-10,1.17589345524391e-10) (1.30372882752143e-12,-3.51083616261729e-10,9.89973999049625e-11) (1.505369121259e-12,-5.84332184376933e-10,7.24201941637256e-11) (8.78914766447423e-13,-9.08848703128171e-10,3.85881650010414e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.03557197756861e-13,-3.71929509717761e-12,2.2831615204969e-10) (-1.02274919009434e-12,-7.76236762398957e-12,2.27421095574795e-10) (-3.41503487117457e-12,-1.43319544952024e-11,2.26670100643092e-10) (-5.45244850459212e-12,-2.64723413669814e-11,2.25151852316443e-10) (-5.72168679544101e-12,-5.08688514579556e-11,2.21020144845089e-10) (-4.41716039898997e-12,-9.84505644054585e-11,2.12381969018198e-10) (-2.98409639158791e-12,-1.86078378019505e-10,1.95845443665744e-10) (-1.26732455377389e-12,-3.2791910043494e-10,1.69486101948912e-10) (-5.16997896058889e-13,-5.54014862415366e-10,1.26864018855573e-10) (-2.43699672452699e-13,-8.7371542511884e-10,6.89820140438528e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.29660864022745e-13,-2.68095438769049e-12,3.6827050777837e-10) (-7.62871044068641e-13,-5.90912520644647e-12,3.67550006731826e-10) (-3.52601996084034e-12,-1.14310124655687e-11,3.67381346073393e-10) (-5.98746007300406e-12,-2.15198499779154e-11,3.66115200440168e-10) (-6.68707552507487e-12,-4.25437271435827e-11,3.61526167597155e-10) (-6.10515701718696e-12,-8.44503749966797e-11,3.50981465295835e-10) (-5.46513025293893e-12,-1.60572464949447e-10,3.29570690940239e-10) (-4.56817760660982e-12,-2.86849158544927e-10,2.89909503378341e-10) (-3.12358224887459e-12,-4.98094585862041e-10,2.23912132730908e-10) (-1.7586544630508e-12,-8.06393179669147e-10,1.2658603330878e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.32700273640717e-13,-1.74289016709391e-12,6.02830727881756e-10) (-1.25976426446172e-12,-4.16038846856794e-12,6.02239606729498e-10) (-3.87381607341794e-12,-8.21545063340811e-12,6.01565133122646e-10) (-6.20520011424798e-12,-1.56540223303486e-11,5.99555221938669e-10) (-7.85124776457566e-12,-3.14259753338787e-11,5.93817912064712e-10) (-8.33167813226764e-12,-6.32469825136187e-11,5.80201893263227e-10) (-8.42717602480146e-12,-1.20647269895758e-10,5.51985321429315e-10) (-8.6675565996001e-12,-2.21376662384314e-10,4.98180240932181e-10) (-7.27789098391703e-12,-4.0163193895665e-10,4.02065284658921e-10) (-6.21573519821474e-12,-6.80193105473511e-10,2.41291132771065e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.63513774615805e-12,-7.77514798623781e-13,9.30811885505728e-10) (-2.96733852766389e-12,-2.11516537983538e-12,9.30734414872748e-10) (-4.93452851204187e-12,-4.50441592853844e-12,9.29883659060169e-10) (-6.5190608104476e-12,-8.81956261738843e-12,9.27079524809835e-10) (-8.80002402569631e-12,-1.71984727099073e-11,9.19725118006349e-10) (-9.86106212522832e-12,-3.4276974621445e-11,9.03594705329096e-10) (-1.05221912228779e-11,-6.60271347572154e-11,8.70622006557308e-10) (-1.05911691456345e-11,-1.25442356588238e-10,8.05796710887276e-10) (-8.39955310428029e-12,-2.41217304570312e-10,6.80627270903068e-10) (-7.40280385406397e-12,-4.39422920672727e-10,4.39812831538797e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (9.6973769612018e-14,-1.68954187832317e-11,2.06576298939601e-11) (-6.36701831320123e-13,-3.78043525691846e-11,2.02647491119213e-11) (-8.44831632201052e-13,-6.72107530624568e-11,1.82614819675343e-11) (-5.20811435476027e-13,-1.07386413806021e-10,1.48447665069123e-11) (-3.70014911706548e-13,-1.67519974550975e-10,1.08827348224254e-11) (4.329135343274e-13,-2.57796846616728e-10,6.16331284741264e-12) (1.27098810847005e-12,-4.0244289465601e-10,2.28504760172206e-12) (2.05457445606918e-12,-6.49984745287933e-10,6.60376697214182e-13) (3.19173895759127e-12,-1.12264875773697e-09,4.54434354906656e-13) (3.45632609600096e-12,-2.20194793012456e-09,5.5576686686511e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (2.38151104822275e-13,-1.63007410667324e-11,4.3770137618557e-11) (-5.8455006791135e-13,-3.60693703136871e-11,4.25113342524466e-11) (-1.13875138957259e-12,-6.37515303554041e-11,3.86630900459396e-11) (-5.79142059326e-13,-1.02970878450052e-10,3.25345484518745e-11) (-6.17521429662904e-13,-1.62512277935552e-10,2.44429630898642e-11) (-5.48014308152907e-14,-2.53857537891825e-10,1.49544792074687e-11) (1.35798445277248e-12,-4.00980774368149e-10,6.64943826919656e-12) (3.40606077756319e-12,-6.50049216910333e-10,2.89548832829906e-12) (4.93678765170217e-12,-1.12286974613098e-09,2.16972355440185e-12) (5.42688483890709e-12,-2.20165858305353e-09,1.65665816344618e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (2.396110572675e-13,-1.43360632108471e-11,7.30936467878225e-11) (-1.52352455253542e-13,-3.21963135831173e-11,7.09007187418944e-11) (-9.3165819193479e-13,-5.75670611085757e-11,6.57001255555943e-11) (-1.57892823919498e-12,-9.42628831133323e-11,5.71463433882637e-11) (-2.17193743483975e-12,-1.52363658891138e-10,4.53214070864515e-11) (-2.12616404461243e-12,-2.45242784735909e-10,3.1212609105808e-11) (1.01983454391959e-13,-3.97308302268208e-10,1.75979985023211e-11) (3.80540609549094e-12,-6.50397220045022e-10,1.15404834468771e-11) (5.81052069612573e-12,-1.12343963122058e-09,9.0144217817562e-12) (6.27779618091622e-12,-2.20125432498858e-09,5.47426448084416e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.92089153282712e-13,-1.15632089934524e-11,1.1400856772715e-10) (-1.21364188232273e-12,-2.67777816810679e-11,1.11330936331255e-10) (-2.66837916267075e-12,-4.86669121405526e-11,1.05879184622377e-10) (-4.52592476284516e-12,-8.15896481299492e-11,9.68807419922102e-11) (-5.44863252348345e-12,-1.36678165054011e-10,8.378603875866e-11) (-5.24341832737317e-12,-2.29927853986066e-10,6.65393389767394e-11) (-1.73362702847313e-12,-3.89512401624553e-10,4.81118650207508e-11) (3.74813048732253e-12,-6.50389415408856e-10,3.70957129115544e-11) (5.93429652636621e-12,-1.12345669400976e-09,2.74363867804835e-11) (6.32243312216913e-12,-2.19934816673477e-09,1.50045014321865e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8.52985064534053e-13,-9.07571235929128e-12,1.7149123880137e-10) (-1.97539115410747e-12,-2.13304384275083e-11,1.69519565972457e-10) (-3.57731276482564e-12,-3.87851809469501e-11,1.65049470861979e-10) (-5.63643002722855e-12,-6.66758217355459e-11,1.57432396810349e-10) (-7.22835919697478e-12,-1.1571121400401e-10,1.46335452807704e-10) (-6.0374649579094e-12,-2.05058481498447e-10,1.32807758915757e-10) (2.02213844082856e-12,-3.70129896000315e-10,1.20907046438344e-10) (5.70694675447687e-12,-6.44719405540786e-10,9.48719459427526e-11) (6.09727993515685e-12,-1.11693125534789e-09,6.69492309231521e-11) (5.48259719740574e-12,-2.1896255667478e-09,3.50888601588727e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7.96715808273699e-13,-7.29977825725098e-12,2.58543068012215e-10) (-2.16562174970159e-12,-1.64005168836464e-11,2.57123897795229e-10) (-4.130418986203e-12,-2.93699717307279e-11,2.54017093426472e-10) (-5.65307575027647e-12,-5.18275070331094e-11,2.48869161574731e-10) (-6.85500064314412e-12,-9.4933133535644e-11,2.41089808718956e-10) (-5.61139723323066e-12,-1.81362402775409e-10,2.29666150007614e-10) (9.60553339824402e-13,-3.54835548843004e-10,2.1360091790831e-10) (4.71641874200307e-12,-6.27891769686794e-10,1.78362403713798e-10) (5.02007632237307e-12,-1.09355049426759e-09,1.28676002217266e-10) (4.33380175851892e-12,-2.16114366573692e-09,6.79669932807791e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.4684143234936e-13,-5.7465522725571e-12,3.99772387190659e-10) (-2.12499667593402e-12,-1.23145578359577e-11,3.98474082288939e-10) (-4.7977285741571e-12,-2.2153370475517e-11,3.96846668217628e-10) (-6.27323242231209e-12,-3.98821455581215e-11,3.94225514074305e-10) (-5.40863528290491e-12,-7.61119599908253e-11,3.89387355762088e-10) (-1.88082445528916e-12,-1.54136230484048e-10,3.78815843335515e-10) (-2.1306677447547e-12,-3.26129007201293e-10,3.48465879721276e-10) (2.84816649378721e-13,-5.87050138258314e-10,3.05858645195468e-10) (1.4447303619733e-12,-1.03990292753838e-09,2.26245305828149e-10) (1.41606892230352e-12,-2.09926494462453e-09,1.22110492746403e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7.47224038075273e-13,-4.21525340563677e-12,6.42064437895119e-10) (-2.34294712351334e-12,-9.54026926633619e-12,6.41426364391249e-10) (-5.47543615977473e-12,-1.77692415301231e-11,6.40761839888839e-10) (-7.2642548775575e-12,-3.25740990802321e-11,6.38758490964418e-10) (-7.26012503348172e-12,-6.53020129479604e-11,6.33910032297171e-10) (-5.89777514462474e-12,-1.37692512811446e-10,6.21357488544726e-10) (-5.72913774470849e-12,-2.8364744653311e-10,5.88232045099747e-10) (-4.0433031199713e-12,-5.098268610085e-10,5.16759298555986e-10) (-2.26012973198634e-12,-9.38942565010973e-10,3.97837092090378e-10) (-1.37269535053129e-12,-1.98090314595752e-09,2.26284504231894e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.00695448985251e-12,-3.01269273196855e-12,1.11134954069587e-09) (-2.63051374634239e-12,-7.03327890387121e-12,1.11077649246757e-09) (-5.57493959430768e-12,-1.33038410831272e-11,1.10938002559125e-09) (-7.30234995324663e-12,-2.47789673788342e-11,1.10572513377936e-09) (-8.46273158704996e-12,-5.04366970503054e-11,1.09829966377524e-09) (-9.08511419055243e-12,-1.05964808849374e-10,1.07904638676813e-09) (-9.24223066621362e-12,-2.11152963039895e-10,1.03325255240288e-09) (-8.48690612242919e-12,-3.91013109053352e-10,9.38485499095397e-10) (-6.91837348247746e-12,-7.68350044328214e-10,7.69956243683237e-10) (-5.69478722783725e-12,-1.75641411261431e-09,4.80791336005911e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.33518191180157e-12,-1.4361631581974e-12,2.18806769802433e-09) (-4.23174809492052e-12,-3.37928432804526e-12,2.1876172439109e-09) (-6.63481019024775e-12,-6.95808154210697e-12,2.18607121359132e-09) (-7.98421662434959e-12,-1.38762895159974e-11,2.1812748503235e-09) (-9.86808405835802e-12,-2.78988020609002e-11,2.1708617845653e-09) (-1.11653379748959e-11,-5.78135485878994e-11,2.14617534442026e-09) (-1.17240303100696e-11,-1.14666160498716e-10,2.09107107951608e-09) (-1.08640857496165e-11,-2.22200686211766e-10,1.97828144524043e-09) (-8.80241831031958e-12,-4.79597612945031e-10,1.75665940990485e-09) (-7.01289298788886e-12,-1.2767173094692e-09,1.27721270033029e-09) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.04823164830845e-13,-2.33923181530823e-11,2.70059309408266e-11) (-3.68416942609173e-13,-5.11079171946355e-11,2.61852772970278e-11) (-8.87338878096994e-13,-8.96129168901317e-11,2.36826676110834e-11) (-9.74315106818127e-13,-1.4142313710704e-10,1.90441566233591e-11) (-6.58289552424764e-13,-2.15407686835201e-10,1.27812875068229e-11) (3.71870055453036e-13,-3.2124515930591e-10,4.70966122371863e-12) (1.43353872459683e-12,-4.77152301220889e-10,-2.13750360467379e-12) (2.32498842079987e-12,-7.05451385828652e-10,-4.1892088917171e-12) (3.31139483965869e-12,-1.02958258752914e-09,-3.21803003511055e-12) (3.72274589181524e-12,-1.42222861877877e-09,-1.34472296838358e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.67723385353176e-13,-2.23102705445047e-11,5.80117006554542e-11) (-6.09362592400881e-13,-4.87373625425996e-11,5.60432759314807e-11) (-1.19467904316235e-12,-8.51393410749577e-11,5.06253236269167e-11) (-1.19555203339546e-12,-1.35212553406841e-10,4.14559405300892e-11) (-1.27765659148484e-12,-2.07914146959942e-10,2.83761052732006e-11) (-3.64513648534636e-13,-3.15385158244978e-10,1.13744499002786e-11) (1.43946229242759e-12,-4.76190028002884e-10,-4.52500344425575e-12) (4.47982868764899e-12,-7.07242085404296e-10,-8.37652941692162e-12) (6.01973813230566e-12,-1.03149987253215e-09,-5.50287804095921e-12) (6.67928493744461e-12,-1.42367706418934e-09,-2.06433848583592e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.40315115839294e-13,-1.98135407607375e-11,9.73433192583308e-11) (-3.70291169972282e-13,-4.34075474458592e-11,9.42120798226173e-11) (-1.27802499208698e-12,-7.61419869012936e-11,8.65566682424016e-11) (-2.42722692133954e-12,-1.22009558495326e-10,7.32118240546779e-11) (-3.74863329165107e-12,-1.91575027214965e-10,5.3310127391236e-11) (-3.82648419091005e-12,-3.01196508182196e-10,2.54001747028085e-11) (-1.63640213257991e-12,-4.74572719326536e-10,-5.29382880680516e-12) (6.32366312337349e-12,-7.13638504501744e-10,-8.31470658885752e-12) (9.367740786996e-12,-1.03774396041323e-09,-2.51620508480681e-12) (9.84590240739639e-12,-1.4281691228711e-09,4.31095984199307e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.01954391777035e-13,-1.5975649506886e-11,1.50550689642118e-10) (-1.20923342621578e-12,-3.52504599551389e-11,1.46673026882434e-10) (-3.55166772641327e-12,-6.21489394069423e-11,1.38342145133268e-10) (-6.34504792455914e-12,-1.01345715061864e-10,1.23748289818377e-10) (-9.16888379086218e-12,-1.63339575798504e-10,1.00691914934016e-10) (-1.16853168590716e-11,-2.70774899198603e-10,6.48600115428181e-11) (-1.00999805437363e-11,-4.68906675654322e-10,1.6325739391787e-11) (7.73744675057834e-12,-7.2682558272873e-10,1.53619290744682e-11) (1.18407432131259e-11,-1.04771350887328e-09,1.77525983613657e-11) (1.16043345668861e-11,-1.43313786617747e-09,1.16412777246049e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.57246337817249e-13,-1.19065582517726e-11,2.20442138981045e-10) (-2.43521758694102e-12,-2.64247193969828e-11,2.17949480485531e-10) (-5.37544793008287e-12,-4.62062946861437e-11,2.11388727056388e-10) (-9.38780072714246e-12,-7.59497435909323e-11,1.99324436751517e-10) (-1.44787457722377e-11,-1.23216118391743e-10,1.80626046957114e-10) (-1.78328312044602e-11,-2.10718872128583e-10,1.58379614441403e-10) (1.27628917784233e-11,-4.1346809976306e-10,1.68547163770027e-10) (1.68020259199824e-11,-7.40225648174391e-10,1.109916374219e-10) (1.45768896205471e-11,-1.05299557485815e-09,7.59030015775907e-11) (1.20895563449949e-11,-1.42943555796563e-09,3.99366611774604e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-9.3077157529745e-13,-9.16467134183991e-12,3.20204865662782e-10) (-3.14477642898527e-12,-1.89221967732429e-11,3.18907464028348e-10) (-6.1990883899748e-12,-3.14941031090974e-11,3.1494113392697e-10) (-9.81908436837622e-12,-5.13336250623653e-11,3.07827090254663e-10) (-1.42525154773565e-11,-8.57073204782803e-11,2.96996358285454e-10) (-1.67723374254913e-11,-1.66345400014791e-10,2.8268738028072e-10) (7.49252589309667e-12,-4.20075267693475e-10,2.85323611890972e-10) (1.35611888093475e-11,-7.33634026648443e-10,2.272039272163e-10) (1.20815185303625e-11,-1.03165833780685e-09,1.58626312089619e-10) (1.04220739261267e-11,-1.39858067410341e-09,8.20931340514243e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8.79835396758437e-13,-6.90022068340981e-12,4.6940352830567e-10) (-3.27187117486696e-12,-1.33267891969456e-11,4.68605879982176e-10) (-6.5607033763345e-12,-2.08063851021866e-11,4.67043510616542e-10) (-8.7431205878029e-12,-3.19496173748983e-11,4.65871503214135e-10) (-5.64706989877358e-12,-5.0784430733649e-11,4.67694995012883e-10) (1.20254214861035e-11,-1.02059030113919e-10,4.73682274080533e-10) (-2.00499388694505e-12,-3.90612564734227e-10,4.11207118876055e-10) (2.67487876648334e-12,-6.88160299063927e-10,3.96875129447133e-10) (4.61918091655346e-12,-9.66810360087419e-10,2.76374929296832e-10) (5.16476300181631e-12,-1.32360465550258e-09,1.42359903941693e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.31171120717908e-12,-4.61852071980014e-12,6.89839455881701e-10) (-4.18541298374649e-12,-9.58411082884667e-12,6.89756629030386e-10) (-7.93748768291421e-12,-1.57540407681163e-11,6.89478494427362e-10) (-1.02109279105607e-11,-2.63252261537223e-11,6.90014441535914e-10) (-9.57289717928007e-12,-5.2710944525218e-11,6.92986695235868e-10) (-4.50003566160473e-12,-1.30405805678066e-10,6.96985349566157e-10) (-6.75087469411017e-12,-3.55003867863805e-10,6.79374488816269e-10) (-3.93484861047059e-12,-5.70011129725502e-10,5.79369138668904e-10) (-1.30006255583909e-12,-8.36347106217489e-10,4.22627991138475e-10) (4.22775538617017e-13,-1.18427167715008e-09,2.27952187841051e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.01043583541215e-12,-2.99086807260441e-12,1.00984446311586e-09) (-4.8880414460031e-12,-6.81088000221167e-12,1.00975880198482e-09) (-8.26580732307608e-12,-1.23764857384957e-11,1.00903778221871e-09) (-1.07795578118565e-11,-2.27577015602048e-11,1.00729854844894e-09) (-1.17473495687814e-11,-4.88720962683172e-11,1.00400798020136e-09) (-1.14425400868228e-11,-1.13805853696431e-10,9.91527549620874e-10) (-1.09619799002135e-11,-2.4948008091938e-10,9.48393263916939e-10) (-8.77007355294524e-12,-4.1229110980744e-10,8.32886297622088e-10) (-6.50589718763384e-12,-6.42052878671745e-10,6.44081491898707e-10) (-4.60025436705334e-12,-9.57267757505777e-10,3.69503096548603e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.32089095714965e-12,-1.40454765487245e-12,1.40092053864914e-09) (-6.06500210373004e-12,-3.44109042556971e-12,1.40070863579815e-09) (-8.79652846403607e-12,-6.95434751354942e-12,1.39986761486e-09) (-1.14474403825153e-11,-1.38835645689137e-11,1.39637004853659e-09) (-1.30804459738133e-11,-2.94671419004984e-11,1.38729442975949e-09) (-1.38746216590587e-11,-6.44591796160406e-11,1.36344418248321e-09) (-1.36005565328191e-11,-1.30150151309678e-10,1.3042963717212e-09) (-1.14427366270669e-11,-2.22116262665202e-10,1.17714125260609e-09) (-8.95332168020286e-12,-3.67574047399914e-10,9.56585100483719e-10) (-6.51750212612418e-12,-5.88763155327813e-10,5.8924613917138e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.66217129591987e-13,-2.73471846041828e-11,3.16746562325352e-11) (-2.36361908728109e-13,-5.97074522638758e-11,3.01116411544782e-11) (-7.22403705526203e-13,-1.0276966785926e-10,2.67874170289119e-11) (-9.22029690455774e-13,-1.59321287455177e-10,2.07092746460727e-11) (-8.0203144600899e-14,-2.36012707462085e-10,1.19208320808267e-11) (1.35903382293127e-12,-3.40374090289519e-10,5.42761058666717e-13) (2.52297079364655e-12,-4.82149837490097e-10,-9.82535488714457e-12) (3.1445091398443e-12,-6.60278567445062e-10,-1.16146017228328e-11) (3.3553727758353e-12,-8.61334709352804e-10,-8.49977742722905e-12) (3.82646833394641e-12,-1.03158699426314e-09,-4.15064800928655e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-9.96028445142385e-13,-2.58494366772914e-11,6.7993850090701e-11) (-5.21225384567201e-13,-5.67187862682335e-11,6.50301675311901e-11) (-1.02265012001719e-12,-9.73094987131619e-11,5.78132988800589e-11) (-1.31871168798488e-12,-1.51221708024384e-10,4.54102631029398e-11) (-6.15120963554611e-13,-2.25646828975145e-10,2.66867646042206e-11) (1.34628963321693e-12,-3.32044768596037e-10,5.35334273400657e-14) (3.67367958873019e-12,-4.83336238523172e-10,-2.87983907744697e-11) (8.00259640921199e-12,-6.66216974049256e-10,-2.96691931480054e-11) (8.82528645826434e-12,-8.67138235832413e-10,-1.85563304563285e-11) (9.10700513341691e-12,-1.03616652081832e-09,-8.06699417170503e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.04696693398015e-12,-2.28166575248151e-11,1.13083511374878e-10) (-8.7196708050066e-13,-4.98043184960033e-11,1.08650190608718e-10) (-1.92622829871049e-12,-8.55789980947251e-11,9.85799814029673e-11) (-3.1893736913483e-12,-1.33520145548945e-10,8.07690854957894e-11) (-4.07413201967105e-12,-2.01574265049162e-10,5.13890769933062e-11) (-3.55408966497691e-12,-3.09145736434544e-10,1.46755984718092e-12) (-4.28156802266557e-12,-4.92005206196708e-10,-7.45815842379267e-11) (1.371223984621e-11,-6.85560294084569e-10,-5.85133386963033e-11) (1.6389988177963e-11,-8.82273824317077e-10,-2.80546952547343e-11) (1.52457416982972e-11,-1.04658069805553e-09,-9.64146263959384e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.93382887179547e-13,-1.81945632842805e-11,1.71684420173981e-10) (-1.70409223519757e-12,-3.96503533043209e-11,1.66533938989139e-10) (-4.90045713233408e-12,-6.76937457325921e-11,1.55117513459794e-10) (-8.68464451115434e-12,-1.04858931898483e-10,1.34802434195462e-10) (-1.34604378063998e-11,-1.56206502674446e-10,9.83388097298434e-11) (-2.32070717780647e-11,-2.48896760767491e-10,2.24710641144357e-11) (-6.4574746117656e-11,-5.38124406695863e-10,-1.92999442749236e-10) (1.87468429092036e-11,-7.38841962822381e-10,-8.07397277511393e-11) (2.32341298348013e-11,-9.112866973531e-10,-1.92190324744685e-11) (1.95433040794284e-11,-1.06146524502521e-09,-6.26798703196753e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-9.06474752235096e-13,-1.27791352379599e-11,2.45067140707139e-10) (-3.37698678152933e-12,-2.79787484888073e-11,2.41415494589179e-10) (-8.02334920226537e-12,-4.69324695331573e-11,2.31920448864358e-10) (-1.53055294613125e-11,-6.92643958499307e-11,2.13978011844701e-10) (-2.97411111699601e-11,-8.90514152471137e-11,1.81202810103412e-10) (-7.23738526469335e-11,-8.4259650908679e-11,1.19513136372429e-10) (7.69255860570143e-11,-1.03239578566605e-09,-4.58622030487103e-17) (4.52990402383011e-11,-8.68977095969226e-10,8.24358429510805e-11) (2.92059929693256e-11,-9.49975891309216e-10,5.90680514636661e-11) (2.11713336607028e-11,-1.07089954227956e-09,3.36542398108133e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.89782059925841e-12,-8.81115015419084e-12,3.42617072278966e-10) (-4.77385390392595e-12,-1.7984060267452e-11,3.40193172579493e-10) (-9.77276272454458e-12,-2.77028021245998e-11,3.34224797941292e-10) (-1.83723600866574e-11,-3.50261756641821e-11,3.23139732404118e-10) (-3.48664272172682e-11,-2.92902575189463e-11,3.02242225361077e-10) (-8.36949389366661e-11,3.89004272297954e-12,2.50356797867588e-10) (3.61495076085654e-11,-1.0379059701284e-09,-5.85602053744429e-16) (3.66650763515263e-11,-8.90987871446822e-10,2.29958983128e-10) (2.37667188491763e-11,-9.40501506109846e-10,1.58983224077989e-10) (1.75391893765295e-11,-1.04516053035107e-09,8.17367479216267e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.36388703683632e-12,-5.63740692814193e-12,4.73371449466094e-10) (-5.45218017734115e-12,-1.04278360135505e-11,4.72037943493916e-10) (-1.0441040307994e-11,-1.3168500354529e-11,4.70061865412005e-10) (-1.61910036077184e-11,-6.12515271913773e-12,4.70340237339351e-10) (-9.70783517494024e-12,4.22245384804379e-11,4.87350306007626e-10) (1.02847352254749e-10,2.8256707492374e-10,6.04828155838157e-10) (-2.32817013283213e-11,-1.23171602937906e-09,1.33500003947653e-09) (5.02590957834306e-12,-8.77334359017008e-10,5.83240806538454e-10) (8.17095240168735e-12,-8.77093016026886e-10,3.13422462422777e-10) (8.19168859113585e-12,-9.68834863576712e-10,1.46596091816413e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.85653700303183e-12,-3.2916064626283e-12,6.41778653744181e-10) (-6.68050920739067e-12,-5.93390007508772e-12,6.41448720098295e-10) (-1.18509898210071e-11,-7.56976760801775e-12,6.41713395346737e-10) (-1.67507062042041e-11,-4.86848968462704e-12,6.45789129559465e-10) (-1.74103997663224e-11,3.41662042756094e-12,6.63699296608045e-10) (-3.48912689359555e-12,-2.03388178252656e-11,7.22894250255987e-10) (-1.22693114909535e-11,-5.03238590785023e-10,8.52411211244854e-10) (-4.91372099817096e-12,-6.14703190856885e-10,6.28206114946351e-10) (-9.18486804005468e-13,-7.12788508163722e-10,4.10386694413425e-10) (1.37104373510272e-12,-8.23312375965617e-10,2.066427929403e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.51109512222638e-12,-2.05568067460401e-12,8.37323633417435e-10) (-7.53681125652786e-12,-3.97645006992587e-12,8.37233293965967e-10) (-1.19487117781556e-11,-6.87050395090231e-12,8.37460887930228e-10) (-1.63631265556337e-11,-1.1054364599248e-11,8.39022753251995e-10) (-1.86718733561375e-11,-2.48555558738738e-11,8.44359695682993e-10) (-1.7654928463323e-11,-8.24042549447792e-11,8.53391999633637e-10) (-1.47849432151515e-11,-2.71817039657071e-10,8.44422207816604e-10) (-1.01401149716715e-11,-3.95735911828483e-10,7.06759323018815e-10) (-6.40633310941939e-12,-5.08932012078737e-10,5.11293505105616e-10) (-3.60175999649032e-12,-6.16298476339413e-10,2.73823795450975e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.51353576102745e-12,-9.24787452924394e-13,1.00449405074269e-09) (-8.66507159115583e-12,-2.11519588525008e-12,1.00477766598558e-09) (-1.22533096541683e-11,-4.66144795130386e-12,1.00516353784879e-09) (-1.62553861743204e-11,-9.4649477644828e-12,1.00432073621007e-09) (-1.86973405980409e-11,-2.13154036767328e-11,9.99764486663719e-10) (-1.91859905130153e-11,-5.51654496872852e-11,9.85024350509305e-10) (-1.65955887275352e-11,-1.28805300304521e-10,9.37273163012815e-10) (-1.30028471697411e-11,-1.98693084416488e-10,8.1174446436821e-10) (-9.18840776791735e-12,-2.7139247732782e-10,6.14130870499849e-10) (-6.03451828242211e-12,-3.42581676711126e-10,3.42604343582159e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.00949978422e-13,-2.99264411463476e-11,3.54702528463933e-11) (9.91962212082223e-14,-6.5095076009987e-11,3.3273102458585e-11) (-1.04430468789411e-13,-1.09624833809107e-10,2.89852407449934e-11) (-2.33166555995377e-13,-1.66225170827123e-10,2.19563911997257e-11) (9.31989390615586e-13,-2.38634780088966e-10,1.13483435224019e-11) (3.39782807527351e-12,-3.33285824268853e-10,-2.59478595417445e-12) (5.49861866239915e-12,-4.53834661680406e-10,-1.68635582150146e-11) (5.96809144844592e-12,-5.87810903751865e-10,-1.8828410844371e-11) (4.80976983750251e-12,-7.16226904633933e-10,-1.304865391511e-11) (4.25534687984897e-12,-8.04616794881945e-10,-6.34299752777479e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.06512503807173e-12,-2.81802427113275e-11,7.52484802305005e-11) (-2.18824505694725e-13,-6.14119641687505e-11,7.14151458127753e-11) (-3.5011496131714e-13,-1.03338758759291e-10,6.26185265487361e-11) (-2.96775664742662e-13,-1.56315806244232e-10,4.80608494735503e-11) (1.94554628739189e-12,-2.25046232299501e-10,2.51616620221141e-11) (7.29918167353456e-12,-3.19826392204462e-10,-9.26870804321831e-12) (1.32134496358317e-11,-4.53547304612631e-10,-5.38194294024665e-11) (1.62330537527597e-11,-5.95106636589208e-10,-5.28895864485405e-11) (1.34715386583228e-11,-7.23976346729245e-10,-3.15663105796177e-11) (1.14541881990206e-11,-8.11128570714491e-10,-1.35302827421369e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.23574040838857e-12,-2.4730778928958e-11,1.22906411327754e-10) (-9.55723066405331e-13,-5.31153023091334e-11,1.17712523431972e-10) (-2.00058475365797e-12,-8.92485854257611e-11,1.05973462242255e-10) (-2.47057883937345e-12,-1.34280757764076e-10,8.5348227441605e-11) (4.79622751719474e-13,-1.9183000176039e-10,4.97964077680114e-11) (1.22460787531275e-11,-2.77819640102472e-10,-1.50380103486098e-11) (2.57693869349384e-11,-4.61235239702687e-10,-1.62169194762571e-10) (3.65352651424171e-11,-6.20804448145384e-10,-1.29055616836988e-10) (2.69896285988223e-11,-7.44173060409395e-10,-5.85104682330783e-11) (2.04888260284775e-11,-8.25074125851285e-10,-2.02707189741233e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7.583297486681e-13,-1.98647935664816e-11,1.82172427017792e-10) (-1.95927152135433e-12,-4.17305955909685e-11,1.76096266297095e-10) (-5.34665406742386e-12,-6.87482527875837e-11,1.62721233895296e-10) (-7.81555609407705e-12,-9.95073819499413e-11,1.39493683205255e-10) (-4.74777961833206e-12,-1.28496484069333e-10,1.00742578173738e-10) (2.76263252267656e-11,-1.33682509382348e-10,4.29951914955086e-11) (3.17436917854407e-10,-5.21078346427538e-10,1.75253322916587e-16) (8.73612807794147e-11,-7.03137768281047e-10,-3.10529889360431e-10) (4.33310900195713e-11,-7.86450588180091e-10,-7.90379039754402e-11) (2.83508026303678e-11,-8.46355219392917e-10,-1.71974200092106e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.22281371803959e-12,-1.38491280824563e-11,2.53473766126098e-10) (-3.87662927806784e-12,-2.84559344319106e-11,2.48333761745276e-10) (-9.31057959117523e-12,-4.57917217514517e-11,2.36416688035032e-10) (-1.67685479057665e-11,-6.20094893842338e-11,2.13761544929659e-10) (-2.78125951671543e-11,-7.07565999003666e-11,1.7338906991105e-10) (-4.10103640439182e-11,-6.65263750500137e-11,1.04246027302402e-10) (-1.18293915634742e-16,7.24961769263479e-16,-2.94488771067109e-17) (9.06776072033359e-11,-9.5497590774045e-10,5.98420323808971e-17) (4.51454194227816e-11,-8.5312761312405e-10,1.928832974017e-11) (2.90865615430762e-11,-8.64738738675187e-10,1.92678265884836e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.64766412581512e-12,-8.74758554570507e-12,3.40953037713667e-10) (-6.3617035196275e-12,-1.6627897106392e-11,3.36649537230328e-10) (-1.32219989574631e-11,-2.40368690679608e-11,3.27681340405026e-10) (-2.63758759886415e-11,-2.49160656889266e-11,3.09982737274907e-10) (-5.44957957231772e-11,-1.0642583705855e-11,2.73828632302318e-10) (-1.12014587667686e-10,1.90203293600076e-11,1.91995537222996e-10) (-1.87083372258121e-18,5.48846107453263e-16,-5.38324844691494e-17) (9.39873229716386e-11,-9.36419685634621e-10,-2.67298729141413e-16) (3.7604704922609e-11,-8.45106605115921e-10,1.06384714501152e-10) (2.29502705236886e-11,-8.42616104808564e-10,6.65533993932244e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.37618153019502e-12,-4.7505676159217e-12,4.47687158776862e-10) (-7.9700380338582e-12,-7.90844948402157e-12,4.44893321415156e-10) (-1.63181449818534e-11,-7.35397002899306e-12,4.39758577463988e-10) (-3.44577353105211e-11,6.9448324062793e-12,4.31530935284173e-10) (-8.83777669526102e-11,5.42257085758555e-11,4.15876551794884e-10) (-3.24418638634701e-10,1.57154629702359e-10,3.59688177068711e-10) (9.30158274008239e-17,7.55287471624682e-16,-9.32896319265503e-16) (1.22130855338495e-11,-9.97891522077298e-10,6.31411309686659e-10) (1.06928151449524e-11,-7.93274610699141e-10,3.04477665127267e-10) (9.26529279637146e-12,-7.71051829695985e-10,1.35700545957227e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.76252914524867e-12,-2.12286439085304e-12,5.70436833770317e-10) (-8.90263446092139e-12,-2.95616338108527e-12,5.69601725980386e-10) (-1.66259876909188e-11,1.38167649286307e-13,5.68420207813558e-10) (-2.84749983381086e-11,1.83582838550262e-11,5.70014452975923e-10) (-4.83331771128522e-11,8.13495172503252e-11,5.86533549952205e-10) (-7.09406507629394e-11,3.10019597597407e-10,6.64069618313842e-10) (-1.94857663203232e-11,-6.31411428877256e-10,1.02487650748893e-09) (-6.06157949373817e-12,-6.2573046166593e-10,6.35913805939795e-10) (-1.03108141584453e-12,-6.12772956219296e-10,3.78443892597688e-10) (9.99937049276899e-13,-6.30653910375847e-10,1.81139590368192e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.55164889244204e-12,-1.0874782685236e-12,6.92528811345951e-10) (-9.62565940550014e-12,-1.62157757507512e-12,6.92006147384141e-10) (-1.57196330994507e-11,-1.21660458649276e-12,6.91763460170677e-10) (-2.32894858214489e-11,3.58520776315844e-12,6.93508782232631e-10) (-3.12443295039209e-11,1.08038996014628e-11,7.02625603164072e-10) (-3.59239419038146e-11,-9.2655983479562e-12,7.2728544938529e-10) (-2.01337977698824e-11,-2.7081404191211e-10,7.63813959883853e-10) (-1.17171244704635e-11,-3.64429498784098e-10,6.07784926188418e-10) (-6.47615820569648e-12,-4.12247696744314e-10,4.15855336983703e-10) (-3.4947641737458e-12,-4.47654459805664e-10,2.12848346367929e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.72193845684598e-12,-3.78266817464759e-13,7.77495269837434e-10) (-1.11661393396097e-11,-8.19287261479431e-13,7.76951241179015e-10) (-1.60719559667522e-11,-1.80067194516353e-12,7.76637752003479e-10) (-2.1164084392455e-11,-3.0966276415626e-12,7.76258992569353e-10) (-2.52726081203599e-11,-8.66939087513471e-12,7.75327926984848e-10) (-2.66002527038111e-11,-3.56748666255403e-11,7.69749496189789e-10) (-1.98721903874515e-11,-1.17747404902847e-10,7.37459428778186e-10) (-1.40823377178683e-11,-1.72261237143689e-10,6.19617940315322e-10) (-9.05435817800678e-12,-2.08829909914687e-10,4.46390656068056e-10) (-6.01185141143881e-12,-2.34964750271149e-10,2.3637390871271e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1.50001974375929e-13,-3.22035614933387e-11,3.69390950697802e-11) (7.03946093560139e-13,-6.84323191977026e-11,3.44987376116199e-11) (6.38344026660577e-13,-1.12362058924796e-10,2.98179709325115e-11) (4.65516538432194e-13,-1.6598353103505e-10,2.25110247780072e-11) (1.28657107772511e-12,-2.31009312370665e-10,1.14845310002712e-11) (4.20716827171089e-12,-3.13490840820728e-10,-2.76860499294994e-12) (7.17611422402566e-12,-4.12599457667395e-10,-1.7411074179468e-11) (7.48406735645957e-12,-5.15016336345299e-10,-1.98416383523042e-11) (5.85355554554208e-12,-6.02666511463911e-10,-1.39840053210763e-11) (4.42412518465885e-12,-6.56153963675514e-10,-6.88435648342545e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.81254402704071e-13,-2.99162562454891e-11,7.83151088753656e-11) (2.81132898714409e-13,-6.38484845354218e-11,7.4084683130242e-11) (1.17388780359127e-13,-1.05306115461932e-10,6.47619446685086e-11) (5.67363306515925e-13,-1.55190043101431e-10,4.94796340407286e-11) (3.15968581361327e-12,-2.16707892847924e-10,2.59878151482617e-11) (9.84315093077579e-12,-2.98067340854093e-10,-8.79470729171934e-12) (1.99715417719344e-11,-4.08849960659767e-10,-5.36067142270725e-11) (2.06075894400557e-11,-5.19666883215244e-10,-5.53587962082234e-11) (1.56322245009207e-11,-6.09079370672793e-10,-3.42573490538604e-11) (1.18694605937293e-11,-6.62012821337381e-10,-1.51203579805414e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-9.0783787507638e-13,-2.61079211485986e-11,1.27234823583544e-10) (-6.01368594853406e-13,-5.50675669424663e-11,1.21667734332687e-10) (-1.87568259119366e-12,-9.05527951885522e-11,1.0910349190222e-10) (-1.6921349799049e-12,-1.31998933919911e-10,8.74352404767691e-11) (1.98052317724615e-12,-1.81505772760777e-10,5.12476253093268e-11) (1.52401324469708e-11,-2.51173772705364e-10,-1.24949451521691e-11) (5.24989157342038e-11,-4.03448808396226e-10,-1.51964897579814e-10) (4.8323436674094e-11,-5.37200944002395e-10,-1.32983536824943e-10) (3.10274071105783e-11,-6.25582694125033e-10,-6.34420369073395e-11) (2.14992005957841e-11,-6.74367782071613e-10,-2.28446481276431e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.97834511976884e-13,-2.1003781835183e-11,1.83969911979504e-10) (-1.85890027860507e-12,-4.32399412716728e-11,1.77912005851654e-10) (-5.07563441349416e-12,-6.95157283116852e-11,1.63670798400584e-10) (-6.56234362826633e-12,-9.64490379495851e-11,1.39186070804334e-10) (-4.74027710907103e-12,-1.17416054482678e-10,1.00447820494115e-10) (3.46520713660698e-12,-1.07931003077211e-10,4.62254171992279e-11) (1.06887911078856e-10,-4.14434967300255e-10,9.88647831813012e-17) (1.07707434853834e-10,-5.98076234092079e-10,-3.07972561326444e-10) (4.81676309973153e-11,-6.59819386487794e-10,-8.64047256679913e-11) (2.95369019034629e-11,-6.92222113735856e-10,-2.09870146496163e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.1843518739811e-12,-1.50439182681085e-11,2.50348213232694e-10) (-3.78759289333558e-12,-2.96231256955429e-11,2.44543511689652e-10) (-8.41028916931648e-12,-4.61696754820173e-11,2.31232783501344e-10) (-1.34894965824427e-11,-5.9765580967883e-11,2.06411271130719e-10) (-1.87835687530381e-11,-6.54942050788722e-11,1.64148842515065e-10) (-2.2311011702685e-11,-6.01682406928171e-11,9.59583518751541e-11) (-3.14691633121324e-17,3.65780655744961e-16,-2.76439393741404e-17) (5.28331151993713e-11,-8.05378631122386e-10,6.88099562589271e-17) (3.71449145663532e-11,-7.14554229327254e-10,8.96014070659671e-12) (2.62317542649415e-11,-7.06265950677786e-10,1.32259446189078e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.34118157224465e-12,-9.26510384203856e-12,3.2704010709592e-10) (-6.11295431673493e-12,-1.70384778306847e-11,3.21600676559371e-10) (-1.22062948662557e-11,-2.38735706802627e-11,3.1054995368423e-10) (-2.20826691113316e-11,-2.377372366974e-11,2.89336664056144e-10) (-3.7530992925547e-11,-1.11581442294467e-11,2.47571875216914e-10) (-5.8153296954546e-11,1.15172481661404e-11,1.62751333771553e-10) (5.15404677826313e-18,2.16450159839103e-16,-4.57775391706817e-17) (4.90741776144366e-11,-7.78080951711808e-10,-1.97880198254896e-16) (2.56040256137341e-11,-7.03072208843751e-10,8.72422317651963e-11) (1.79393948043401e-11,-6.84301876399911e-10,5.59686751121023e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.21004739360199e-12,-4.62674890033315e-12,4.12444869025136e-10) (-7.78758018559244e-12,-7.84960787764724e-12,4.08657141262325e-10) (-1.55826404803034e-11,-6.88621646758517e-12,4.01033599667738e-10) (-3.02168032699764e-11,7.25198830615888e-12,3.87573143799912e-10) (-5.93132009009197e-11,4.69764628382048e-11,3.59769801426146e-10) (-1.17594496564748e-10,1.2003360607093e-10,2.8249463300507e-10) (3.45975770784845e-17,3.48354478033499e-16,-4.68298310365363e-16) (-3.30143303181668e-11,-8.27789320372077e-10,5.36253340236085e-10) (-1.0317201648297e-12,-6.56243404030792e-10,2.61430062513957e-10) (4.56791943346904e-12,-6.20247439953344e-10,1.16594238930322e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.96280747764582e-12,-1.55668716122998e-12,5.02359818452746e-10) (-9.05570210011671e-12,-2.37916669393027e-12,5.00836654458047e-10) (-1.68654606175128e-11,1.62512789479835e-12,4.97242310004742e-10) (-3.02210192224868e-11,2.23599182024615e-11,4.94390603451348e-10) (-5.53236278256433e-11,8.96858776481302e-11,5.02090302529642e-10) (-1.12462343992609e-10,3.17197853775822e-10,5.60827460940907e-10) (8.87954826365902e-12,-5.36253445280059e-10,8.74673341120378e-10) (-9.8926290334724e-12,-5.28746910000564e-10,5.4351899842071e-10) (-4.25203866127626e-12,-5.0229590530548e-10,3.20522517274822e-10) (-8.59923152772231e-13,-4.98615831320505e-10,1.51689758718836e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.73819638162636e-12,-4.26217671618558e-13,5.83741688155723e-10) (-1.01852625056141e-11,-5.95850073202016e-13,5.8263266070466e-10) (-1.68808878028387e-11,8.05144217968974e-13,5.80422490806307e-10) (-2.57244713481561e-11,7.89776153034085e-12,5.79183742431e-10) (-3.64308852485341e-11,2.03288979516731e-11,5.83957505896699e-10) (-4.60431841248177e-11,1.0940370217748e-11,6.03358617720187e-10) (-1.71714010836922e-11,-2.28719241820775e-10,6.36525898882702e-10) (-1.19557969061609e-11,-3.0539682515156e-10,5.0099989880744e-10) (-6.88695441955656e-12,-3.31477508319317e-10,3.36265823494853e-10) (-3.33612734027192e-12,-3.45294305917434e-10,1.68861833265388e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.55617661589227e-12,-1.07031944022066e-13,6.34279820550945e-10) (-1.16719374255526e-11,-1.03127217793622e-13,6.33084215182446e-10) (-1.74938684777896e-11,-2.28027217822196e-13,6.30845188271828e-10) (-2.33296464495125e-11,-2.84165745724259e-13,6.28278202928807e-10) (-2.83635682004356e-11,-3.66884532349412e-12,6.25476286229308e-10) (-2.9985051917749e-11,-2.54908850246246e-11,6.19460731298748e-10) (-1.97781068274336e-11,-9.90961971541356e-11,5.91481555162587e-10) (-1.31162906142911e-11,-1.42553027428835e-10,4.89373200100904e-10) (-7.86752073734418e-12,-1.64619201181615e-10,3.444785025754e-10) (-4.60269296990328e-12,-1.76617447801953e-10,1.78158887485636e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (3.03054184740369e-13,-3.45119268120502e-11,3.80892809405181e-11) (8.00878110355973e-13,-7.1515240896853e-11,3.57764963272268e-11) (8.89346718303485e-13,-1.13364471929854e-10,3.08321635876862e-11) (6.98522382537065e-13,-1.62342329740329e-10,2.36442633462133e-11) (1.23828754820518e-12,-2.20951897218691e-10,1.36604116490158e-11) (3.42613749160235e-12,-2.92500588340065e-10,1.22983312748403e-12) (5.85718138920822e-12,-3.74133231737486e-10,-1.11119631893803e-11) (6.27698119519202e-12,-4.54253187646804e-10,-1.4389779331453e-11) (5.16676591679746e-12,-5.17459300881912e-10,-1.08165414669197e-11) (3.39862636311676e-12,-5.53556517110245e-10,-5.33743314416835e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.5916375447501e-13,-3.20294162977931e-11,7.88601883846351e-11) (8.22953767477132e-13,-6.66178989405434e-11,7.498003484529e-11) (6.46379134774391e-13,-1.06123393829578e-10,6.61759554597372e-11) (8.6807301746771e-13,-1.52015246224613e-10,5.17359489771927e-11) (2.74008816643487e-12,-2.08047070359165e-10,3.08695756330796e-11) (7.76158971738075e-12,-2.78653508415746e-10,1.28079014753579e-12) (1.63224714895431e-11,-3.67664127944211e-10,-3.42661909733079e-11) (1.70402030728423e-11,-4.54362248627194e-10,-3.91211347167138e-11) (1.29985568798448e-11,-5.20425206848183e-10,-2.53371958335911e-11) (9.10406334728563e-12,-5.57387824175519e-10,-1.12781814686899e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.44887937626426e-13,-2.81305430597014e-11,1.27171047850092e-10) (1.35248164815392e-13,-5.79218262853598e-11,1.21573839882612e-10) (-1.24449804260428e-12,-9.17084294629648e-11,1.09693141136153e-10) (-1.05441578279696e-12,-1.30523712806366e-10,8.94435959469007e-11) (1.63337536066794e-12,-1.76708800995179e-10,5.72993095410199e-11) (1.14673152464366e-11,-2.37692509483537e-10,4.84776265098128e-12) (4.45037138833878e-11,-3.49963877786616e-10,-9.46980585672671e-11) (3.96572268461849e-11,-4.57501490236327e-10,-9.09728169437044e-11) (2.4666710693718e-11,-5.27692543760443e-10,-4.48974826703942e-11) (1.65088841323747e-11,-5.64005372654066e-10,-1.63357954315642e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.99791951187849e-13,-2.2775247313695e-11,1.81672906991411e-10) (-1.23450840365567e-12,-4.61648870272261e-11,1.75482431730529e-10) (-3.93695964694531e-12,-7.17364671609003e-11,1.61716741487442e-10) (-4.50755029971239e-12,-9.84120103463638e-11,1.38353188546502e-10) (-2.4397232180135e-12,-1.22118119284972e-10,1.02147609002973e-10) (1.92776308663373e-12,-1.25935931957577e-10,5.19112962900117e-11) (4.25238189172074e-13,-3.02594529547567e-10,7.59012830781569e-12) (9.34419962256723e-11,-4.72897479558231e-10,-2.04202810120327e-10) (3.74847628184282e-11,-5.41701865400604e-10,-5.64103922501595e-11) (2.25937241957515e-11,-5.71550281919755e-10,-1.29432847313685e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.15846475703766e-12,-1.67970914109134e-11,2.42692223690351e-10) (-3.06151256986263e-12,-3.2935149480338e-11,2.36366120955025e-10) (-5.88488160043795e-12,-4.99381914478999e-11,2.22769411730016e-10) (-7.21892526493634e-12,-6.45956082666639e-11,1.98962897915602e-10) (-4.92913896255486e-12,-7.30556619600523e-11,1.60317954047936e-10) (1.96187895746861e-12,-7.05259084079699e-11,9.94668558346254e-11) (2.14074369606583e-17,3.70777905942952e-16,-1.01722075170335e-16) (1.65753638921576e-11,-5.30683951055221e-10,2.86338687664572e-11) (2.13970901705855e-11,-5.59600424180229e-10,2.05639595366031e-11) (1.74936246060544e-11,-5.72390166134049e-10,1.57521927895763e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.54010597742216e-12,-1.05807453327636e-11,3.09929866342737e-10) (-4.25110139461679e-12,-2.0428646428869e-11,3.04116855088405e-10) (-7.98035945086955e-12,-2.92016353993218e-11,2.92183020385993e-10) (-1.13435922479607e-11,-3.25400171331817e-11,2.70911886791129e-10) (-1.08450585478602e-11,-2.62582615435064e-11,2.32624324020934e-10) (-3.9182753102496e-12,-9.51306852744784e-12,1.59418262024806e-10) (2.53523876680808e-17,2.48795702319196e-16,-1.35466538357517e-16) (1.154011662931e-11,-5.03240205920763e-10,7.79073610312306e-11) (1.00487774538998e-11,-5.39956842477206e-10,8.92433872087402e-11) (9.85363346985734e-12,-5.46958967735987e-10,5.11777753053939e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.49238136992221e-12,-5.45417859030393e-12,3.80060248097002e-10) (-5.63447977472657e-12,-1.06305660298905e-11,3.75894687532194e-10) (-1.06335289748473e-11,-1.27391560964842e-11,3.67053692195556e-10) (-1.75213907925318e-11,-5.5755845597392e-12,3.51530910782803e-10) (-2.47474472897453e-11,1.89930315515481e-11,3.22568096847705e-10) (-3.22636429662715e-11,6.76796999346496e-11,2.52268608512797e-10) (1.96977170756283e-17,3.11005718348459e-16,-4.27883391927718e-16) (-5.72334629675265e-11,-4.87802813189021e-10,3.53179385881152e-10) (-1.01433953065599e-11,-4.91553544583283e-10,2.02594535844479e-10) (-4.69450269057385e-13,-4.89558207420361e-10,9.53822005201416e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.57011297258799e-12,-2.19724563250153e-12,4.4794103374299e-10) (-7.24467426752405e-12,-4.39691399921436e-12,4.45743443825809e-10) (-1.31937703872691e-11,-3.28183512950454e-12,4.40263520902027e-10) (-2.3458561628698e-11,8.73171377367636e-12,4.32483121384986e-10) (-4.47038065404354e-11,4.9087623098047e-11,4.26728546444692e-10) (-1.20050740614034e-10,1.83347105022353e-10,4.36584961249643e-10) (3.2499687504053e-11,-3.29243463980474e-10,5.15735541341655e-10) (-1.02462327365981e-11,-3.75125416855292e-10,3.9252419998118e-10) (-6.23767709148643e-12,-3.87826456872495e-10,2.50600085575863e-10) (-2.49168983708164e-12,-3.9285229417407e-10,1.22062842113834e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.9483546581709e-12,-8.46196206099154e-13,5.04650814920682e-10) (-8.46781546263641e-12,-1.5604206417315e-12,5.03192711100274e-10) (-1.46089679917616e-11,-1.41957413841055e-12,4.99528963479446e-10) (-2.23163075378082e-11,1.48338480752696e-12,4.94160131640641e-10) (-3.18342537968344e-11,5.89657095429993e-12,4.89343331980697e-10) (-4.27792100449612e-11,-7.33247511062096e-12,4.87578570962578e-10) (-1.12684456751174e-11,-1.69231805510634e-10,4.8100637553775e-10) (-1.00655193163063e-11,-2.34758614785608e-10,3.8986571121487e-10) (-6.34127132779521e-12,-2.60482155374074e-10,2.65836651932481e-10) (-3.15115219034275e-12,-2.71267327263222e-10,1.34123928759896e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-4.46760319141532e-12,-2.8341893575191e-13,5.38196826324237e-10) (-9.53603773272864e-12,-4.8844101029693e-13,5.36819392033682e-10) (-1.515491035259e-11,-8.71278247661918e-13,5.33309812380626e-10) (-2.08118954957383e-11,-2.07338746715875e-12,5.27673012390016e-10) (-2.60168585933692e-11,-6.97592104329385e-12,5.19409252963385e-10) (-2.74967608062133e-11,-2.52667558944051e-11,5.04560543560011e-10) (-1.6765948919886e-11,-7.86938979673169e-11,4.69987813108718e-10) (-1.07746205176195e-11,-1.12782225613917e-10,3.86712771929764e-10) (-6.1671068292102e-12,-1.30025727210399e-10,2.7100767021105e-10) (-3.06125328623194e-12,-1.38108330156302e-10,1.39498894782787e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1.33328283827808e-13,-3.66708798561184e-11,3.95705478755507e-11) (8.47868893538412e-13,-7.45741010391854e-11,3.74770799208684e-11) (8.36168859537896e-13,-1.15720558077698e-10,3.29242688441553e-11) (3.55290564003903e-13,-1.61033803912528e-10,2.63334769326442e-11) (7.64039210205127e-13,-2.1411956161536e-10,1.77374002458805e-11) (1.92085388414302e-12,-2.76466384670189e-10,7.72527925433664e-12) (2.66589373798558e-12,-3.44223471111435e-10,-1.39430133842162e-12) (2.81280431108478e-12,-4.08202500354301e-10,-5.26818489243294e-12) (2.65356356027434e-12,-4.56601962466865e-10,-5.1500338773497e-12) (1.89250028421519e-12,-4.83609954280345e-10,-2.91407825000745e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.77883453206358e-13,-3.44118298334982e-11,8.02676577869369e-11) (9.30960497867763e-13,-7.02137502820028e-11,7.68284889138167e-11) (6.71421250677312e-13,-1.09085079175882e-10,6.89865215391156e-11) (2.42912943328117e-13,-1.52255629924774e-10,5.59321604898821e-11) (9.90604288013201e-13,-2.03617674487045e-10,3.8338543045713e-11) (2.34757190599619e-12,-2.66351801873265e-10,1.58678654802786e-11) (3.47716507537327e-12,-3.38910827236482e-10,-7.50061692651438e-12) (6.39550579884431e-12,-4.06129419633518e-10,-1.43662273080869e-11) (6.2068794272381e-12,-4.56621195592695e-10,-1.06665435813461e-11) (4.44343035716285e-12,-4.84681293966056e-10,-4.89499524522454e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.02975716135077e-13,-3.06206019036236e-11,1.27302587448732e-10) (2.59007653129681e-13,-6.20563710645192e-11,1.21870586512127e-10) (-9.66915155392296e-13,-9.57263776124749e-11,1.10943426575412e-10) (-1.02183183689016e-12,-1.33981308700209e-10,9.27304796289411e-11) (-5.05759459533113e-13,-1.79931859361488e-10,6.59821458077947e-11) (-7.43441061283687e-13,-2.40980396994381e-10,2.74072291932481e-11) (-6.59087597921422e-12,-3.28945047514617e-10,-2.47006339704868e-11) (8.97788189476251e-12,-4.04681271553149e-10,-2.94095714846505e-11) (1.01143450950531e-11,-4.57615213567022e-10,-1.56322298876205e-11) (7.71799796648989e-12,-4.85899671924538e-10,-5.35776597494315e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.87472593098519e-13,-2.51831317520688e-11,1.78763917764039e-10) (-6.98555707473622e-13,-5.08179489421032e-11,1.72473791484495e-10) (-2.37168241899377e-12,-7.76537216127364e-11,1.59524431531093e-10) (-2.11837283590019e-12,-1.07149763434254e-10,1.38450165516977e-10) (-1.2658678299509e-12,-1.40760254239401e-10,1.0627052253586e-10) (-9.16109248078156e-12,-1.87945563262836e-10,5.49757375356028e-11) (-9.03767237081062e-11,-3.26324751495802e-10,-6.27879041291651e-11) (3.43604985253324e-12,-4.10398026059699e-10,-3.73571097893998e-11) (1.19162140792073e-11,-4.60379506726901e-10,-8.29544058934999e-12) (1.04903236786492e-11,-4.85504903876298e-10,1.26239198860387e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.04870809985502e-12,-1.91135530327007e-11,2.34469443017831e-10) (-1.97130639633563e-12,-3.81229134863318e-11,2.27848598323517e-10) (-2.81492383460088e-12,-5.76380952258894e-11,2.14402556996851e-10) (-6.29572530758137e-13,-7.6018732583788e-11,1.93698368425911e-10) (9.12455883421822e-12,-9.00337456984543e-11,1.64628261253966e-10) (4.04159966336688e-11,-7.54448955247121e-11,1.30283358690283e-10) (-2.86338270988921e-11,-4.23086643529113e-10,1.17807570390529e-10) (-2.79847201249288e-12,-4.33126223377679e-10,6.06995989574107e-11) (6.56527521449557e-12,-4.60250492912011e-10,4.02122438056844e-11) (7.81461899758689e-12,-4.76677556874853e-10,2.23332937655916e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8.53661465590322e-13,-1.29276868167445e-11,2.93465844495233e-10) (-2.11534709115963e-12,-2.58039194303995e-11,2.87618317923581e-10) (-3.17170515882952e-12,-3.8627374079572e-11,2.7569056304284e-10) (-2.04620512123371e-14,-4.81462173551663e-11,2.57453488990242e-10) (1.71097103532077e-11,-5.12839255137622e-11,2.33065669859409e-10) (7.83073537190215e-11,-3.11327766150889e-11,2.09166137850981e-10) (-7.79075333553973e-11,-3.85291126816708e-10,2.15938246286724e-10) (-1.52333022799338e-11,-4.1181147999907e-10,1.42940348957751e-10) (-2.88908536548852e-13,-4.36115805445568e-10,9.63157411109346e-11) (3.63064845962057e-12,-4.48197656150677e-10,4.94059930894924e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.58375376292882e-12,-7.38394626755071e-12,3.51827546264683e-10) (-3.02713646881744e-12,-1.52657766682861e-11,3.47476317769373e-10) (-4.56806852903905e-12,-2.28555841857191e-11,3.3857980542005e-10) (-2.86587519085255e-12,-2.57825344172442e-11,3.24955081343622e-10) (1.54574494986805e-11,-1.93167554675852e-11,3.09772402550919e-10) (1.04337988342219e-10,2.22867734627284e-11,3.11429625836271e-10) (-2.39360190806083e-11,-3.76893691776087e-10,4.43626016862821e-10) (-1.93260092646285e-11,-3.73915687979786e-10,2.68516746437024e-10) (-6.6581476930204e-12,-3.87670602093871e-10,1.63646458055229e-10) (-1.79316299525081e-12,-3.9555848303467e-10,7.91592311750954e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.72357248180177e-12,-3.88695027476846e-12,4.05861315649943e-10) (-4.60124470127942e-12,-8.39687567448134e-12,4.02829942880449e-10) (-7.27563186127285e-12,-1.2761698670152e-11,3.96391556432203e-10) (-1.04556577222848e-11,-1.41371325872639e-11,3.86763860672197e-10) (-1.13691692016326e-11,-1.33255998173822e-11,3.77438600093126e-10) (-8.52174057306019e-12,-2.74130889841383e-11,3.75228245645139e-10) (-4.30062960528279e-12,-2.21636276438734e-10,3.87343048147993e-10) (-8.68892040097568e-12,-2.82129241711942e-10,2.99615750857829e-10) (-5.04473512787869e-12,-3.06227942342835e-10,1.98411275666045e-10) (-2.01381463407008e-12,-3.16487865196837e-10,9.88065085872419e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.05302810808411e-12,-2.19004383063427e-12,4.48770784432709e-10) (-5.87604747324554e-12,-4.46469512418143e-12,4.46580306696569e-10) (-9.78843204369378e-12,-7.44728614318371e-12,4.41856305516122e-10) (-1.39427356031908e-11,-1.13716571485502e-11,4.33703811754912e-10) (-1.71970007811238e-11,-1.97025363659829e-11,4.2303657785773e-10) (-1.82727338363981e-11,-4.77966338971032e-11,4.0916780963024e-10) (-1.06656888955007e-11,-1.34761720786332e-10,3.83162826333999e-10) (-8.0128492056068e-12,-1.84786488998612e-10,3.10270675501358e-10) (-5.08497631888866e-12,-2.08421657872827e-10,2.13850421649332e-10) (-2.18622053735227e-12,-2.18876571405883e-10,1.0886318521919e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.37358783661247e-12,-1.1609295660541e-12,4.73644840109017e-10) (-6.51489908996897e-12,-2.20926977551539e-12,4.71415574730557e-10) (-1.03893886096426e-11,-3.76382585817669e-12,4.6693794774244e-10) (-1.46215235362651e-11,-7.04143170193907e-12,4.58870028050518e-10) (-1.81440702332887e-11,-1.45246819676081e-11,4.46315927970637e-10) (-1.81907862493311e-11,-3.17258110860404e-11,4.24762584017631e-10) (-1.21848057082507e-11,-6.60251918975874e-11,3.85432222335542e-10) (-7.8517444128245e-12,-9.12489138308255e-11,3.14595687384453e-10) (-4.68405861135843e-12,-1.05174870666961e-10,2.20498788778611e-10) (-1.67068865975403e-12,-1.12033806881306e-10,1.13765766793926e-10) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.22537840868837e-14,-3.82350131427203e-11,4.10835775938899e-11) (1.04032921306979e-12,-7.69935888585738e-11,3.88211475556541e-11) (7.91481869225769e-13,-1.17764602876699e-10,3.48286664523669e-11) (1.73193263019964e-13,-1.61083493906241e-10,2.91356632090354e-11) (2.74273073416392e-13,-2.10185082946895e-10,2.20165069702839e-11) (9.25851680015484e-13,-2.65893382915611e-10,1.37218661887623e-11) (1.22713341704492e-12,-3.23639624733428e-10,6.35293645720845e-12) (6.21572575180301e-13,-3.77090918695683e-10,2.10420980757637e-12) (4.36841058769502e-13,-4.16297866000812e-10,1.0184975537595e-13) (4.97617199480636e-14,-4.37718563804983e-10,-2.95508905394907e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.29942509966563e-13,-3.60047184062993e-11,8.25170395220911e-11) (6.15548655063166e-13,-7.27192822245905e-11,7.86879886340223e-11) (3.67080736501905e-13,-1.11540323432143e-10,7.12996694684225e-11) (-4.37790837036755e-13,-1.53663850385194e-10,5.98438279014747e-11) (-2.24533272132162e-13,-2.01690921601818e-10,4.53118370528157e-11) (3.44649433890991e-13,-2.58092000478044e-10,2.83612472706441e-11) (3.76995735131004e-13,-3.18907617548582e-10,1.22634312763026e-11) (1.24767399171711e-12,-3.74586349677428e-10,3.80586344569266e-12) (1.42934906543354e-12,-4.15319866851257e-10,1.24049840070623e-12) (7.66813070447703e-13,-4.37476088110586e-10,7.27112263779555e-13) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.08444931073886e-13,-3.24121807307384e-11,1.27621913286683e-10) (-5.22545325696002e-14,-6.52001703898756e-11,1.22507697364238e-10) (-8.26624208657978e-13,-9.97242762168953e-11,1.12283441210785e-10) (-1.10504328170416e-12,-1.38797955097666e-10,9.60617975164024e-11) (-1.10244796708472e-12,-1.84579570143359e-10,7.46160530574647e-11) (-1.67041162906957e-12,-2.41845635823049e-10,4.82543421442407e-11) (-4.50223448397371e-12,-3.10379601845516e-10,2.00453760880092e-11) (9.17294804350709e-13,-3.70798820181884e-10,7.95543091016796e-12) (2.60417434224618e-12,-4.13434637496498e-10,5.16530736994992e-12) (1.96546394329895e-12,-4.35871109035839e-10,3.31170549524812e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.66925032930075e-13,-2.74477166430924e-11,1.76084973509905e-10) (-4.44231209845241e-13,-5.5170199639795e-11,1.70299423771342e-10) (-1.31304279169295e-12,-8.40863041557432e-11,1.5852313052273e-10) (-1.06976070524129e-12,-1.17638552506402e-10,1.39912386142645e-10) (-6.97591370684519e-13,-1.58579345336663e-10,1.14252663939952e-10) (-3.89811855413357e-12,-2.14636354251275e-10,8.12703065332392e-11) (-1.90456260145624e-11,-3.01379880388669e-10,4.00450547561647e-11) (-2.89742202957992e-12,-3.66739791441899e-10,2.56810990376784e-11) (2.22936768635358e-12,-4.09140869190938e-10,1.96996692446956e-11) (2.92536866583044e-12,-4.30698330145694e-10,1.13893638655352e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-6.13729621495154e-13,-2.16428295003341e-11,2.27800373008709e-10) (-8.44259125598727e-13,-4.34447669291252e-11,2.21422986709105e-10) (-1.12145640997112e-12,-6.61941417542407e-11,2.08977171165532e-10) (5.68019412546473e-13,-9.23908973564987e-11,1.90616558508004e-10) (4.71964121320914e-12,-1.25854535728646e-10,1.66766416912984e-10) (8.57966602383874e-12,-1.76194408774482e-10,1.39415664881406e-10) (-9.32137237819671e-12,-3.02018326546112e-10,1.12396213696245e-10) (-3.62586023933593e-12,-3.62003966419343e-10,7.94003485111716e-11) (3.09537788213431e-13,-3.98246017682875e-10,5.31612934870146e-11) (1.6680120389657e-12,-4.16496260632612e-10,2.73652733451036e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.49875443118395e-13,-1.56592928087106e-11,2.81673578926832e-10) (-7.25734972529553e-13,-3.14481985645298e-11,2.75220241734043e-10) (-7.06421000084342e-13,-4.85572690395982e-11,2.63658713927406e-10) (2.00367414170903e-12,-6.82628389156022e-11,2.47311188757965e-10) (9.04207231546205e-12,-9.53934184134348e-11,2.27056727413307e-10) (1.81156952054645e-11,-1.42642768565088e-10,2.06192913129556e-10) (-1.33070710670176e-11,-2.7628624229938e-10,1.86771021210627e-10) (-6.50448645246902e-12,-3.37696103090374e-10,1.40706888002148e-10) (-1.82436386678226e-12,-3.70909792299328e-10,9.42612557244381e-11) (3.97468433156409e-13,-3.86800743128371e-10,4.75240841121517e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-7.29521260435624e-13,-9.58015070403309e-12,3.32796028172905e-10) (-9.99525113286254e-13,-2.03166406967768e-11,3.27507463674963e-10) (-1.03722996819346e-12,-3.29483596983192e-11,3.18182296830513e-10) (6.71401771860066e-13,-4.74016901777395e-11,3.04649210703611e-10) (7.80907056316295e-12,-6.8751227124508e-11,2.89187596946199e-10) (2.18414597625017e-11,-1.09342777777749e-10,2.7711749951881e-10) (-4.08416399208577e-12,-2.41478761580376e-10,2.74981668373657e-10) (-6.24216715065189e-12,-2.95851318822777e-10,2.07819188507385e-10) (-3.61358056392073e-12,-3.24630754711455e-10,1.37404912123218e-10) (-1.70454965799556e-12,-3.38239152716083e-10,6.84321718386004e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.3891061564205e-12,-5.03406153629127e-12,3.77977497451329e-10) (-2.0950388033467e-12,-1.19738327642211e-11,3.74359841712583e-10) (-2.96234862821888e-12,-2.08154271762893e-11,3.67075043976331e-10) (-3.89587258192893e-12,-3.22862634114016e-11,3.55915027196713e-10) (-2.7818782050399e-12,-5.13780978886231e-11,3.4238202983227e-10) (-2.52998162853834e-13,-8.97692428859979e-11,3.26809598222782e-10) (-3.44788796761307e-12,-1.7781343534563e-10,3.04169243772783e-10) (-4.82719792250135e-12,-2.30116013584579e-10,2.42316143813882e-10) (-3.24625251909602e-12,-2.57800648016726e-10,1.6535854454678e-10) (-8.18599837774918e-13,-2.70676899796669e-10,8.35461464289333e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.89166463652859e-12,-2.56721035075097e-12,4.12841023302083e-10) (-3.40747164145089e-12,-6.34430905926834e-12,4.10469777312747e-10) (-5.31939856747934e-12,-1.20456916973365e-11,4.05028335081946e-10) (-7.60572715262385e-12,-2.16509980554252e-11,3.95402894767335e-10) (-8.50608695204287e-12,-3.78002118861504e-11,3.80540654878626e-10) (-8.33857335124044e-12,-6.71067875275423e-11,3.58471736464094e-10) (-6.51006695155654e-12,-1.18096832953975e-10,3.22814384851185e-10) (-5.13017052138063e-12,-1.56156852375709e-10,2.60822579441885e-10) (-3.34452709459436e-12,-1.77711011269167e-10,1.81010313953502e-10) (-1.65799842741605e-13,-1.87850393446772e-10,9.21752885942473e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.30525202420656e-12,-1.28409092646484e-12,4.32772733128243e-10) (-4.24654187736754e-12,-2.84885173555536e-12,4.30480322611868e-10) (-6.08529477589754e-12,-5.56983969816524e-12,4.25873096334068e-10) (-9.10885515832193e-12,-1.12015036449588e-11,4.17255438859104e-10) (-1.11154082478896e-11,-2.07254963688082e-11,4.0126260041301e-10) (-1.05862356532796e-11,-3.62495313085452e-11,3.7461959746046e-10) (-7.3734626547544e-12,-5.95157809863678e-11,3.32738165568271e-10) (-5.00375963780449e-12,-7.88529820424519e-11,2.69737928530199e-10) (-3.12590729364082e-12,-9.04344546065039e-11,1.88756897965563e-10) (6.12712528519892e-14,-9.63680758023582e-11,9.68872650290865e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.18482249365987e-16,-3.94477181843614e-11,4.35080546926666e-11) (7.58503682367678e-13,-7.95823312021217e-11,4.1523301879535e-11) (2.60205667992206e-13,-1.19694477346199e-10,3.78858378575845e-11) (-1.27294019256683e-13,-1.6176132873926e-10,3.21395020251494e-11) (7.47525098394657e-14,-2.09015719369949e-10,2.52532541413722e-11) (4.93398974015549e-13,-2.62062495828589e-10,1.77080717349761e-11) (7.43852881821506e-13,-3.14424535506582e-10,1.08409742130163e-11) (1.19363609128604e-13,-3.61625371960523e-10,6.44861155268412e-12) (-1.43799430033425e-13,-3.96251114155495e-10,3.47964445716008e-12) (-4.88222879855865e-13,-4.15617115806686e-10,1.50966758548225e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-3.93429297466523e-13,-3.74630838534694e-11,8.64898954286367e-11) (4.84755985974515e-13,-7.51863634977983e-11,8.27081086878186e-11) (6.87508822225192e-15,-1.13687935845818e-10,7.57841165185775e-11) (-7.71695275948314e-13,-1.55002374874703e-10,6.47400520904229e-11) (-3.85294948409485e-13,-2.01395784453715e-10,5.06325509131791e-11) (1.96100773233532e-13,-2.54701999332576e-10,3.56794657592331e-11) (3.06547862655853e-13,-3.09288319964464e-10,2.22150980661058e-11) (2.55095411612057e-14,-3.58537041255867e-10,1.32757292380564e-11) (5.75058476008198e-14,-3.94424936713846e-10,7.63536630362096e-12) (-1.11053740505129e-13,-4.14595671101058e-10,3.84720599330678e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-5.86930962453026e-14,-3.40747264101182e-11,1.29258686529507e-10) (1.42030870800009e-13,-6.77776153425804e-11,1.24360512674841e-10) (-2.42952575460354e-13,-1.02636996329437e-10,1.14903377765502e-10) (-8.18701414023725e-13,-1.41666568973404e-10,9.98658847893023e-11) (-7.40961860552367e-13,-1.86827994248169e-10,8.0274803158744e-11) (-6.70727144618216e-13,-2.41041530866243e-10,5.88111943038783e-11) (-1.41201076296776e-12,-3.00042403273757e-10,3.81989538777221e-11) (-3.51610395442075e-13,-3.52871168780266e-10,2.45474122444468e-11) (1.64007911385887e-13,-3.90579270555927e-10,1.53822401760613e-11) (1.04390548397673e-13,-4.10859518848261e-10,7.74240020460993e-12) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.86262437113425e-13,-2.92352456516977e-11,1.76792701518837e-10) (-3.9337067192325e-13,-5.8178449562435e-11,1.70872777053745e-10) (-5.94460813089921e-13,-8.78424559286987e-11,1.59454259418819e-10) (-6.57693652450922e-13,-1.22894188756877e-10,1.42180399466834e-10) (-4.40043571976744e-13,-1.66105347253854e-10,1.19628930434543e-10) (-1.114812253823e-12,-2.21100017584702e-10,9.39705892449959e-11) (-4.04322413856688e-12,-2.87802872403445e-10,6.74420014087624e-11) (-1.65181725919195e-12,-3.44057607107329e-10,4.79258899726108e-11) (-3.55178442525967e-13,-3.8277542267309e-10,3.22290261341417e-11) (1.12663018288565e-13,-4.0301272809526e-10,1.63981141960169e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.19880013482645e-13,-2.35015836237157e-11,2.25474490370606e-10) (-3.95011946611838e-13,-4.71533025994222e-11,2.19202142020561e-10) (-3.97716467122511e-13,-7.11630567898244e-11,2.06912380576618e-10) (2.9010256668237e-13,-1.01000413377016e-10,1.89650309146629e-10) (1.60927592958648e-12,-1.40887049636295e-10,1.68294221848633e-10) (2.04747699958645e-12,-1.95686242002287e-10,1.43592138475048e-10) (-2.05759143986414e-12,-2.72329985105887e-10,1.16845383129235e-10) (-1.69466854421995e-12,-3.30012560528013e-10,8.84131857710603e-11) (-1.23066745343175e-12,-3.67299689177503e-10,6.02595932800169e-11) (-6.62232120170748e-13,-3.86501950880961e-10,3.04241027139185e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.75680354996804e-13,-1.74491152871512e-11,2.75178964440362e-10) (-2.95765033653271e-13,-3.52585531021085e-11,2.68796975447556e-10) (3.21948280936135e-14,-5.42987018269564e-11,2.57112061362585e-10) (1.39698674849788e-12,-7.93542235123178e-11,2.41465191097041e-10) (3.26369531025593e-12,-1.14575690333137e-10,2.22431685515565e-10) (4.23759633706561e-12,-1.66892009656862e-10,2.00173118979075e-10) (-2.05041857749917e-12,-2.45955379187588e-10,1.7329150941754e-10) (-1.9036384423309e-12,-3.03553636581201e-10,1.35132398152397e-10) (-1.36622984239025e-12,-3.38694866064819e-10,9.24270558602199e-11) (-6.40037867027052e-13,-3.56740080287212e-10,4.68430701128755e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (1.29540697843094e-14,-1.12428066493478e-11,3.22358001910019e-10) (-1.71662013977521e-14,-2.38694040507786e-11,3.16971881569592e-10) (3.62923636721738e-13,-3.86196367333215e-11,3.07259152133948e-10) (1.01758876288686e-12,-5.89237311823545e-11,2.9369970212559e-10) (2.50603875467647e-12,-8.9053428486353e-11,2.76789613700284e-10) (4.40375601595204e-12,-1.35772803758297e-10,2.56797679646536e-10) (-5.87010360669731e-13,-2.09846686499915e-10,2.30875553894263e-10) (-1.56319600469832e-12,-2.6275193273138e-10,1.82868366076038e-10) (-1.47094697398977e-12,-2.94477110159859e-10,1.2534685724981e-10) (-8.34630738817403e-13,-3.10537048041361e-10,6.35072473733134e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-2.38301603190246e-13,-5.84373223913454e-12,3.62422156920004e-10) (-4.39764772064927e-13,-1.41738408165303e-11,3.58768315649166e-10) (-5.72067327541861e-13,-2.46972630882338e-11,3.51098554038145e-10) (-9.98140573471166e-13,-4.09960539941581e-11,3.39595822417773e-10) (-7.87332598032718e-13,-6.65554556779024e-11,3.23828176128574e-10) (-2.75099071316051e-13,-1.05446921990126e-10,3.01940634224293e-10) (-1.3113904003437e-12,-1.62426509042336e-10,2.69186766183396e-10) (-1.82875986429117e-12,-2.06793619909843e-10,2.15812114001341e-10) (-1.52349114880924e-12,-2.34108447257347e-10,1.49273897756908e-10) (-9.89597587474177e-14,-2.47864431406867e-10,7.58247670461165e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-8.03538071474362e-13,-2.42819257148292e-12,3.93683004729104e-10) (-1.46148673436178e-12,-6.94384397759169e-12,3.91335447322663e-10) (-2.16981025204058e-12,-1.37665987953866e-11,3.85531176549491e-10) (-3.19298167438909e-12,-2.62265482784338e-11,3.75496697878988e-10) (-3.51188405485885e-12,-4.54552463716507e-11,3.58885303959345e-10) (-3.53847795731112e-12,-7.29681530205606e-11,3.3326707565681e-10) (-3.09931350986462e-12,-1.10363247260635e-10,2.94340646535652e-10) (-2.62177536625018e-12,-1.42084163529685e-10,2.36839186416671e-10) (-1.78605839800227e-12,-1.62182807695372e-10,1.64506592043419e-10) (5.27171107091066e-13,-1.72138624119494e-10,8.32890387589086e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (-1.29693243429776e-12,-8.84173236501097e-13,4.1169989586489e-10) (-2.48816733512329e-12,-2.6010599387811e-12,4.09518790194092e-10) (-3.03747699909748e-12,-5.90193037691488e-12,4.04429562920187e-10) (-4.31752035718621e-12,-1.28081360331888e-11,3.95490155544175e-10) (-5.19790166414436e-12,-2.33489021239952e-11,3.783644991538e-10) (-4.95433506964398e-12,-3.75802018566894e-11,3.4981769536566e-10) (-3.88900660304338e-12,-5.5961100651524e-11,3.07283158439327e-10) (-2.87571111561787e-12,-7.23733445226867e-11,2.4743305118476e-10) (-1.69072896367093e-12,-8.27513128088633e-11,1.72183995546455e-10) (5.80460479576751e-13,-8.83224142534975e-11,8.77419537739207e-11) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) (0,0,0) ) ; boundaryField { fuel { type fixedValue; value uniform (0.1 0 0); } air { type fixedValue; value uniform (-0.1 0 0); } outlet { type zeroGradient; } frontAndBack { type empty; } } // ************************************************************************* //
[ "huberlulu@gmail.com" ]
huberlulu@gmail.com
666a56803c5f6414e7880f27dd75589247bf1b5e
3c47e67d7caa872c81d8c772a5817c958faef14b
/Source/RealityOne/Private/OpenableDoor.cpp
08ae90e43ce6d327b9de0aabf2f88912e29aec86
[]
no_license
hannojg/TheReality---Experience-AR-in-VR
7a7f091798cd08dcb2dc62760c4110cf718c9d6d
acd47dd02a4aa02ad83f0a63e898eef4f4b0b7c3
refs/heads/master
2020-04-18T00:40:00.179579
2019-05-08T12:48:02
2019-05-08T12:48:02
167,086,070
0
0
null
null
null
null
UTF-8
C++
false
false
3,997
cpp
#include "OpenableDoor.h" #include "Engine/TriggerBox.h" #include "CoreUObject/Public/UObject/ConstructorHelpers.h" #include "CoreUObject/Public/UObject/UObjectGlobals.h" #include "Components/TimelineComponent.h" #include "Components/PrimitiveComponent.h" #include "Kismet/GameplayStatics.h" UOpenableDoor::UOpenableDoor() { PrimaryComponentTick.bCanEverTick = true; // Setup everything that is necessary in order to play a given curve static ConstructorHelpers::FObjectFinder<UCurveFloat> Curvy(TEXT("CurveFloat'/Game/Assets/AnimationCurves/CF_OpenDoor.CF_OpenDoor'")); check(Curvy.Succeeded()); fCurve = Curvy.Object; } void UOpenableDoor::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) { Super::TickComponent(DeltaTime, TickType, ThisTickFunction); } void UOpenableDoor::BeginPlay() { Super::BeginPlay(); Door = GetOwner(); RegisterDelegate(); SetupTimelineCurve(); } void UOpenableDoor::RegisterDelegate() { if (TriggerBox) { TriggerBox->OnActorBeginOverlap.AddDynamic(this, &UOpenableDoor::OnBeginTriggerOverlap); } else { UE_LOG(LogTemp, Error, TEXT("%s can't get reference to BoxTrigger!"), *GetOwner()->GetName()) } } void UOpenableDoor::SetupTimelineCurve() { FOnTimelineFloat onTimelineCallback; FOnTimelineEventStatic onTimelineFinishedCallback; if (fCurve != NULL) { BlenableTimeline = NewObject<UTimelineComponent>(this, FName("TimelineAnimation")); BlenableTimeline->CreationMethod = EComponentCreationMethod::UserConstructionScript; // Indicate it comes from a blueprint so it gets cleared when we rerun construction scripts BlenableTimeline->SetNetAddressable(); // This component has a stable name that can be referenced for replication BlenableTimeline->SetPropertySetObject(this); // Set which object the timeline should drive properties on //BlenableTimeline->SetDirectionPropertyName(FName("TimelineFinishedCallback")); BlenableTimeline->SetLooping(false); BlenableTimeline->SetTimelineLength(1.6f); BlenableTimeline->SetTimelineLengthMode(ETimelineLengthMode::TL_LastKeyFrame); BlenableTimeline->SetPlaybackPosition(0.0f, false); // Add the float curve to the timeline and connect it to your timelines's interpolation function onTimelineCallback.BindUFunction(this, FName{ TEXT("TimelineFloatReturn") }); onTimelineFinishedCallback.BindUFunction(this, FName{ TEXT("TimelineFinishedCallback") }); BlenableTimeline->AddInterpFloat(fCurve, onTimelineCallback); BlenableTimeline->SetTimelineFinishedFunc(onTimelineFinishedCallback); BlenableTimeline->RegisterComponent(); } } void UOpenableDoor::OpenDoor() { if (BlenableTimeline != nullptr && fCurve != nullptr) { if (ConditionalParameter && !bIsOpen) { IsReversing = false; bIsOpen = true; UGameplayStatics::PlaySoundAtLocation(this, OpenDoorSound, Door->GetActorLocation()); BlenableTimeline->Play(); } } } void UOpenableDoor::CloseDoor() { if (BlenableTimeline != nullptr && fCurve != nullptr) { if (ConditionalParameter && bIsOpen) { IsReversing = true; bIsOpen = false; UGameplayStatics::PlaySoundAtLocation(this, CloseDoorSound, Door->GetActorLocation()); BlenableTimeline->Play(); } } } void UOpenableDoor::ChangeCondition(bool NewValue) { ConditionalParameter = NewValue; } void UOpenableDoor::TimelineFloatReturn(float val) { if (Door != nullptr) { float UpdatedZ = Door->GetActorLocation().Z; if (IsReversing) { UpdatedZ -= val; } else { UpdatedZ += val; } FVector UpdatedLocation = FVector(Door->GetActorLocation().X, Door->GetActorLocation().Y, UpdatedZ); Door->SetActorLocation(UpdatedLocation); } else { UE_LOG(LogTemp, Error, TEXT("Couldn't open door, actor was null!")) } } void UOpenableDoor::TimelineFinishedCallback() { } void UOpenableDoor::OnBeginTriggerOverlap(AActor * OverlappedActor, AActor * OtherActor) { if (OtherActor->GetName().Contains("VRCharacter")) { OpenDoor(); } }
[ "h.gdk@cernischi-und-goedecke.de" ]
h.gdk@cernischi-und-goedecke.de
a9455d6d6372f400711ebe1d0b5e00002a1380b0
1d16fdcbd5fbd91d8325170cb74115a045cf24bb
/Mint2/Include/MCursor.h
04b33895bb48d5971870feb362deb4d037b3d4f0
[]
no_license
kooksGame/life-marvelous
fc06a3c4e987dc5fbdb5275664e06f2934409b90
82b6dcb107346e980d5df31daf4bb14452e3450d
refs/heads/master
2021-01-10T08:32:53.353758
2013-07-28T18:15:09
2013-07-28T18:15:09
35,994,219
1
1
null
null
null
null
UTF-8
C++
false
false
987
h
// // Cursor // // Cursor, BitmapCursor, Animation Cursor // #ifndef MCURSOR_H #define MCURSOR_H class MBitmap; class MAniBitmap; class MAnimation; class MDrawContext; #define MCURSOR_NAME_LENGTH 32 // Abstract Cursor class class MCursor{ char m_szName[MCURSOR_NAME_LENGTH]; protected: friend class MCursorSystem; virtual void Draw(MDrawContext* pDC, int x, int y){} public: MCursor(const char* szName); virtual ~MCursor(void){} }; // Bitmap Cursor class class MBitmapCursor : public MCursor{ MBitmap* m_pBitmap; protected: virtual void Draw(MDrawContext* pDC, int x, int y); public: MBitmapCursor(const char* szName, MBitmap* pBitmap); }; // Animation Bitmap Cursor class class MAniBitmapCursor : public MCursor{ MAnimation* m_pAnimation; protected: virtual void Draw(MDrawContext* pDC, int x, int y); public: MAniBitmapCursor(const char* szName, MAniBitmap* pAniBitmap); virtual ~MAniBitmapCursor(void); }; #endif
[ "alexis.ddr@gmail.com@86145bcc-2932-641b-40bf-8db704073500" ]
alexis.ddr@gmail.com@86145bcc-2932-641b-40bf-8db704073500
f46a9976cf2071346a539c9a2bae954e55cf07bc
d8133fb5212bd7f3378f1038d9d56daaa5cbded2
/task7.cpp
0f36ac1fd87fc5790786c25f92ba310e00c3127e
[]
no_license
kundyzbekov/proglanglab12
9a242805775c088cb31bc01b4f705a520dc7c437
7c0a1739d250cf68eccac07a2cc5c517ff5dc982
refs/heads/master
2020-12-04T02:24:43.820251
2016-09-09T04:05:04
2016-09-09T04:05:04
67,764,289
0
0
null
null
null
null
UTF-8
C++
false
false
356
cpp
#include <iostream> #include <cmath> using namespace std; int main() { cout<<"Write two numbers"<<endl; double a,b; cin>>a>>b; double amean,gmean; amean=abs((a+b)/2); gmean=sqrt(a*b); cout<<"Arithmetical mean is "<<amean<<endl; cout<<"Geometrical mean is "<<gmean<<endl; system("pause>nul"); return 0; }
[ "noreply@github.com" ]
kundyzbekov.noreply@github.com
1a533613c68d622279252d22e9e85413ea2055fe
b0f97bddccb142a8d4d79abf7d3694d164e1016f
/imlementStackUsingTwoQueueMethod2.cpp
858b3a655161835f9707b5e48f568c34e3c55363
[]
no_license
itisha23/DataStructures
5ec84853b476612ce1d202be2748f124093793b4
1c7e1dd25aa36ab20b88c9f681c0845b1bec6a83
refs/heads/master
2021-04-09T14:59:01.969866
2019-07-03T01:07:29
2019-07-03T01:07:29
125,703,943
0
0
null
null
null
null
UTF-8
C++
false
false
839
cpp
/* Please note that it's Function problem i.e. you need to write your solution in the form of Function(s) only. Driver Code to call/invoke your function would be added by GfG's Online Judge.*/ /* The structure of the class is class QueueStack{ private: queue<int> q1; queue<int> q2; public: void push(int); int pop(); }; */ /* The method push to push element into the stack */ void QueueStack :: push(int x) { q1.push(x); } /*The method pop which return the element poped out of the stack*/ int QueueStack :: pop() { queue<int> q3; if(q1.size()==0 && q2.size()==0) return -1; while(q1.size()!=1) { q2.push(q1.front()); q1.pop(); } int a=q1.front(); q1.pop(); q3=q1; q1=q2; q2=q3; return a; }
[ "noreply@github.com" ]
itisha23.noreply@github.com
71f5c8271538931b423f66f934749677c0ef12f4
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/c++/Halide/2015/4/div_mod.cpp
0819117bf6b52443728678e7e423adac9519ab76
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
C++
false
false
13,251
cpp
#include <stdio.h> #include "Halide.h" #include <math.h> #include <algorithm> using namespace Halide; // Test program to check basic arithmetic. // Pseudo-random numbers are generated and arithmetic operations performed on them. // To ensure that the extremes of the data values are included in testing, the upper // left corner of each matrix contains the extremes. // The code uses 64 bit arithmetic to ensure that results are correct in 32 bits and fewer, // even if overflow occurs. // Dimensions of the test data, and rate of salting with extreme values (1 in SALTRATE) #define WIDTH 2048 #define HEIGHT 2048 #define SALTRATE 50 // Portion of the test data to use for testing the simplifier # define SWIDTH 32 # define SHEIGHT 2048 // Generate poor quality pseudo random numbers. // For reproducibility, the array indices are used as the seed for each // number generated. The algorithm simply multiplies the seeds by large // primes and combines them together, then multiplies by additional large primes. // We don't want to use primes that are close to powers of 2 because they dont // randomise the bits. // // unique: Use different values to get unique data in each array. // i, j: Coordinates for which the value is being generated. uint64_t ubits(int unique, int i, int j) { uint64_t bits, mi, mj, mk, ml, mu; mi = 982451653; // 50 M'th prime mj = 776531491; // 40 M'th prime mk = 573259391; // 30 M'th prime ml = 373587883; // 20 M'th prime mu = 275604541; // 15 M'th prime // Each of the above primes is at least 10^8 i.e. at least 24 bits // so we are assured that the initial value computed below occupies 64 bits // and then the subsequent operations help ensure that every bit is affected by // all three inputs. bits = ((unique * mu + i) * mi + j) * mj; // All multipliers are prime bits = (bits ^ (bits >> 32)) * mk; bits = (bits ^ (bits >> 32)) * ml; bits = (bits ^ (bits >> 32)) * mi; bits = (bits ^ (bits >> 32)) * mu; return bits; } // Template to avoid autological comparison errors when comparing unsigned values for < 0 template <typename T> bool less_than_zero(T val) { return (val < 0); } template <> bool less_than_zero<unsigned long long>(unsigned long long val) { return false; } template <> bool less_than_zero<unsigned long>(unsigned long val) { return false; } template <> bool less_than_zero<unsigned int>(unsigned int val) { return false; } template <> bool less_than_zero<unsigned short>(unsigned short val) { return false; } template <> bool less_than_zero<unsigned char>(unsigned char val) { return false; } template<typename T> bool is_negative_one(T val) { return (val == -1); } template<> bool is_negative_one(unsigned long long val) { return false; } template<> bool is_negative_one(unsigned long val) { return false; } template<> bool is_negative_one(unsigned int val) { return false; } template<> bool is_negative_one(unsigned short val) { return false; } template<> bool is_negative_one(unsigned char val) { return false; } template<typename T,typename BIG,int bits> BIG maximum() { Type t = type_of<T>(); t.bits = bits; if (t.is_float()) { return (BIG) 1.0; } if (t.is_uint()) { uint64_t max; max = 0; max = ~max; if (t.bits < 64) max = (((uint64_t) 1) << t.bits) - 1; return (BIG) max; } if (t.is_int()) { uint64_t umax; umax = (((uint64_t) 1) << (t.bits - 1)) - 1; return (BIG) umax; } assert(0); return (BIG) 1; } template<typename T,typename BIG,int bits> BIG minimum() { Type t = type_of<T>(); t.bits = bits; if (t.is_float()) { return (BIG) 0.0; } if (t.is_uint()) { return (BIG) 0; } if (t.is_int()) { uint64_t umax; BIG min; umax = (((uint64_t) 1) << (t.bits - 1)) - 1; min = umax; min = -min - 1; return min; } assert(0); return (BIG) 0; } // Construct an image for testing. // Contents are poor quality pseudo-random numbers in the natural range for the specified type. // The top left corner contains one of two patterns. (Remember that first coordinate is column in Halide) // min max OR min max // min max max min // The left pattern occurs when unique is odd; the right pattern when unique is even. template<typename T,typename BIG,int bits> Image<T> init(Type t, int unique, int width, int height) { if (width < 2) width = 2; if (height < 2) height = 2; Image<T> result(width, height); assert(t.bits == bits); if (t.is_int()) { // Signed integer type with specified number of bits. int64_t max, min, neg, v, vsalt; max = maximum<T,int64_t,bits>(); min = minimum<T,int64_t,bits>(); neg = (~((int64_t) 0)) ^ max; // The bits that should all be 1 for negative numbers. for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { v = (int64_t) (ubits(unique,i,j)); if (v < 0) v |= neg; // Make all the high bits one else v &= max; // Salting with extreme values vsalt = (int64_t) (ubits(unique|0x100,i,j)); if (vsalt % SALTRATE == 0) { if (vsalt & 0x1000000) { v = max; } else { v = min; } } result(i,j) = (T)v; } } result(0,0) = (T)min; result(1,0) = (T)max; result(0,1) = (T)((unique & 1) ? min : max); result(1,1) = (T)((unique & 1) ? max : min); } else if (t.is_uint()) { uint64_t max, v, vsalt; max = maximum<T,BIG,bits>(); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { v = ubits(unique,i,j) & max; // Salting with extreme values vsalt = (int64_t) (ubits(unique|0x100,i,j)); if (vsalt % SALTRATE == 0) { if (vsalt & 0x1000000) { v = max; } else { v = 0; } } result(i,j) = (T)v; } } result(0,0) = (T)0; result(1,0) = (T)max; result(0,1) = (T)((unique & 1) ? 0 : max); result(1,1) = (T)((unique & 1) ? max : 0); } else if (t.is_float()) { uint64_t uv, vsalt; uint64_t max = (uint64_t)(-1); double v; for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { uv = ubits(unique,i,j); v = (((double) uv) / ((double) (max))) * 2.0 - 1.0; // Salting with extreme values vsalt = (int64_t) (ubits(unique|0x100,i,j)); if (vsalt % SALTRATE == 0) { if (vsalt & 0x1000000) { v = 1.0; } else { v = 0.0; } } result(i,j) = (T)v; } } result(0,0) = (T)(0.0); result(1,0) = (T)(1.0); result(0,1) = (T)((unique & 1) ? 0.0 : 1.0); result(1,1) = (T)((unique & 1) ? 1.0 : 0.0); } else { printf ("Unknown data type in init.\n"); } return result; } // division tests division and mod operations. // BIG should be uint64_t, int64_t or double as appropriate. // T should be a type known to Halide. template<typename T,typename BIG,int bits> bool div_mod() { int i, j; Type t = type_of<T>(); BIG minval = minimum<T,BIG,bits>(); bool success = true; std::cout << "Test division of " << t << '\n'; t.bits = bits; // Override the bits // The parameter bits can be used to control the maximum data value. Image<T> a = init<T,BIG,bits>(t, 1, WIDTH, HEIGHT); Image<T> b = init<T,BIG,bits>(t, 2, WIDTH, HEIGHT); // Filter the input values for the operation to be tested. // Cannot divide by zero, so remove zeroes from b. // Also, cannot divide the most negative number by -1. for (i = 0; i < WIDTH; i++) { for (j = 0; j < HEIGHT; j++) { if (b(i,j) == 0) { b(i,j) = 1; // Replace zero with one } if (a(i,j) == minval && less_than_zero(minval) && is_negative_one(b(i,j))) { a(i,j) = a(i,j) + 1; // Fix it into range. } } } // Compute division and mod, and check they satisfy the requirements of Euclidean division. Func f; Var x, y; f(x, y) = Tuple(a(x, y) / b(x, y), a(x, y) % b(x, y)); // Using Halide division operation. Target target = get_jit_target_from_environment(); if (target.has_gpu_feature()) { f.compute_root().gpu_tile(x, y, 16, 16); } Realization R = f.realize(WIDTH, HEIGHT, target); Image<T> q(R[0]); Image<T> r(R[1]); int ecount = 0; for (i = 0; i < WIDTH; i++) { for (j = 0; j < HEIGHT; j++) { T ai = a(i, j); T bi = b(i, j); T qi = q(i, j); T ri = r(i, j); if (qi*bi + ri != ai && (ecount++) < 10) { std::cout << "(a/b)*b + a%b != a; a, b = " << (int)ai << ", " << (int)bi << "; q, r = " << (int)qi << ", " << (int)ri << "\n"; success = false; } else if (!(0 <= ri && ((int64_t)bi == t.imin() || ri < (T)std::abs((int64_t)bi))) && (ecount++) < 10) { std::cout << "ri is not in the range [0, |b|); a, b = " << (int)ai << ", " << (int)bi << "; q, r = " << (int)qi << ", " << (int)ri << "\n"; success = false; } if (i < SWIDTH && j < SHEIGHT) { Expr ae = cast<T>((int)ai); Expr be = cast<T>((int)bi); Expr qe = simplify(ae/be); Expr re = simplify(ae%be); if (!Internal::equal(qe, cast<T>((int)qi)) && (ecount++) < 10) { std::cout << "Compiled a/b != simplified a/b: " << (int)ai << "/" << (int)bi << " = " << (int)qi << " != " << qe << "\n"; success = false; } else if (!Internal::equal(re, cast<T>((int)ri)) && (ecount++) < 10) { std::cout << "Compiled a%b != simplified a%b: " << (int)ai << "/" << (int)bi << " = " << (int)ri << " != " << re << "\n"; success = false; } } } } return success; } // f_mod tests floating mod operations. // BIG should be double. // T should be a type known to Halide. template<typename T,typename BIG,int bits> bool f_mod() { int i, j; Type t = type_of<T>(); bool success = true; std::cout << "Test mod of " << t << '\n'; t.bits = bits; // Override the bits // The parameter bits can be used to control the maximum data value. Image<T> a = init<T,BIG,bits>(t, 1, WIDTH, HEIGHT); Image<T> b = init<T,BIG,bits>(t, 2, WIDTH, HEIGHT); Image<T> out(WIDTH,HEIGHT); // Filter the input values for the operation to be tested. // Cannot divide by zero, so remove zeroes from b. for (i = 0; i < WIDTH; i++) { for (j = 0; j < HEIGHT; j++) { if (b(i,j) == 0.0) { b(i,j) = 1.0; // Replace zero with one. } } } // Compute modulus result and check it. Func f; f(_) = a % b; // Using Halide mod operation. f.realize(out); // Explicit checks of the simplifier for consistency with runtime computation int ecount = 0; for (i = 0; i < std::min(SWIDTH,WIDTH); i++) { for (j = 0; j < std::min(SHEIGHT,HEIGHT); j++) { T arg_a = a(i,j); T arg_b = b(i,j); T v = out(i,j); Expr in_e = cast<T>((float) arg_a) % cast<T>((float) arg_b); Expr e = simplify(in_e); Expr eout = cast<T>((float) v); if (! Internal::equal(e, eout) && (ecount++) < 10) { Expr diff = simplify(e - eout); Expr smalldiff = simplify(diff < (float) (0.000001) && diff > (float) (-0.000001)); if (! Internal::is_one(smalldiff)) { std::cout << "simplify(" << in_e << ") yielded " << e << "; expected " << eout << "\n"; std::cout << " difference=" << diff << "\n"; success = false; } } } } return success; } int main(int argc, char **argv) { bool success = true; success &= f_mod<float,double,32>(); success &= div_mod<uint8_t,uint64_t,8>(); success &= div_mod<uint16_t,uint64_t,16>(); success &= div_mod<uint32_t,uint64_t,32>(); success &= div_mod<int8_t,int64_t,8>(); success &= div_mod<int16_t,int64_t,16>(); success &= div_mod<int32_t,int64_t,32>(); if (! success) { printf ("Failure!\n"); return -1; //return 0; } printf("Success!\n"); return 0; }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
c36bef27206ea7cdbac6f9c32942e8f5e344f10c
ade8bdc649ecc01b7bb20264cf44b6344b2a7494
/SDLProject/Boid.cpp
79057059da33690225617b7ddbfb9b4f93afd927
[]
no_license
Dallas-Mann/SDL-Flocking
0c46c0a75153fed4b3a38e841d669e6bb330c587
f6f29f4810718e2038aa897a14290ad4bdde04c2
refs/heads/master
2021-01-23T04:14:28.700741
2017-03-25T17:57:30
2017-03-25T17:57:30
86,179,006
0
0
null
null
null
null
UTF-8
C++
false
false
3,656
cpp
#include "Boid.h" #include "ScreenDimensions.h" #include <iostream> Boid::Boid(double x, double y, double angle, SDL_Renderer* renderer) : angle(angle), radius(2.0), maxSpeed(2), maxForce(0.03), renderer(renderer), loader() { if (loader.LoadFromFile("boid3.png", renderer)) { acceleration = Vector2D(0, 0); velocity = Vector2D(cos(angle), -sin(angle)); position = Vector2D(x, y); } else { throw std::runtime_error(std::string("Error loading texture! SDL_Error: %s", SDL_GetError())); } } void Boid::Run(std::vector<Boid>& boids) { FlockTogether(boids); Update(); Borders(); } void Boid::ApplyForce(Vector2D force) { acceleration.Add(force); } void Boid::FlockTogether(std::vector<Boid>& boids) { Vector2D sep = Vector2D::Vector2D(); Vector2D ali = Vector2D::Vector2D(); Vector2D coh = Vector2D::Vector2D(); //separation double desiredSeparation = 25; int count1 = 0; //align double neighborDist = 50; Vector2D sum = Vector2D::Vector2D(); Vector2D sum2 = Vector2D::Vector2D(); int count2 = 0; //cohesion int count3 = 0; for (std::vector<Boid>::iterator b = boids.begin(); b != boids.end(); b++) { double d = Vector2D::Distance(position, b->position); if (d > 0 && d < desiredSeparation) { Vector2D diff = Vector2D::Sub(position, b->position); diff.Normalize(); diff.Div(d); sep.Add(diff); count1++; } if (d > 0 && d < neighborDist) { sum.Add(b->velocity); count2++; sum2.Add(b->position); count3++; } } //separation if (count1 > 0) { sep.Div(count1); } if (sep.GetMagnitude() > 0) { sep.Normalize(); sep.Mult(maxSpeed); sep.Sub(velocity); sep.Limit(maxForce); } //alignment if (count2 > 0) { sum.Div(count2); sum.Normalize(); sum.Mult(maxSpeed); ali = Vector2D::Sub(sum, velocity); ali.Limit(maxForce); } else { ali = Vector2D::Vector2D(); } //cohesion if (count3 > 0) { sum2.Div(count3); coh = Seek(sum2); } else { coh = Vector2D::Vector2D(); } sep.Mult(1.5); ali.Mult(1.0); coh.Mult(1.0); ApplyForce(sep); ApplyForce(ali); ApplyForce(coh); } void Boid::Update() { velocity.Add(acceleration); velocity.Limit(maxSpeed); position.Add(velocity); acceleration.Mult(0); //update angle based on new velocity vector angle = velocity.Heading(); } Vector2D Boid::Seek(Vector2D& target) { Vector2D desired = Vector2D::Sub(target, position); desired.Normalize(); desired.Mult(maxSpeed); Vector2D steer = Vector2D::Sub(desired, velocity); steer.Limit(maxForce); return steer; } void Boid::Render() { //this was the old way of rendering a primitive triangle, now i'm rendering a texture //Render a triangle primitive //rotation translation //x' = -y*sin(a) + x*cos(a) //y' = y*cos(a) + x*sin(a) /* Sint16 x1 = -(-2 * radius)*sin(angle) + (0)*cos(angle) + position.x; Sint16 y1 = (-2 * radius)*cos(angle) + (0)*sin(angle) + position.y; Sint16 x2 = -(2 * radius)*sin(angle) + (-radius)*cos(angle) + position.x; Sint16 y2 = (2 * radius)*cos(angle) + (-radius)*sin(angle) + position.y; Sint16 x3 = -(2 * radius)*sin(angle) + (radius)*cos(angle) + position.x; Sint16 y3 = (2 * radius)*cos(angle) + (radius)*sin(angle) + position.y; aatrigonRGBA(renderer, x1, y1, x2, y2, x3, y3, 0x00, 0x00, 0xFF, 0xFF); */ //render texture loader.Render((int)position.x, (int)position.y, angle, renderer); } void Boid::Borders() { if (position.x < -radius) { position.x = SCREEN_WIDTH + radius; } if (position.y < -radius) { position.y = SCREEN_HEIGHT + radius; } if (position.x > SCREEN_WIDTH + radius) { position.x = -radius; } if (position.y > SCREEN_HEIGHT + radius) { position.y = -radius; } }
[ "Dallas.mann94@gmail.com" ]
Dallas.mann94@gmail.com
d718eac2a70c079c16feba21d6c5796baedede8b
6212342eef5d79779798d2535660d27643d14828
/sys/scalar_arrays_0.no.cpp
a6f4568f9adea1810c83f97fa185f7da0f90ea66
[]
no_license
h4ck3rm1k3/hiphopphp-example-debian-package
4454ed15a2d87f917d8bc90531ce7f92acfe939c
0051c3002feff41b1899f96f424ae43984a54acf
refs/heads/master
2021-01-18T14:31:30.644561
2012-03-25T09:48:13
2012-03-25T09:48:13
3,797,121
4
2
null
null
null
null
UTF-8
C++
false
false
353
cpp
#include <runtime/base/hphp.h> #include <sys/global_variables.h> namespace hphp_impl_starter {} namespace HPHP { /////////////////////////////////////////////////////////////////////////////// void ScalarArrays::initialize() { SystemScalarArrays::initialize(); } /////////////////////////////////////////////////////////////////////////////// }
[ "root@hotelling.marketpsychdata.com" ]
root@hotelling.marketpsychdata.com
34e98cb5168fc2b75411ecc22c5ccce1e83c4ed8
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
/PWGGA/PHOSTasks/PHOS_Tagging/AliAnalysisPhotonDDA.cxx
8128bc16b021457409fefa0f5698ddfe50c4f98a
[]
permissive
alisw/AliPhysics
91bf1bd01ab2af656a25ff10b25e618a63667d3e
5df28b2b415e78e81273b0d9bf5c1b99feda3348
refs/heads/master
2023-08-31T20:41:44.927176
2023-08-31T14:51:12
2023-08-31T14:51:12
61,661,378
129
1,150
BSD-3-Clause
2023-09-14T18:48:45
2016-06-21T19:31:29
C++
UTF-8
C++
false
false
35,686
cxx
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // Analysis task for identified tracks matched to a PHOS cluster // Authors: Dmitri Peresunko #include "TChain.h" #include "TObjArray.h" #include "TF1.h" #include "TH1F.h" #include "TH2F.h" #include "TH2I.h" #include "TH3F.h" #include "THashList.h" #include "TGeoGlobalMagField.h" #include "AliAnalysisManager.h" #include "AliAnalysisTaskSE.h" #include "AliAnalysisPhotonDDA.h" #include "AliPHOSGeometry.h" #include "AliAODEvent.h" #include "AliAODCaloCells.h" #include "AliAODCaloCluster.h" #include "AliAODVertex.h" #include "AliLog.h" #include "AliPID.h" #include "AliAODInputHandler.h" #include "AliPIDResponse.h" #include "AliCentrality.h" #include "AliMagF.h" #include "AliCaloPhoton.h" #include "AliMultSelection.h" #include "AliAODMCParticle.h" // Analysis task to fill histograms with PHOS AOD clusters and cells // Authors: Yuri Kharlov // Date : 28.05.2009 ClassImp(AliAnalysisPhotonDDA) //________________________________________________________________________ AliAnalysisPhotonDDA::AliAnalysisPhotonDDA(const char *name) : AliAnalysisTaskSE(name), fOutputContainer(nullptr), fCenBin(0), fCentEstimator(1), fNCenBin(5), fMinBCDistance(0.), fCentrality(0.), fRunNumber(-1), fIsMC(kTRUE), fPHOSGeo(nullptr), fEventCounter(0), fPIDResponse(nullptr), fPHOSEvent(nullptr), fCurrentMixedList(nullptr) { // Output slots #0 write into a TH1 container DefineOutput(1,TList::Class()); for(int i=0; i<5; i++)fPHOSEvents[i]=nullptr; } //________________________________________________________________________ void AliAnalysisPhotonDDA::UserCreateOutputObjects() { // Create histograms // Called once // AOD histograms if(fOutputContainer != NULL){ delete fOutputContainer; } fOutputContainer = new THashList(); fOutputContainer->SetOwner(kTRUE); fOutputContainer->Add(new TH1F("hSelEvents","Selected events",7,0.5,7.5)); fOutputContainer->Add(new TH1F("hZvertex","Z vertex",200,-50.,+50.)); fOutputContainer->Add(new TH1F("hCentrality","Centrality",105,0.,105.)); fOutputContainer->Add(new TH1F("hNvertexTracks","N of primary tracks from the primary vertex",150,0.,150.)); fOutputContainer->Add(new TH3F("hCPVr","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hCPVrPi","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hCPVrPrPlus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hCPVrPrMinus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReCPVr","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReCPVrPi","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReCPVrPrPlus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReCPVrPrMinus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiCPVr","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiCPVrPi","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiCPVrPrPlus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiCPVrPrMinus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReDispCPVr","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReDispCPVrPi","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReDispCPVrPrPlus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hReDispCPVrPrMinus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiDispCPVr","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiDispCPVrPi","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiDispCPVrPrPlus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); fOutputContainer->Add(new TH3F("hMiDispCPVrPrMinus","CPV r",200,0.,20.,200,0.,20.,5,0.,100.)); Int_t nPt = 200; Double_t ptMin = 0; Double_t ptMax = 20; fOutputContainer->Add(new TH1F("hTrackPt" ,"p_{T} of all tracks",nPt,ptMin,ptMax)); fOutputContainer->Add(new TH1F("hPionPt" ,"p_{T} of #pi^{#pm}",nPt,ptMin,ptMax)); fOutputContainer->Add(new TH1F("hKaonPt" ,"p_{T} of K^{#pm}",nPt,ptMin,ptMax)); fOutputContainer->Add(new TH1F("hProtonPt","p_{T} of p,#bar{p}",nPt,ptMin,ptMax)); fOutputContainer->Add(new TH1F("hUndefPt" ,"p_{T} of undefined tracks",nPt,ptMin,ptMax)); fOutputContainer->Add(new TH1F("hTrackMult" ,"Charged track multiplicity",150,0.,150.)); fOutputContainer->Add(new TH1F("hPionMult" ,"#pi^{#pm} multiplicity" ,150,0.,150.)); fOutputContainer->Add(new TH1F("hKaonMult" ,"K^{#pm} multiplicity" ,150,0.,150.)); fOutputContainer->Add(new TH1F("hProtonMult","p,#bar{p} multiplicity" ,150,0.,150.)); fOutputContainer->Add(new TH1F("hUndefMult" ,"Undefined multiplicity" ,150,0.,150.)); fOutputContainer->Add(new TH1I("hClusterMult" ,"CaloCluster multiplicity" ,100,0,100)); fOutputContainer->Add(new TH2F("hEclPtPiPlus" ,"p_{track} vs E_{clu}, #pi^{+}",200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtPiMinus","p_{track} vs E_{clu}, #pi^{-}",200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtKPlus" ,"p_{track} vs E_{clu}, K^{+}" ,200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtKMinus" ,"p_{track} vs E_{clu}, K^{-}" ,200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtPrPlus" ,"p_{track} vs E_{clu}, p" ,200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtPrMinus","p_{track} vs E_{clu}, #bar{p}",200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtUndPlus" ,"p_{track} vs E_{clu}, p" ,200,0.,20.,200,0.,20.)); fOutputContainer->Add(new TH2F("hEclPtUndMinus","p_{track} vs E_{clu}, #bar{p}",200,0.,20.,200,0.,20.)); TString parts[4]={"Pi","K","Pr","Und"} ; for(Int_t cen=0; cen<fNCenBin; cen++){ fOutputContainer->Add(new TH3F(Form("hdxdzpt_cen%d",cen),"dx,dx,Pt",100,-50.,50.,100,-50.,50.,200,0.,20.)); fOutputContainer->Add(new TH3F(Form("hdrEpt_cen%d",cen),"rEPt",100,0.,50.,200,0.,20.,200,0.,20.)); for(Int_t ipid=0; ipid<4; ipid++){ fOutputContainer->Add(new TH1F(Form("h%sPlusAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sPlusDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sPlusStrAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusStrAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sPlusStrDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusStrDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sPlusTrueAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusTrueAll_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sPlusTrueDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("h%sMinusTrueDisp_cen%d",parts[ipid].Data(),cen),"Cluster spectrum",200,0.,20.)); } fOutputContainer->Add(new TH1F(Form("hPhotAll_cen%d",cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("hPhotCPV_cen%d",cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("hPhotDisp_cen%d",cen),"Cluster spectrum",200,0.,20.)); fOutputContainer->Add(new TH1F(Form("hPhotBoth_cen%d",cen),"Cluster spectrum",200,0.,20.)); } fOutputContainer->Add(new TH2F("hClusterTOF","Cluster spectrum",200,0.,20.,400,-200.e-9,200.e-9)); fOutputContainer->Add(new TH2F("hClusterTOFn2","Cluster spectrum",200,0.,20.,400,-200.e-9,200.e-9)); fOutputContainer->Add(new TH2F("hClusterTOFm02","Cluster spectrum",200,0.,20.,400,-200.e-9,200.e-9)); //MC char partName[15][10] ; snprintf(partName[0],10,"pi0"); snprintf(partName[1],10,"eta") ; snprintf(partName[2],10,"omega"); snprintf(partName[3],10,"K0s"); snprintf(partName[4],10,"Kpm"); snprintf(partName[5],10,"pipm"); snprintf(partName[6],10,"n"); snprintf(partName[7],10,"nbar"); snprintf(partName[8],10,"p"); snprintf(partName[9],10,"pbar"); snprintf(partName[10],10,"el"); snprintf(partName[11],10,"OtherCh"); snprintf(partName[12],10,"OtherNeu"); char cPID[8][15] ; snprintf(cPID[0],5,"All") ; snprintf(cPID[1],5,"Disp"); snprintf(cPID[2],5,"CPV") ; snprintf(cPID[3],5,"Both"); if(fIsMC){ for(Int_t ipart=0; ipart<13; ipart++){ for(Int_t iPID=0; iPID<4; iPID++){ fhCont2D[ipart][iPID]= new TH2F(Form("hMCRec_%s_%s",partName[ipart],cPID[iPID]),"Rec vs primary",200,0.,20.,200,0.,20.) ; fOutputContainer->Add(fhCont2D[ipart][iPID]) ; } } } for(Int_t j=0;j<fNCenBin;j++) fPHOSEvents[j]=0x0 ; //Container for PHOS photons PostData(1, fOutputContainer); } //________________________________________________________________________ void AliAnalysisPhotonDDA::UserExec(Option_t *) { // Main loop, called for each event // Analyze AOD // const Double_t kEcrossCut=0.98 ; const Double_t kTOFMaxCut= 30.e-9 ; const Double_t kTOFMinCut=-30.e-9 ; // Initialize the PHOS geometry if(!fPHOSGeo) fPHOSGeo = AliPHOSGeometry::GetInstance() ; // Event selection flags FillHistogram("hSelEvents",1.) ; AliAODEvent *event = dynamic_cast<AliAODEvent*>(InputEvent()); if (!event) { Printf("ERROR: Could not retrieve event"); return; } TClonesArray* stack = (TClonesArray*)event->FindListObject(AliAODMCParticle::StdBranchName()); // Checks if we have a primary vertex // Get primary vertices form AOD AliAnalysisManager *man=AliAnalysisManager::GetAnalysisManager(); AliInputEventHandler* inputHandler = (AliInputEventHandler*) (man->GetInputEventHandler()); fPIDResponse = inputHandler->GetPIDResponse(); Double_t vtx5[3]; vtx5[0] = event->GetPrimaryVertex()->GetX(); vtx5[1] = event->GetPrimaryVertex()->GetY(); vtx5[2] = event->GetPrimaryVertex()->GetZ(); FillHistogram("hNvertexTracks",event->GetPrimaryVertex()->GetNContributors()); FillHistogram("hZvertex" ,event->GetPrimaryVertex()->GetZ()); if (TMath::Abs(event->GetPrimaryVertex()->GetZ()) > 10. ) return ; fRunNumber=event->GetRunNumber() ; FillHistogram("hSelEvents",2.) ; Int_t runNumber=event->GetRunNumber() ; fCentrality=101.; if(runNumber >=195344 && runNumber <= 197388 ){ //LHC13bcdef AliCentrality *centrality = event->GetCentrality(); if( centrality ){ switch(fCentEstimator){ case 4 : fCentrality=centrality->GetCentralityPercentile("CL1"); break; case 3 : fCentrality=centrality->GetCentralityPercentile("ZNA"); break; case 2 : fCentrality=centrality->GetCentralityPercentile("V0M"); break; case 1 : default: fCentrality=centrality->GetCentralityPercentile("V0A"); } } } else{ //Run2 AliMultSelection *multSelection = (AliMultSelection*) event -> FindListObject("MultSelection"); if(multSelection){ switch(fCentEstimator){ case 4 : fCentrality=multSelection->GetMultiplicityPercentile("CL1"); break; case 3 : fCentrality=multSelection->GetMultiplicityPercentile("ZNA"); break; case 2 : fCentrality=multSelection->GetMultiplicityPercentile("V0M"); break; case 1 : default: fCentrality=multSelection->GetMultiplicityPercentile("V0A"); } } } FillHistogram("hCentrality",fCentrality) ; if( fCentrality <= 0. || fCentrality>100. ){ PostData(1, fOutputContainer); return; } FillHistogram("hSelEvents",3.) ; fCenBin=0; while(fCenBin<fNCenBin && fCentrality>fCenBinEdges.At(fCenBin)) fCenBin++ ; if(fCenBin>=fNCenBin) fCenBin=fNCenBin-1; if(!fPHOSEvents[fCenBin]) fPHOSEvents[fCenBin]=new TList() ; fCurrentMixedList = fPHOSEvents[fCenBin] ; //Calculate charged multiplicity Int_t trackMult=0, nPion=0, nKaon=0, nProton=0, nUndef=0; for (Int_t i=0;i<event->GetNumberOfTracks();++i) { AliAODTrack *track = (AliAODTrack*)event->GetTrack(i) ; if(!track->IsHybridGlobalConstrainedGlobal()) continue ; if( TMath::Abs(track->Eta())< 0.8) { trackMult++; Double_t pt = track->Pt(); FillHistogram("hTrackPt",pt); if(fPIDResponse) { Bool_t pidPion=kFALSE, pidKaon=kFALSE, pidProton=kFALSE, pidUndef=kFALSE; Double_t nsigmaProton = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kProton)); Double_t nsigmaKaon = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kKaon)); Double_t nsigmaPion = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kPion)); // guess the particle based on the smaller nsigma if((nsigmaKaon <nsigmaPion) && (nsigmaKaon <nsigmaProton) && (nsigmaKaon <3)) pidKaon = kTRUE; if((nsigmaPion <nsigmaKaon) && (nsigmaPion <nsigmaProton) && (nsigmaPion <3)) pidPion = kTRUE; if((nsigmaProton<nsigmaKaon) && (nsigmaProton<nsigmaPion ) && (nsigmaProton<3)) pidProton = kTRUE; if (!pidPion && !pidKaon && !pidProton) pidUndef = kTRUE; if (pidPion) { nPion++; FillHistogram("hPionPt",pt); } if (pidKaon) { nKaon++; FillHistogram("hKaonPt",pt); } if (pidProton) { nProton++; FillHistogram("hProtonPt",pt); } if (pidUndef) { nUndef++; FillHistogram("hUndefPt",pt); } } } } FillHistogram("hTrackMult" ,trackMult+0.5) ; FillHistogram("hPionMult" ,nPion +0.5); FillHistogram("hKaonMult" ,nKaon +0.5); FillHistogram("hProtonMult",nProton +0.5); FillHistogram("hUndefMult" ,nUndef +0.5); AliAODCaloCluster *clu; TLorentzVector p1,p2,p12, pv1,pv2; Int_t multClust = event->GetNumberOfCaloClusters(); FillHistogram("hClusterMult",multClust); if(!fPHOSEvent) fPHOSEvent = new TClonesArray("AliCaloPhoton",multClust); else fPHOSEvent->Clear() ; //For re-calibration TVector3 vertex(vtx5); TVector3 localPos ; Int_t inList=0; for (Int_t i1=0; i1<multClust; i1++) { clu = event->GetCaloCluster(i1); if ( !clu->IsPHOS() ) continue; if ( clu->E()<0.1 ) continue; if(clu->GetDistanceToBadChannel()<fMinBCDistance) continue ; Double_t energy=clu->E() ; FillHistogram("hClusterTOF",energy,clu->GetTOF()); Bool_t exotic=kFALSE ; if(clu->GetNCells()<3){ FillHistogram("hClusterTOFn2",energy,clu->GetTOF()); if(clu->E()>1.) exotic=kTRUE; } if(clu->GetM02()<0.2){ FillHistogram("hClusterTOFm02",energy,clu->GetTOF()); if(clu->E()>1.) exotic=kTRUE; } if(exotic) continue ; // if(clu->GetMCEnergyFraction()>kEcrossCut) //Ecross cut, should be filled with Tender // continue ; if(clu->GetTOF() < kTOFMinCut || clu->GetTOF() > kTOFMaxCut) continue ; clu->GetMomentum(pv1 ,vtx5); AliCaloPhoton *p = new ((*fPHOSEvent)[inList]) AliCaloPhoton(pv1.Px(),pv1.Py(),pv1.Pz(),clu->E() ); inList++; Float_t pos[3] ; clu->GetPosition(pos) ; TVector3 global1(pos) ; Int_t relId[4] ; fPHOSGeo->GlobalPos2RelId(global1,relId) ; Int_t mod = relId[0] ; TVector3 local ; fPHOSGeo->Global2Local(local,global1,mod); p->SetModule(mod) ; p->SetEMCx(local.X()) ; p->SetEMCz(local.Z()) ; //Dispersion bit Bool_t dispBit=clu->GetDispersion()<2.5*2.5; //clu->Chi2()<2.5*2.5 ; p->SetDispBit(dispBit) ; //Track matching Double_t dx=clu->GetTrackDx() ; Double_t dz=clu->GetTrackDz() ; Bool_t cpvBit=kTRUE ; //No track matched by default Bool_t cpvBit2=kTRUE ; //More Strict criterion Double_t r=100.; AliAODTrack* track = 0x0 ; if(clu->GetNTracksMatched()>0){ track = dynamic_cast<AliAODTrack*> (clu->GetTrackMatched(0)); r=clu->GetEmcCpvDistance(); } cpvBit=(r>2.) ; cpvBit2=(r>1.) ; FillHistogram("hCPVr",r,pv1.E(),fCentrality); FillHistogram(Form("hPhotAll_cen%d",fCenBin),pv1.Pt()) ; if(cpvBit){ FillHistogram(Form("hPhotCPV_cen%d",fCenBin),pv1.Pt()) ; } if(dispBit){ FillHistogram(Form("hPhotDisp_cen%d",fCenBin),pv1.Pt()) ; if(cpvBit){ FillHistogram(Form("hPhotBoth_cen%d",fCenBin),pv1.Pt()) ; } } //classify parents if(fIsMC){ Int_t primLabel=clu->GetLabelAt(0) ; //Look what particle left vertex if(primLabel>-1){ AliAODMCParticle * prim = (AliAODMCParticle*)stack->At(primLabel) ; Int_t iparent=primLabel; AliAODMCParticle * parent = prim; Double_t r2=prim->Xv()*prim->Xv()+prim->Yv()*prim->Yv() ; while((r2 > 1.) && (iparent>-1)){ iparent=parent->GetMother(); if(iparent<0) break ; parent=(AliAODMCParticle*)stack->At(iparent); r2=parent->Xv()*parent->Xv()+parent->Yv()*parent->Yv() ; } Int_t parentPDG=parent->GetPdgCode() ; Int_t parentIndx=0; switch(parentPDG){ case 22: iparent=parent->GetMother(); if(iparent>=0){ parent=(AliAODMCParticle*)stack->At(iparent); parentPDG=parent->GetPdgCode() ; if(parentPDG==111){ //pi0 parentIndx=0; break ; } if(parentPDG==221){ //eta parentIndx=1; break ; } if(parentPDG==223){ //omega parentIndx=2; break ; } } parentIndx=12; break ; case 111: parentIndx=0; break ; case 221: parentIndx=1; break ; case 11: case -11: parentIndx=10; //e+- break ; case -2212: parentIndx=9; //pbar break ; case -2112: parentIndx=7; //nbar break ; case 211: case -211: parentIndx=5; //pbar break ; case 2212:parentIndx=8; //proton break ; case 321: case -321:parentIndx=4; //K+- break ; case 310: parentIndx=3; //Ks0 break ; case 2112: parentIndx=6; //n break ; default: if(parent->Charge()!=0) parentIndx=11; //other charged else parentIndx=12; //other neutral } fhCont2D[parentIndx][0]->Fill(clu->E(),parent->Pt()) ; if(cpvBit){ fhCont2D[parentIndx][2]->Fill(clu->E(),parent->Pt()) ; } if(dispBit){ fhCont2D[parentIndx][1]->Fill(clu->E(),parent->Pt()) ; if(cpvBit){ fhCont2D[parentIndx][3]->Fill(clu->E(),parent->Pt()) ; } } } } if (!track) continue; if(!track->IsHybridGlobalConstrainedGlobal()) continue ; Double_t ptTrack = track->Pt(); Short_t charge = track->Charge(); FillHistogram(Form("hdxdzpt_cen%d",fCenBin),dx,dz,ptTrack); FillHistogram(Form("hdrEpt_cen%d",fCenBin),r,energy,ptTrack); if(fPIDResponse) { Double_t nsigmaProton = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kProton)); Double_t nsigmaKaon = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kKaon)); Double_t nsigmaPion = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kPion)); Bool_t isPart[4] ; // pion, Kaon, proton, other isPart[0]=(nsigmaPion <nsigmaKaon) && (nsigmaPion <nsigmaProton) && (nsigmaPion <1); // = pidPion = kTRUE; isPart[1]=(nsigmaKaon <nsigmaPion) && (nsigmaKaon <nsigmaProton) && (nsigmaKaon <1); // = pidKaon = kTRUE; isPart[2]=(nsigmaProton<nsigmaKaon) && (nsigmaProton<nsigmaPion ) && (nsigmaProton<1); // = pidProton = kTRUE; isPart[3]= !isPart[0] && !isPart[1] && !isPart[2]; // pidUndef = kTRUE; if(isPart[0]) FillHistogram("hCPVrPi",r,pv1.E(),fCentrality); if(isPart[2]){ if(charge>0) FillHistogram("hCPVrPrPlus",r,pv1.E(),fCentrality); else FillHistogram("hCPVrPrMinus",r,pv1.E(),fCentrality); } if(cpvBit) //only charged clusters continue ; TString parts[4]={"Pi","K","Pr","Und"} ; for(Int_t ipid=0; ipid<4; ipid++){ if(!isPart[ipid]) continue ; char name[55] ; if(charge>0)snprintf(name,55,"hEclPt%sPlus",parts[ipid].Data()) ; else snprintf(name,55,"hEclPt%sMinus",parts[ipid].Data()) ; FillHistogram(name,energy,ptTrack); if(charge>0)snprintf(name,55,"%sPlus",parts[ipid].Data()) ; else snprintf(name,55,"%sMinus",parts[ipid].Data()) ; FillHistogram(Form("h%sAll_cen%d",name,fCenBin),pv1.Pt()) ; if(dispBit){ FillHistogram(Form("h%sDisp_cen%d",name,fCenBin),pv1.Pt()) ; } if(!cpvBit2){ //more strict match if(charge>0)snprintf(name,55,"%sPlusStr",parts[ipid].Data()) ; else snprintf(name,55,"%sMinusStr",parts[ipid].Data()) ; FillHistogram(Form("h%sAll_cen%d",name,fCenBin),pv1.Pt()) ; if(dispBit){ FillHistogram(Form("h%sDisp_cen%d",name,fCenBin),pv1.Pt()) ; } } if(energy<1.2*ptTrack || (ipid==2 && charge<0 && energy<1.8+1.2*ptTrack)){ if(charge>0)snprintf(name,55,"%sPlusTrue",parts[ipid].Data()) ; else snprintf(name,55,"%sMinusTrue",parts[ipid].Data()) ; FillHistogram(Form("h%sAll_cen%d",name,fCenBin),pv1.Pt()) ; if(dispBit){ FillHistogram(Form("h%sDisp_cen%d",name,fCenBin),pv1.Pt()) ; } } } } } //Check of track matching //Real for(Int_t i=0; i<fPHOSEvent->GetEntriesFast(); i++){ AliCaloPhoton * phot = static_cast<AliCaloPhoton*>(fPHOSEvent->At(i)) ; Int_t mod = phot->Module() ; TVector3 locpos(phot->EMCx(),0.,phot->EMCz()) ; Double_t dx=999.,dz=999., pttrack=0.; Int_t charge=0; Int_t itr = FindTrackMatching(mod, &locpos, dx,dz, pttrack, charge); if(itr<0) continue ; Double_t r=TestCPV(dx, dz, pttrack,charge) ; FillHistogram("hReCPVr",r,pv1.E(),fCentrality); if(phot->IsDispOK()){ FillHistogram("hReDispCPVr",r,pv1.E(),fCentrality); } AliAODTrack *track= (AliAODTrack*)event->GetTrack(itr); if (!track) continue; if(!track->IsHybridGlobalConstrainedGlobal()) continue ; Double_t nsigmaProton = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kProton)); Double_t nsigmaKaon = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kKaon)); Double_t nsigmaPion = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kPion)); Bool_t isPart[4] ; // pion, Kaon, proton, other isPart[0]=(nsigmaPion <nsigmaKaon) && (nsigmaPion <nsigmaProton) && (nsigmaPion <3); // = pidPion = kTRUE; // isPart[1]=(nsigmaKaon <nsigmaPion) && (nsigmaKaon <nsigmaProton) && (nsigmaKaon <3); // = pidKaon = kTRUE; isPart[2]=(nsigmaProton<nsigmaKaon) && (nsigmaProton<nsigmaPion ) && (nsigmaProton<3); // = pidProton = kTRUE; // isPart[3]= !isPart[0] && !isPart[1] && !isPart[2]; // pidUndef = kTRUE; if(isPart[0]){ FillHistogram("hReCPVrPi",r,pv1.E(),fCentrality); if(phot->IsDispOK()){ FillHistogram("hReDispCPVrPi",r,pv1.E(),fCentrality); } } if(isPart[2]){ if(charge>0) FillHistogram("hReCPVrPrPlus",r,pv1.E(),fCentrality); else FillHistogram("hReCPVrPrMinus",r,pv1.E(),fCentrality); } if(phot->IsDispOK()){ if(charge>0) FillHistogram("hReDispCPVrPrPlus",r,pv1.E(),fCentrality); else FillHistogram("hReDispCPVrPrMinus",r,pv1.E(),fCentrality); } } //Mixed //Fill Mixed InvMass distributions: TIter nextEv(fCurrentMixedList) ; while(TClonesArray * event2 = static_cast<TClonesArray*>(nextEv())){ Int_t nPhotons2 = event2->GetEntriesFast() ; for(Int_t j=0; j < nPhotons2 ; j++){ AliCaloPhoton * phot = static_cast<AliCaloPhoton*>(event2->At(j)) ; Int_t mod = phot->Module() ; TVector3 locpos(phot->EMCx(),0.,phot->EMCz()) ; Double_t dx=999.,dz=999., pttrack=0.; Int_t charge=0; Int_t itr = FindTrackMatching(mod, &locpos, dx,dz, pttrack, charge); if(itr<0) continue ; Double_t r=TestCPV(dx, dz, pttrack,charge) ; FillHistogram("hMiCPVr",r,pv1.E(),fCentrality); if(phot->IsDispOK()){ FillHistogram("hMiDispCPVr",r,pv1.E(),fCentrality); } AliAODTrack *track= (AliAODTrack*)event->GetTrack(itr); if (!track) continue; if(!track->IsHybridGlobalConstrainedGlobal()) continue ; Double_t nsigmaProton = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kProton)); Double_t nsigmaKaon = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kKaon)); Double_t nsigmaPion = TMath::Abs(fPIDResponse->NumberOfSigmasTPC(track, AliPID::kPion)); Bool_t isPart[4] ; // pion, Kaon, proton, other isPart[0]=(nsigmaPion <nsigmaKaon) && (nsigmaPion <nsigmaProton) && (nsigmaPion <3); // = pidPion = kTRUE; // isPart[1]=(nsigmaKaon <nsigmaPion) && (nsigmaKaon <nsigmaProton) && (nsigmaKaon <3); // = pidKaon = kTRUE; isPart[2]=(nsigmaProton<nsigmaKaon) && (nsigmaProton<nsigmaPion ) && (nsigmaProton<3); // = pidProton = kTRUE; // isPart[3]= !isPart[0] && !isPart[1] && !isPart[2]; // pidUndef = kTRUE; if(isPart[0]){ FillHistogram("hMiCPVrPi",r,pv1.E(),fCentrality); if(phot->IsDispOK()){ FillHistogram("hMiDispCPVrPi",r,pv1.E(),fCentrality); } } if(isPart[2]){ if(charge>0) FillHistogram("hMiCPVrPrPlus",r,pv1.E(),fCentrality); else FillHistogram("hMiCPVrPrMinus",r,pv1.E(),fCentrality); } if(phot->IsDispOK()){ if(charge>0) FillHistogram("hMiDispCPVrPrPlus",r,pv1.E(),fCentrality); else FillHistogram("hMiDispCPVrPrMinus",r,pv1.E(),fCentrality); } } } //Remove old events fCurrentMixedList->AddFirst(fPHOSEvent); fPHOSEvent=0x0 ; if(fCurrentMixedList->GetSize() > 20){ TClonesArray *tmp = static_cast <TClonesArray*> (fCurrentMixedList->Last()); fCurrentMixedList->Remove(tmp); delete tmp; } // Post output data. PostData(1, fOutputContainer); fEventCounter++; } //________________________________________________________________________ void AliAnalysisPhotonDDA::Terminate(Option_t *) { } //_____________________________________________________________________________ void AliAnalysisPhotonDDA::FillHistogram(const char * key,Double_t x)const{ //FillHistogram TH1 * hist = dynamic_cast<TH1*>(fOutputContainer->FindObject(key)) ; if(hist) hist->Fill(x) ; else AliError(Form("can not find histogram (of instance TH1) <%s> ",key)) ; } //_____________________________________________________________________________ void AliAnalysisPhotonDDA::FillHistogram(const char * key,Double_t x,Double_t y)const{ //FillHistogram TH1 * th1 = dynamic_cast<TH1*> (fOutputContainer->FindObject(key)); if(th1) th1->Fill(x, y) ; else AliError(Form("can not find histogram (of instance TH1) <%s> ",key)) ; } //_____________________________________________________________________________ void AliAnalysisPhotonDDA::FillHistogram(const char * key,Double_t x,Double_t y, Double_t z) const{ //Fills 1D histograms with key TObject * obj = fOutputContainer->FindObject(key); TH2 * th2 = dynamic_cast<TH2*> (obj); if(th2) { th2->Fill(x, y, z) ; return; } TH3 * th3 = dynamic_cast<TH3*> (obj); if(th3) { th3->Fill(x, y, z) ; return; } AliError(Form("can not find histogram (of instance TH2) <%s> ",key)) ; } //___________________________________________________________________________________________________ Int_t AliAnalysisPhotonDDA::FindTrackMatching(Int_t mod,TVector3 *locpos, Double_t &dx, Double_t &dz, Double_t &pt,Int_t &charge){ //Find track with closest extrapolation to cluster AliAODEvent *aod = static_cast<AliAODEvent*>(InputEvent()); Double_t magF = aod->GetMagneticField(); Double_t magSign = 1.0; if(magF<0)magSign = -1.0; if (!TGeoGlobalMagField::Instance()->GetField()) { AliError("Margnetic filed was not initialized, use default") ; AliMagF* field = new AliMagF("Maps","Maps", magSign, magSign, AliMagF::k5kG); TGeoGlobalMagField::Instance()->SetField(field); } // *** Start the matching Int_t nt = aod->GetNumberOfTracks(); //Calculate actual distance to PHOS module TVector3 globaPos ; fPHOSGeo->Local2Global(mod, 0.,0., globaPos) ; const Double_t rPHOS = globaPos.Pt() ; //Distance to center of PHOS module const Double_t kYmax = 72.+10. ; //Size of the module (with some reserve) in phi direction const Double_t kZmax = 64.+10. ; //Size of the module (with some reserve) in z direction const Double_t kAlpha0=330./180.*TMath::Pi() ; //First PHOS module angular direction const Double_t kAlpha= 20./180.*TMath::Pi() ; //PHOS module angular size Double_t minDistance = 1.e6; Double_t gposTrack[3] ; Double_t bz = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->SolenoidField(); bz = TMath::Sign(0.5*kAlmost0Field,bz) + bz; Double_t b[3]; Int_t itr=-1 ; AliAODTrack *aodTrack=0x0 ; Double_t xyz[3] = {0}, pxpypz[3] = {0}, cv[21] = {0}; for (Int_t i=0; i<nt; i++) { aodTrack=(AliAODTrack*)aod->GetTrack(i); //Continue extrapolation from TPC outer surface AliExternalTrackParam outerParam; aodTrack->GetPxPyPz(pxpypz); aodTrack->GetXYZ(xyz); aodTrack->GetCovarianceXYZPxPyPz(cv); outerParam.Set(xyz,pxpypz,cv,aodTrack->Charge()); Double_t z; if(!outerParam.GetZAt(rPHOS,bz,z)) continue ; if (TMath::Abs(z) > kZmax) continue; // Some tracks miss the PHOS in Z //Direction to the current PHOS module Double_t phiMod=kAlpha0-kAlpha*mod ; if(!outerParam.RotateParamOnly(phiMod)) continue ; //RS use faster rotation if errors are not needed Double_t y; // Some tracks do not reach the PHOS if (!outerParam.GetYAt(rPHOS,bz,y)) continue; // because of the bending if(TMath::Abs(y) < kYmax){ outerParam.GetBxByBz(b) ; outerParam.PropagateToBxByBz(rPHOS,b); // Propagate to the matching module //outerParam.CorrectForMaterial(...); // Correct for the TOF material, if needed outerParam.GetXYZ(gposTrack) ; TVector3 globalPositionTr(gposTrack) ; TVector3 localPositionTr ; fPHOSGeo->Global2Local(localPositionTr,globalPositionTr,mod) ; Double_t ddx = locpos->X()-localPositionTr.X(); Double_t ddz = locpos->Z()-localPositionTr.Z(); Double_t d2 = ddx*ddx + ddz*ddz; if(d2 < minDistance) { dx = ddx ; dz = ddz ; minDistance=d2 ; itr=i ; pt=aodTrack->Pt() ; charge=aodTrack->Charge() ; } } }//Scanned all tracks return itr ; } //____________________________________________________________________________ Double_t AliAnalysisPhotonDDA::TestCPV(Double_t dx, Double_t dz, Double_t pt, Int_t charge){ //Parameterization of LHC10h period //_true if neutral_ AliAODEvent *aod= dynamic_cast<AliAODEvent*>(InputEvent()); Double_t mf = aod->GetMagneticField(); Double_t meanX=0; Double_t meanZ=0.; Double_t sx=0.; Double_t sz=0.; if(fRunNumber<209122){ //Run1 sx=TMath::Min(5.4,2.59719e+02*TMath::Exp(-pt/1.02053e-01)+ 6.58365e-01*5.91917e-01*5.91917e-01/((pt-9.61306e-01)*(pt-9.61306e-01)+5.91917e-01*5.91917e-01)+1.59219); sz=TMath::Min(2.75,4.90341e+02*1.91456e-02*1.91456e-02/(pt*pt+1.91456e-02*1.91456e-02)+1.60) ; if(mf<0.){ //field -- meanZ = -0.468318 ; if(charge>0) meanX=TMath::Min(7.3, 3.89994*1.20679*1.20679/(pt*pt+1.20679*1.20679)+0.249029+2.49088e+07*TMath::Exp(-pt*3.33650e+01)) ; else meanX=-TMath::Min(7.7,3.86040*0.912499*0.912499/(pt*pt+0.912499*0.912499)+1.23114+4.48277e+05*TMath::Exp(-pt*2.57070e+01)) ; } else{ //Field ++ meanZ= -0.468318; if(charge>0) meanX=-TMath::Min(8.0,3.86040*1.31357*1.31357/(pt*pt+1.31357*1.31357)+0.880579+7.56199e+06*TMath::Exp(-pt*3.08451e+01)) ; else meanX= TMath::Min(6.85, 3.89994*1.16240*1.16240/(pt*pt+1.16240*1.16240)-0.120787+2.20275e+05*TMath::Exp(-pt*2.40913e+01)) ; } } else{//Run2 sx = TMath::Min(5.2, 1.111 + 0.56 * TMath::Exp(-0.031 * pt*pt) + 4.8 /TMath::Power(pt+0.61,3)); sz = TMath::Min(3.3, 1.12 + 0.35 * TMath::Exp(-0.032 * pt*pt) + 0.75/TMath::Power(pt+0.24,3)); if(mf<0.){ //field -- meanZ = 0.102; if(charge>0) meanX = TMath::Min(5.8, 0.42 + 0.70 * TMath::Exp(-0.015 * pt*pt) + 35.8/TMath::Power(pt+1.41,3)); else meanX = -TMath::Min(5.8, 0.17 + 0.64 * TMath::Exp(-0.019 * pt*pt) + 26.1/TMath::Power(pt+1.21,3)); } else{ //Field ++ meanZ= 0.102; if(charge>0) meanX = -TMath::Min(5.8, 0.58 + 0.68 * TMath::Exp(-0.027 * pt*pt) + 28.0/TMath::Power(pt+1.28,3)); else meanX = TMath::Min(5.8, 0.11 + 0.67 * TMath::Exp(-0.015 * pt*pt) + 29.9/TMath::Power(pt+1.29,3)); } } Double_t rz=(dz-meanZ)/sz ; Double_t rx=(dx-meanX)/sx ; return TMath::Sqrt(rx*rx+rz*rz) ; }
[ "Dmitri.Peresunko@cern.ch" ]
Dmitri.Peresunko@cern.ch
2aeaab65cee5a86063df7887e14d86f579d5d25a
d4ea729d76e0d35e63549163c2dd4aefa294b116
/various/is-a-cow-an-animal/c++2.listing
5fa89b49ee6da110325415fac805f30c68f0c112
[]
no_license
pixel/syntax-across-languages-and-more
0b828f85e8d4bfb2fb5516be4f74564ec9149ef9
35b1cf33cecf6f4d157a8537b45912ebc26f40ec
refs/heads/master
2021-07-20T22:59:50.265799
2021-07-06T09:37:38
2021-07-06T09:58:58
72,857
14
8
null
2021-07-06T09:58:59
2008-11-07T16:09:42
HTML
UTF-8
C++
false
false
4,917
listing
// -*- C++ -*- #include <string> #include <vector> #include <typeinfo> #include <iostream> using namespace std; void mythrow(string s) { cerr << "error: " << s << "\n"; throw(s); } struct Food { int energy; Food(int energy) : energy(energy) {} virtual int eaten() { return energy; } }; struct Meat : Food { int valid; Meat(int energy) : Food(energy), valid(true) {} virtual int eaten() { if (!valid) mythrow("bad food"); valid = false; return this->Food::eaten(); } }; struct Any_animal { int energy; Any_animal(int energy) : energy(energy) {} }; template<class When_slaughtered, class Accepted_food> struct Animal : Any_animal { bool valid; When_slaughtered *(*when_slaughtered)(int); void (*check_food)(const Food &); Animal(int energy, When_slaughtered *(*when_slaughtered)(int), void (*check_food)(const Food &)) : Any_animal(energy), when_slaughtered(when_slaughtered), check_food(check_food) {} void eat(Accepted_food &food) { if (!valid) mythrow("bad animal"); check_food(food); energy += food.eaten(); } When_slaughtered *slaughter() { if (!valid) mythrow("bad animal"); valid = false; return when_slaughtered(energy); } }; struct Carrot : Food { Carrot(int energy) : Food(energy) {} }; struct Grass : Food { Grass (int energy) : Food(energy) {} }; struct Beef : Meat { Beef (int energy) : Meat(energy) {} }; struct Dead_rabbit : Meat { Dead_rabbit(int energy) : Meat(energy) {} }; struct Dead_human : Meat { Dead_human (int energy) : Meat(energy) {} }; void drop(const Food &food) {} void is_human_food(const Food &food) { if (dynamic_cast<const Carrot*>(&food) == NULL && dynamic_cast<const Meat*>(&food) == NULL) mythrow((string) "human doesn't accept food " + typeid(food).name()); } Beef *new_beef(int energy) { return new Beef(energy); } Dead_rabbit *new_dead_rabbit(int energy) { return new Dead_rabbit(energy); } Dead_human *new_dead_human(int energy) { return new Dead_human(energy); } struct Cow : Animal<Beef, Grass> { Cow (int energy) : Animal<Beef, Grass >(energy, &new_beef, &drop) {} }; struct Rabbit : Animal<Dead_rabbit, Carrot> { Rabbit(int energy) : Animal<Dead_rabbit, Carrot>(energy, &new_dead_rabbit, &drop) {} }; struct Human : Animal<Dead_human, Food> { Human(int energy) : Animal<Dead_human, Food>(energy, &new_dead_human, &is_human_food) {} }; Grass grass(0); Carrot carrot(0); Beef a_beef(0); Dead_rabbit a_dead_rabbit(0); Rabbit a_rabbit(0); Cow a_cow(0); Human a_human(0), another_human(0); void should_work() { grass = Grass(5); carrot = Carrot(10); a_rabbit = Rabbit(100); a_cow = Cow(1000); a_human = Human(300); another_human = Human(350); { vector<string> names; vector<Any_animal> animals; names.push_back("rabbit"); animals.push_back(a_rabbit); names.push_back("cow"); animals.push_back(a_cow); names.push_back("human"); animals.push_back(a_human); vector<Any_animal>::const_iterator p; vector<string>::const_iterator q; for (p = animals.begin(), q = names.begin(); p != animals.end() ; p++, q++) cout << *q << " -> " << p->energy << "\n"; } a_rabbit.eat(carrot); a_cow.eat(grass) ; a_dead_rabbit = *a_rabbit.slaughter(); a_beef = *a_cow.slaughter(); a_human.eat(carrot); a_human.eat(carrot); a_human.eat(a_beef); a_human.eat(a_dead_rabbit); a_human.eat(*another_human.slaughter()); if (a_human.energy != 1785) mythrow("failed"); } /* 7 should_fail's are detected at compile-time: Cow(10).slaughter().eat(grass); //=> request for member `eat' in ... which is of non-aggregate type `Beef *' Cow(10).slaughter().slaughter(); //=> request for member `slaughter' in ... which is of non-aggregate type `Beef *' carrot.eat(grass); //=> no matching function for call to `Carrot::eat (Grass &)' carrot.slaughter(); //=> no matching function for call to `Carrot::slaughter ()' a_human.eat(Cow(10)); //=> no matching function for call to `Human::eat (Cow)' candidates are: ... Cow(10).eat(carrot); //=> no matching function for call to `Cow::eat (Carrot &)' candidates are: ... Cow(10).eat(*Cow(10).slaughter()); //=> no matching function for call to `Cow::eat (Beef &)' candidates are: ... */ void fail08() { a_human.eat(grass); } // human do not eat grass void fail09() { a_human.eat(a_beef); } // a_beef is already eaten void fail10() { a_cow.eat(grass); } // a_cow is dead, it can't eat void fail11() { a_cow.slaughter(); } // a_cow is dead, it can't be slaughtered again void must_fail(void (*f)()) { bool ok = false; try { f(); } catch (string e) { ok = true; } if (!ok) mythrow("must_fail failed"); } void should_fail() { must_fail(fail08); must_fail(fail09); must_fail(fail10); must_fail(fail11); } int main() { should_work(); should_fail(); cerr << "all is ok\n"; }
[ "pixel@rigaux.org" ]
pixel@rigaux.org
49aebd01de4152da12bd3df60061d30da57a2b95
ebfc6de17bfc09bd4a674b31be56e899fd264092
/DeferredRendering/Scene.cpp
0df08d79d5a8b3040d96a8cdcdbf7c7225f46a27
[]
no_license
sonyomega/DeferredRendering
2c9de3c89663024027e04a426bbdee4d479f37a5
afc3c756c7ac77bb4e09195c951139e0c15dd954
refs/heads/master
2021-01-15T20:48:32.026396
2013-04-21T22:33:23
2013-04-21T22:33:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
432
cpp
#pragma once #include "stdafx.h" #include "Scene.h" Scene::Scene(void) { m_Models.push_back(new Model(NULL, NULL)); srand(0); for (int x = 0; x < 64; x++) for (int y = 0; y < 10; y++) for (int z = 0; z < 64; z++) { if (rand()%2 == 0) voxels[x][y][z].State = Active; else voxels[x][y][z].State = Inactive; } } Scene::~Scene(void) { } std::vector<Model*> Scene::GetModels() { return m_Models; }
[ "alexandre.pestana@supinfo.com" ]
alexandre.pestana@supinfo.com
fc1a2938d9875b18f554ea23dceed1502f22ce4c
b28d0b5625008237eb8409adb05cffe6c04176c6
/src/sparse_and_dense.cpp
cce756d5dfaa0a0d8eba454766588cfe1fcfd751
[ "MIT" ]
permissive
DongdongBai/slumbot2017
daea025f342aa01181d0a9a003dcc003c65b68aa
f0ddb6af63e9f7e25ffa7ef01337d47299a6520d
refs/heads/master
2020-11-26T19:34:58.296865
2019-12-19T18:15:17
2019-12-19T18:15:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,374
cpp
// Maintains a set of sparse numerical values and dense numerical values // and a mapping between them. #include <stdio.h> #include <stdlib.h> #include "constants.h" #include "sparse_and_dense.h" SparseAndDenseInt::SparseAndDenseInt(void) : SparseAndDense() { sparse_to_dense_ = new unordered_map<unsigned int, unsigned int>; unsigned int *block = new unsigned int[kBlockSize]; dense_to_sparse_ = new vector<unsigned int *>; dense_to_sparse_->push_back(block); } SparseAndDenseInt::~SparseAndDenseInt(void) { delete sparse_to_dense_; unsigned int num_blocks = dense_to_sparse_->size(); for (unsigned int i = 0; i < num_blocks; ++i) { delete [] (*dense_to_sparse_)[i]; } delete dense_to_sparse_; } unsigned int SparseAndDenseInt::SparseToDense( unsigned long long int ull_sparse) { if (ull_sparse > kMaxUInt) { fprintf(stderr, "SparseAndDenseInt::SparseToDense: sparse too big: %llu\n", ull_sparse); exit(-1); } unsigned int sparse = (unsigned int)ull_sparse; unordered_map<unsigned int, unsigned int>::iterator it; it = sparse_to_dense_->find(sparse); if (it == sparse_to_dense_->end()) { unsigned int block = num_ / kBlockSize; unsigned int dense = num_++; if (block >= dense_to_sparse_->size()) { dense_to_sparse_->push_back(new unsigned int[kBlockSize]); } unsigned int index = dense % kBlockSize; (*dense_to_sparse_)[block][index] = sparse; (*sparse_to_dense_)[sparse] = dense; return dense; } else { return it->second; } } unsigned long long int SparseAndDenseInt::DenseToSparse(unsigned int dense) { unsigned int block = dense / kBlockSize; unsigned int index = dense % kBlockSize; return (*dense_to_sparse_)[block][index]; } void SparseAndDenseInt::Clear(void) { dense_to_sparse_->clear(); sparse_to_dense_->clear(); num_ = 0; } SparseAndDenseLong::SparseAndDenseLong(void) : SparseAndDense() { sparse_to_dense_ = new unordered_map<unsigned long long int, unsigned int>; unsigned long long int *block = new unsigned long long int[kBlockSize]; dense_to_sparse_ = new vector<unsigned long long int *>; dense_to_sparse_->push_back(block); } SparseAndDenseLong::~SparseAndDenseLong(void) { delete sparse_to_dense_; unsigned int num_blocks = dense_to_sparse_->size(); for (unsigned int i = 0; i < num_blocks; ++i) { delete [] (*dense_to_sparse_)[i]; } delete dense_to_sparse_; } unsigned int SparseAndDenseLong::SparseToDense(unsigned long long int sparse) { unordered_map<unsigned long long int, unsigned int>::iterator it; it = sparse_to_dense_->find(sparse); if (it == sparse_to_dense_->end()) { unsigned int block = num_ / kBlockSize; unsigned int dense = num_++; if (block >= dense_to_sparse_->size()) { dense_to_sparse_->push_back(new unsigned long long int[kBlockSize]); } unsigned int index = dense % kBlockSize; (*dense_to_sparse_)[block][index] = sparse; (*sparse_to_dense_)[sparse] = dense; return dense; } else { return it->second; } } unsigned long long int SparseAndDenseLong::DenseToSparse(unsigned int dense) { unsigned int block = dense / kBlockSize; unsigned int index = dense % kBlockSize; return (*dense_to_sparse_)[block][index]; } void SparseAndDenseLong::Clear(void) { dense_to_sparse_->clear(); sparse_to_dense_->clear(); num_ = 0; }
[ "eric.jackson@gmail.com" ]
eric.jackson@gmail.com
dfddaf6f5f93eb9c7b2d03de12c571d08e77343e
dd7f3f83b781f61b3423c7c20850d06f3088a18a
/check_robots.cc
a92ca558ae7b3322c0e8d45414cf12c4a24f36f3
[ "Apache-2.0" ]
permissive
hundt/robotstxt
fb1a7decf97e8ffe3f193edc12e66eb8ad6ceb2f
3412b6922acfb23ceaaa83daca43f862c962bf61
refs/heads/master
2020-06-19T05:54:17.363456
2019-07-12T20:53:25
2019-07-12T20:53:25
196,587,859
0
0
null
2019-07-12T13:52:48
2019-07-12T13:52:47
null
UTF-8
C++
false
false
2,081
cc
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <fstream> #include <iostream> #include "absl/strings/ascii.h" #include "robots.h" bool LoadFile(const std::string& filename, std::string* result) { std::ifstream file(filename, std::ios::in | std::ios::binary | std::ios::ate); if (file.is_open()) { size_t size = file.tellg(); std::vector<char> buffer(size); file.seekg(0, std::ios::beg); file.read(buffer.data(), size); file.close(); if (!file) return false; // file reading error (failbit or badbit). result->assign(buffer.begin(), buffer.end()); return true; } return false; } void ShowHelp(int argc, char** argv) { std::cerr << "Provides comments on a robots.txt file. " << std::endl << std::endl; std::cerr << "Usage: " << std::endl << " " << argv[0] << " <robots.txt filename>" << std::endl; } int main(int argc, char** argv) { std::string filename = argc >= 2 ? argv[1] : ""; if (filename == "-h" || filename == "-help" || filename == "--help") { ShowHelp(argc, argv); return 0; } if (argc != 2) { std::cerr << "Invalid amount of arguments. Showing help." << std::endl << std::endl; ShowHelp(argc, argv); return 1; } std::string robots_content; if (!(LoadFile(filename, &robots_content))) { std::cerr << "failed to read file \"" << filename << "\"" << std::endl; return 1; } googlebot::RobotsRewriter rewriter; googlebot::ParseRobotsTxt(robots_content, &rewriter); }
[ "chris@superbrilliant.io" ]
chris@superbrilliant.io
ff10bafaf029c8bf1cc3d6b8f5e4ba1d6933d03e
eb1f316580de4eb7f37632bb0cd7a4f1178f3386
/src/Account_Types.cpp
c7b27a17b4db5c6751ef04efbd43d6c2cfc7e297
[]
no_license
Ehab-Fawzy/Bank-System-c-
4376b2ad9e9097f60901ee0971494fa1dfcd87c1
7b37091bd86ca347075564344af676473ec4057b
refs/heads/master
2020-05-20T17:11:55.365968
2019-05-08T21:34:43
2019-05-08T21:34:43
185,682,351
0
0
null
null
null
null
UTF-8
C++
false
false
677
cpp
#include "Account_Types.h" int Account_Types::account_ID = 1; Account_Types::Account_Types() { this->ID = 0; this->Balance = 0; } void Account_Types::create_Account() { this->ID = this->account_ID; account_ID++; this->setBalance(); } int Account_Types::getId() { return this->ID; } int Account_Types::getBalance() { return this->Balance; } void Account_Types::setType( string type_input ) { this->type = type_input; } void Account_Types::print_Account_Details() { cout << "Account Id : " << this->ID << endl << "Balance : " << this->Balance << endl << "Bank Type : " << this->type << endl; }
[ "32040371+Ehab-Fawzy@users.noreply.github.com" ]
32040371+Ehab-Fawzy@users.noreply.github.com
720dde9a10c63f4ce94cc49373eb89fda9992bf9
6ed6c8a4c547388953db86a23597016a1c6aee90
/Game.h
51f22328a5f66834779a813080bf4cff8d99f5a0
[ "Zlib" ]
permissive
nitvic793/SirForgetsALot
60bb36bf963bdb41e6edb953dbf189bddac1929c
2b5cf20228c096c3d5d924e2dfa21a5ab4b66748
refs/heads/master
2020-06-11T07:41:10.002065
2016-12-06T13:02:15
2016-12-06T13:02:15
75,731,355
0
0
null
null
null
null
UTF-8
C++
false
false
271
h
#ifndef GAME_H_INCLUDED #define GAME_H_INCLUDED #include <SFML/Graphics.hpp> class Game { sf::RenderWindow Window; sf::Event Event; public: Game() : Window(sf::VideoMode(1366,768),"Sir ForgetsaLot") { } void run(); }; #endif // GAME_H_INCLUDED
[ "nithishvictor@gmail.com" ]
nithishvictor@gmail.com
9cf6151acdec025a07dbebdcdffd512b8b31e366
bd3cef6df6a6cc28af443752963560d059d4545f
/graphs/scc.cpp
471ef2d61a3b0766b22e6cfb88a44a872962f667
[ "CC0-1.0", "MIT" ]
permissive
Mayur1011/CodeBook
fe5581b50d3d7bcce5f85013db20c2b749186913
6bb5ffe6299c79a364cfa84d28520a1b3b5e4350
refs/heads/master
2023-08-29T11:08:24.307740
2021-11-09T14:28:59
2021-11-09T14:28:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,720
cpp
std::tuple<std::vector<std::vector<int>>, std::vector<std::vector<int>>, std::vector<int>> find_scc(const std::vector<std::vector<int>>& g, int const Base = 0) { std::vector<int> val, z, component; std::vector<std::vector<int>> scc; int timer = 0, total_components = 0; const auto dfs = [&](const auto& self, int u) -> int { int low = val[u] = ++timer; int x; z.push_back(u); for (auto v : g[u]) if (component[v] < 0) low = std::min(low, val[v] ? val[v] : self(self, v)); if (low == val[u]) { scc.emplace_back(); do { x = z.back(); z.pop_back(); component[x] = total_components; scc.back().push_back(x); } while (x != u); total_components++; } return val[u] = low; }; int n = g.size(); val.assign(n, 0); component.assign(n, -1); timer = total_components = 0; for (int i = 0; i < n; ++i) if (component[i] < 0) dfs(dfs, i); std::reverse(std::begin(scc), std::end(scc)); for (int i = 0; i < n; ++i) component[i] = total_components - 1 - component[i]; std::vector<bool> seen(n); std::vector<std::vector<int>> condensed_graph(total_components); for (int i = 0; i < total_components; ++i) { for (auto u : scc[i]) for (auto v : g[u]) if (component[v] != i && !seen[component[v]]) condensed_graph[i].push_back(component[v]), seen[component[v]] = true; for (auto v : condensed_graph[i]) seen[v] = false; } return {scc, condensed_graph, component}; }
[ "navneel.singhal@ymail.com" ]
navneel.singhal@ymail.com
4dee04ceaab6ed99faafe9a7105596ac5cbcf6d4
db6903560e8c816b85b9adec3187f688f8e40289
/VisualUltimate/WindowsSDKs/vc7_64/Src/mfc/tooltip.cpp
27dc28e89bf1324b1dd3b8ca88e02d35d0f397c5
[]
no_license
QianNangong/VC6Ultimate
846a4e610859fab5c9d8fb73fa5c9321e7a2a65e
0c74cf644fbdd38018c8d94c9ea9f8b72782ef7c
refs/heads/master
2022-05-05T17:49:52.120385
2019-03-07T14:46:51
2019-03-07T14:46:51
147,986,727
4
1
null
null
null
null
UTF-8
C++
false
false
14,566
cpp
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #ifdef AFX_CMNCTL_SEG #pragma code_seg(AFX_CMNCTL_SEG) #endif #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // CToolTipCtrl BEGIN_MESSAGE_MAP(CToolTipCtrl, CWnd) //{{AFX_MSG_MAP(CToolTipCtrl) ON_MESSAGE(WM_DISABLEMODAL, OnDisableModal) ON_MESSAGE(TTM_WINDOWFROMPOINT, OnWindowFromPoint) ON_MESSAGE(TTM_ADDTOOL, OnAddTool) ON_WM_ENABLE() //}}AFX_MSG_MAP END_MESSAGE_MAP() CToolTipCtrl::CToolTipCtrl() { } BOOL CToolTipCtrl::Create(CWnd* pParentWnd, DWORD dwStyle) { // initialize common controls VERIFY(AfxDeferRegisterClass(AFX_WNDCOMMCTL_BAR_REG)); BOOL bResult = CWnd::CreateEx(NULL, TOOLTIPS_CLASS, NULL, WS_POPUP | dwStyle, // force WS_POPUP CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, pParentWnd->GetSafeHwnd(), NULL, NULL); if (bResult) SetOwner(pParentWnd); return bResult; } CToolTipCtrl::~CToolTipCtrl() { DestroyWindow(); } BOOL CToolTipCtrl::DestroyToolTipCtrl() { #ifdef _AFXDLL BOOL bDestroy = (AfxGetModuleState() == m_pModuleState); #else BOOL bDestroy = TRUE; #endif if (bDestroy) { DestroyWindow(); delete this; } return bDestroy; } LRESULT CToolTipCtrl::OnAddTool(WPARAM wParam, LPARAM lParam) { TOOLINFO ti = *(LPTOOLINFO)lParam; if ((ti.hinst == NULL) && (ti.lpszText != LPSTR_TEXTCALLBACK) && (ti.lpszText != NULL)) { void* pv; if (!m_mapString.Lookup(ti.lpszText, pv)) m_mapString.SetAt(ti.lpszText, NULL); // set lpszText to point to the permanent memory associated // with the CString VERIFY(m_mapString.LookupKey(ti.lpszText, ti.lpszText)); } return DefWindowProc(TTM_ADDTOOL, wParam, (LPARAM)&ti); } LRESULT CToolTipCtrl::OnDisableModal(WPARAM, LPARAM) { SendMessage(TTM_ACTIVATE, FALSE); return FALSE; } void CToolTipCtrl::OnEnable(BOOL bEnable) { SendMessage(TTM_ACTIVATE, bEnable); } LRESULT CToolTipCtrl::OnWindowFromPoint(WPARAM, LPARAM lParam) { ASSERT(lParam != NULL); // the default implementation of tooltips just calls WindowFromPoint // which does not work for certain kinds of combo boxes CPoint pt = *(POINT*)lParam; HWND hWnd = ::WindowFromPoint(pt); if (hWnd == NULL) return 0; // try to hit combobox instead of edit control for CBS_DROPDOWN styles HWND hWndTemp = ::GetParent(hWnd); if (hWndTemp != NULL && _AfxIsComboBoxControl(hWndTemp, CBS_DROPDOWN)) return (LRESULT)hWndTemp; // handle special case of disabled child windows ::ScreenToClient(hWnd, &pt); hWndTemp = _AfxChildWindowFromPoint(hWnd, pt); if (hWndTemp != NULL && !::IsWindowEnabled(hWndTemp)) return (LRESULT)hWndTemp; return (LRESULT)hWnd; } BOOL CToolTipCtrl::AddTool(CWnd* pWnd, LPCTSTR lpszText, LPCRECT lpRectTool, UINT_PTR nIDTool) { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); ASSERT(lpszText != NULL); // the toolrect and toolid must both be zero or both valid ASSERT((lpRectTool != NULL && nIDTool != 0) || (lpRectTool == NULL) && (nIDTool == 0)); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); if (lpRectTool != NULL) ti.rect = *lpRectTool; ti.lpszText = (LPTSTR)lpszText; return (BOOL) ::SendMessage(m_hWnd, TTM_ADDTOOL, 0, (LPARAM)&ti); } BOOL CToolTipCtrl::AddTool(CWnd* pWnd, UINT nIDText, LPCRECT lpRectTool, UINT_PTR nIDTool) { ASSERT(::IsWindow(m_hWnd)); ASSERT(nIDText != 0); ASSERT(pWnd != NULL); // the toolrect and toolid must both be zero or both valid ASSERT((lpRectTool != NULL && nIDTool != 0) || (lpRectTool == NULL) && (nIDTool == 0)); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); if (lpRectTool != NULL) ti.rect = *lpRectTool; ti.hinst = AfxFindResourceHandle(MAKEINTRESOURCE((nIDText>>4)+1), RT_STRING); ASSERT(ti.hinst != NULL); ti.lpszText = (LPTSTR)MAKEINTRESOURCE(nIDText); return (BOOL) ::SendMessage(m_hWnd, TTM_ADDTOOL, 0, (LPARAM)&ti); } void CToolTipCtrl::DelTool(CWnd* pWnd, UINT_PTR nIDTool) { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); ::SendMessage(m_hWnd, TTM_DELTOOL, 0, (LPARAM)&ti); } void CToolTipCtrl::GetText(CString& str, CWnd* pWnd, UINT_PTR nIDTool) const { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); ti.lpszText = str.GetBuffer(256); ::SendMessage(m_hWnd, TTM_GETTEXT, 0, (LPARAM)&ti); str.ReleaseBuffer(); } BOOL CToolTipCtrl::GetToolInfo(CToolInfo& ToolInfo, CWnd* pWnd, UINT_PTR nIDTool) const { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); FillInToolInfo(ToolInfo, pWnd, nIDTool); ToolInfo.lpszText = ToolInfo.szText; return (BOOL)::SendMessage(m_hWnd, TTM_GETTOOLINFO, 0, (LPARAM)&ToolInfo); } BOOL CToolTipCtrl::HitTest(CWnd* pWnd, CPoint pt, LPTOOLINFO lpToolInfo) const { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); ASSERT(lpToolInfo != NULL); TTHITTESTINFO hti; memset(&hti, 0, sizeof(hti)); hti.ti.cbSize = sizeof(AFX_OLDTOOLINFO); hti.hwnd = pWnd->GetSafeHwnd(); hti.pt.x = pt.x; hti.pt.y = pt.y; if ((BOOL)::SendMessage(m_hWnd, TTM_HITTEST, 0, (LPARAM)&hti)) { memcpy(lpToolInfo, &hti.ti, sizeof(AFX_OLDTOOLINFO)); return TRUE; } return FALSE; } void CToolTipCtrl::SetToolRect(CWnd* pWnd, UINT_PTR nIDTool, LPCRECT lpRect) { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); ASSERT(nIDTool != 0); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); ti.rect = *lpRect; ::SendMessage(m_hWnd, TTM_NEWTOOLRECT, 0, (LPARAM)&ti); } void CToolTipCtrl::UpdateTipText(LPCTSTR lpszText, CWnd* pWnd, UINT_PTR nIDTool) { ASSERT(::IsWindow(m_hWnd)); ASSERT(pWnd != NULL); TOOLINFO ti; FillInToolInfo(ti, pWnd, nIDTool); ti.lpszText = (LPTSTR)lpszText; ::SendMessage(m_hWnd, TTM_UPDATETIPTEXT, 0, (LPARAM)&ti); } void CToolTipCtrl::UpdateTipText(UINT nIDText, CWnd* pWnd, UINT_PTR nIDTool) { ASSERT(nIDText != 0); CString str; VERIFY(str.LoadString(nIDText)); UpdateTipText(str, pWnd, nIDTool); } ///////////////////////////////////////////////////////////////////////////// // CToolTipCtrl Implementation void CToolTipCtrl::FillInToolInfo(TOOLINFO& ti, CWnd* pWnd, UINT_PTR nIDTool) const { memset(&ti, 0, sizeof(AFX_OLDTOOLINFO)); ti.cbSize = sizeof(AFX_OLDTOOLINFO); HWND hwnd = pWnd->GetSafeHwnd(); if (nIDTool == 0) { ti.hwnd = ::GetParent(hwnd); ti.uFlags = TTF_IDISHWND; ti.uId = (UINT_PTR)hwnd; } else { ti.hwnd = hwnd; ti.uFlags = 0; ti.uId = nIDTool; } } ///////////////////////////////////////////////////////////////////////////// // CWnd tooltip support BOOL CWnd::_EnableToolTips(BOOL bEnable, UINT nFlag) { ASSERT(nFlag == WF_TOOLTIPS || nFlag == WF_TRACKINGTOOLTIPS); _AFX_THREAD_STATE* pThreadState = AfxGetThreadState(); CToolTipCtrl* pToolTip = pThreadState->m_pToolTip; if (!bEnable) { // nothing to do if tooltips not enabled if (!(m_nFlags & nFlag)) return TRUE; // cancel tooltip if this window is active if (pThreadState->m_pLastHit == this) CancelToolTips(TRUE); // remove "dead-area" toolbar if (pToolTip->GetSafeHwnd() != NULL) { TOOLINFO ti; memset(&ti, 0, sizeof(TOOLINFO)); ti.cbSize = sizeof(AFX_OLDTOOLINFO); ti.uFlags = TTF_IDISHWND; ti.hwnd = m_hWnd; ti.uId = (UINT_PTR)m_hWnd; pToolTip->SendMessage(TTM_DELTOOL, 0, (LPARAM)&ti); } // success m_nFlags &= ~nFlag; return TRUE; } // if already enabled for tooltips, nothing to do if (!(m_nFlags & nFlag)) { // success AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE(); pModuleState->m_pfnFilterToolTipMessage = &CWnd::_FilterToolTipMessage; m_nFlags |= nFlag; } return TRUE; } BOOL CWnd::EnableToolTips(BOOL bEnable) { return _EnableToolTips(bEnable, WF_TOOLTIPS); } BOOL CWnd::EnableTrackingToolTips(BOOL bEnable) { return _EnableToolTips(bEnable, WF_TRACKINGTOOLTIPS); } AFX_STATIC void AFXAPI _AfxRelayToolTipMessage(CToolTipCtrl* pToolTip, MSG* pMsg) { // transate the message based on TTM_WINDOWFROMPOINT MSG msg = *pMsg; msg.hwnd = (HWND)pToolTip->SendMessage(TTM_WINDOWFROMPOINT, 0, (LPARAM)&msg.pt); CPoint pt = pMsg->pt; if (msg.message >= WM_MOUSEFIRST && msg.message <= WM_MOUSELAST) ::ScreenToClient(msg.hwnd, &pt); msg.lParam = MAKELONG(pt.x, pt.y); // relay mouse event before deleting old tool pToolTip->SendMessage(TTM_RELAYEVENT, 0, (LPARAM)&msg); } void PASCAL CWnd::_FilterToolTipMessage(MSG* pMsg, CWnd* pWnd) { pWnd->FilterToolTipMessage(pMsg); } void CWnd::FilterToolTipMessage(MSG* pMsg) { // this CWnd has tooltips enabled UINT message = pMsg->message; if ((message == WM_MOUSEMOVE || message == WM_NCMOUSEMOVE || message == WM_LBUTTONUP || message == WM_RBUTTONUP || message == WM_MBUTTONUP) && (GetKeyState(VK_LBUTTON) >= 0 && GetKeyState(VK_RBUTTON) >= 0 && GetKeyState(VK_MBUTTON) >= 0)) { // make sure that tooltips are not already being handled CWnd* pWnd = CWnd::FromHandle(pMsg->hwnd); while (pWnd != NULL && !(pWnd->m_nFlags & (WF_TOOLTIPS|WF_TRACKINGTOOLTIPS))) { pWnd = pWnd->GetParent(); } if (pWnd != this) { if (pWnd == NULL) { // tooltips not enabled on this CWnd, clear last state data _AFX_THREAD_STATE* pThreadState = _afxThreadState.GetData(); pThreadState->m_pLastHit = NULL; pThreadState->m_nLastHit = -1; } return; } _AFX_THREAD_STATE* pThreadState = _afxThreadState.GetData(); CToolTipCtrl* pToolTip = pThreadState->m_pToolTip; CWnd* pOwner = GetParentOwner(); if (pToolTip != NULL && pToolTip->GetOwner() != pOwner) { pToolTip->DestroyWindow(); delete pToolTip; pThreadState->m_pToolTip = NULL; pToolTip = NULL; } if (pToolTip == NULL) { pToolTip = new CToolTipCtrl; if (!pToolTip->Create(pOwner, TTS_ALWAYSTIP)) { delete pToolTip; return; } pToolTip->SendMessage(TTM_ACTIVATE, FALSE); pThreadState->m_pToolTip = pToolTip; } ASSERT_VALID(pToolTip); ASSERT(::IsWindow(pToolTip->m_hWnd)); // add a "dead-area" tool for areas between toolbar buttons TOOLINFO ti; memset(&ti, 0, sizeof(TOOLINFO)); ti.cbSize = sizeof(AFX_OLDTOOLINFO); ti.uFlags = TTF_IDISHWND; ti.hwnd = m_hWnd; ti.uId = (UINT_PTR)m_hWnd; if (!pToolTip->SendMessage(TTM_GETTOOLINFO, 0, (LPARAM)&ti)) { ASSERT(ti.uFlags == TTF_IDISHWND); ASSERT(ti.hwnd == m_hWnd); ASSERT(ti.uId == (UINT_PTR)m_hWnd); VERIFY(pToolTip->SendMessage(TTM_ADDTOOL, 0, (LPARAM)&ti)); } // determine which tool was hit CPoint point = pMsg->pt; ::ScreenToClient(m_hWnd, &point); TOOLINFO tiHit; memset(&tiHit, 0, sizeof(TOOLINFO)); tiHit.cbSize = sizeof(AFX_OLDTOOLINFO); int nHit = OnToolHitTest(point, &tiHit); // build new toolinfo and if different than current, register it CWnd* pHitWnd = nHit == -1 ? NULL : this; if (pThreadState->m_nLastHit != nHit || pThreadState->m_pLastHit != pHitWnd) { if (nHit != -1) { // add new tool and activate the tip ti = tiHit; ti.uFlags &= ~(TTF_NOTBUTTON|TTF_ALWAYSTIP); if (m_nFlags & WF_TRACKINGTOOLTIPS) ti.uFlags |= TTF_TRACK; VERIFY(pToolTip->SendMessage(TTM_ADDTOOL, 0, (LPARAM)&ti)); if ((tiHit.uFlags & TTF_ALWAYSTIP) || IsTopParentActive()) { // allow the tooltip to popup when it should pToolTip->SendMessage(TTM_ACTIVATE, TRUE); if (m_nFlags & WF_TRACKINGTOOLTIPS) pToolTip->SendMessage(TTM_TRACKACTIVATE, TRUE, (LPARAM)&ti); // bring the tooltip window above other popup windows ::SetWindowPos(pToolTip->m_hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE|SWP_NOOWNERZORDER); } } else { pToolTip->SendMessage(TTM_ACTIVATE, FALSE); } // relay mouse event before deleting old tool _AfxRelayToolTipMessage(pToolTip, pMsg); // now safe to delete the old tool if (pThreadState->m_lastInfo.cbSize >= sizeof(AFX_OLDTOOLINFO)) pToolTip->SendMessage(TTM_DELTOOL, 0, (LPARAM)&pThreadState->m_lastInfo); pThreadState->m_pLastHit = pHitWnd; pThreadState->m_nLastHit = nHit; pThreadState->m_lastInfo = tiHit; } else { if (m_nFlags & WF_TRACKINGTOOLTIPS) { POINT pt; ::GetCursorPos( &pt ); pToolTip->SendMessage(TTM_TRACKPOSITION, 0, MAKELPARAM(pt.x, pt.y)); } else { // relay mouse events through the tooltip if (nHit != -1) _AfxRelayToolTipMessage(pToolTip, pMsg); } } if ((tiHit.lpszText != LPSTR_TEXTCALLBACK) && (tiHit.hinst == 0)) free(tiHit.lpszText); } else if (m_nFlags & (WF_TOOLTIPS|WF_TRACKINGTOOLTIPS)) { // make sure that tooltips are not already being handled CWnd* pWnd = CWnd::FromHandle(pMsg->hwnd); while (pWnd != NULL && pWnd != this && !(pWnd->m_nFlags & (WF_TOOLTIPS|WF_TRACKINGTOOLTIPS))) pWnd = pWnd->GetParent(); if (pWnd != this) return; BOOL bKeys = (message >= WM_KEYFIRST && message <= WM_KEYLAST) || (message >= WM_SYSKEYFIRST && message <= WM_SYSKEYLAST); if ((m_nFlags & WF_TRACKINGTOOLTIPS) == 0 && (bKeys || (message == WM_LBUTTONDOWN || message == WM_LBUTTONDBLCLK) || (message == WM_RBUTTONDOWN || message == WM_RBUTTONDBLCLK) || (message == WM_MBUTTONDOWN || message == WM_MBUTTONDBLCLK) || (message == WM_NCLBUTTONDOWN || message == WM_NCLBUTTONDBLCLK) || (message == WM_NCRBUTTONDOWN || message == WM_NCRBUTTONDBLCLK) || (message == WM_NCMBUTTONDOWN || message == WM_NCMBUTTONDBLCLK))) { CWnd::CancelToolTips(bKeys); } } } ///////////////////////////////////////////////////////////////////////////// #ifdef AFX_INIT_SEG #pragma code_seg(AFX_INIT_SEG) #endif IMPLEMENT_DYNAMIC(CToolTipCtrl, CWnd) /////////////////////////////////////////////////////////////////////////////
[ "vc6@ultim.pw" ]
vc6@ultim.pw
05c3be16839bc7e75457ff49b2c0e71d36968dd7
b60f89e5d2ccf346dff5a2bc7523ef307842d64a
/Tests/Editor/Uis/Hierarchy.hpp
21ad0ae1dba23f9606da107062290db6c5692a89
[ "MIT" ]
permissive
EQMG/Acid
bebcffa21c27bbdf5dd9afb8bb964e04a483ab74
2ff8adee30cfb571d27a1d937689608ccea12734
refs/heads/master
2023-08-08T06:04:20.040879
2022-07-19T05:41:12
2022-07-19T05:41:12
96,174,151
1,388
166
MIT
2021-09-12T18:16:24
2017-07-04T04:07:10
C++
UTF-8
C++
false
false
626
hpp
#pragma once #include <Uis/Inputs/UiButtonInput.hpp> #include <Uis/Inputs/UiGrabberInput.hpp> #include <Uis/Inputs/UiSliderInput.hpp> #include <Uis/Inputs/UiTextInput.hpp> //#include <Uis/Inputs/UiColourWheel.hpp> #include <Uis/UiSection.hpp> #include <Uis/UiPanel.hpp> #include <Guis/Gui.hpp> using namespace acid; namespace test { class Hierarchy : public UiPanel { public: Hierarchy(); void UpdateObject() override; private: UiSection section1; UiButtonInput button1; UiSliderInput sliderR; UiSliderInput sliderG; UiSliderInput sliderB; UiTextInput textHex; Gui rgbColour; //UiColourWheel colourWheel; }; }
[ "mattparks5855@gmail.com" ]
mattparks5855@gmail.com
0e8355296e05f63eaf8e2dd07d814d429750ce6d
e0d191a56966fbf2b5c75bb04f94c067ee2525d4
/Labs/Lab 12/q1.cpp
d75160c5ce9f65cddb3888c5a3988c91029b5e0f
[]
no_license
rishabh-live/oop-w-cpp-4-sem
ec0087819410e4d5351e680f7dad6b0796bd4b78
df6cd7cc4a1e7ec648c2103f3c86772cde8d9439
refs/heads/main
2023-04-22T15:12:51.078198
2021-05-10T07:05:55
2021-05-10T07:05:55
330,564,856
1
0
null
null
null
null
UTF-8
C++
false
false
411
cpp
#include <bits/stdc++.h> using namespace std; // use of try-catch block for exception handling int main() { int age; cout << "Enter Your Age: "; cin >> age; try { if (age >= 18) cout << "Acceess Granted - you are old enough\n"; else throw (age); } catch (int age1) { cout << "Access Denied You are not old enough\n"; cout << "Your Age: " << age1 << "\n"; } return 0; }
[ "rishabh12536@gmail.com" ]
rishabh12536@gmail.com
168d9cab9843eaf49d9f58b26f56334b059d70c0
38c833575af2f7731379fe145ba9ca82c4232e73
/Volume11(ICPC-Domestic)/aoj1137_NumeralSystem.cpp
ba48583e5434a8900aaa9604ed34ca5742449710
[]
no_license
xuelei7/AOJ
b962fad9e814274b4c24ae1e891b37cae5c143f2
81f565ab8b3967a5db838e09f70154bb7a8af507
refs/heads/main
2023-08-26T08:39:46.392711
2021-11-10T14:27:04
2021-11-10T14:27:04
426,647,139
0
0
null
null
null
null
UTF-8
C++
false
false
1,627
cpp
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = (int)(a); (i) < (int)(b); (i)++) #define rrep(i, a, b) for (int i = (int)(b) - 1; (i) >= (int)(a); (i)--) #define all(v) v.begin(), v.end() typedef long long ll; template <class T> using V = vector<T>; template <class T> using VV = vector<V<T>>; /* 提出時これをコメントアウトする */ #define LOCAL true #ifdef LOCAL #define dbg(x) cerr << __LINE__ << " : " << #x << " = " << (x) << endl #else #define dbg(x) true #endif string ecd(int k, string s) { string ret = ""; if (k == 1) ret = s; if (k > 1) ret = to_string(k) + s; return ret; } string encode(int k) { string ret = ""; int m = k / 1000; k %= 1000; int c = k / 100; k %= 100; int x = k / 10; k %= 10; int i = k; ret += ecd(m, "m"); ret += ecd(c, "c"); ret += ecd(x, "x"); ret += ecd(i, "i"); return ret; } int decode(string s) { int ret = 0; for (int i = 0; i < s.size(); i++) { int k = 1; if (s[i] >= '2' && s[i] <= '9') { k = s[i] - '0'; i++; } if (s[i] == 'm') k *= 1000; if (s[i] == 'c') k *= 100; if (s[i] == 'x') k *= 10; ret += k; } return ret; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); constexpr char endl = '\n'; int n; cin >> n; while(n--) { string a,b; cin >> a >> b; cout << encode(decode(a) + decode(b)) << endl; } return 0; }
[ "yuxuelei52@hotmail.com" ]
yuxuelei52@hotmail.com
8fa41962aba784e24555b606fe0db65393d9de76
a4e12f7b14bf563b8c6b473268c8087c51c0cc12
/src/vitis_security_benchmarks/adler32/adler32_security_benchmark/Emulation-HW/Adler32Kernel.build/link/vivado/vpl/prj/prj.ip_user_files/bd/pfm_dynamic/sim/pfm_dynamic_sci.h
dd4b1d62f006a87c2947fe896f4dc1de4eeab6c1
[]
no_license
BabarZKhan/xilinx_ETH_training_winterschool_2021
49054f85dfab1b4b75e3f4f85244bb8428cdf983
bd2f2f1fc9cf524bee432970d9b10d21c013dda1
refs/heads/main
2023-09-02T07:24:15.182179
2021-11-22T09:09:28
2021-11-22T09:09:28
329,877,240
0
0
null
null
null
null
UTF-8
C++
false
false
2,235
h
//File Automatically generated by SystemC Netlister Time #ifndef PFM_DYNAMIC_SCI_H #define PFM_DYNAMIC_SCI_H #include "systemc.h" #include "xtlm.h" #include "utils/xtlm_aximm_transview.h" #include "utils/xtlm_aximm_transaction_logger.h" #include "utils/xtlm_axis_transaction_logger.h" #include "pfm_dynamic_dpa_mon0_0_sc.h" #include "pfm_dynamic_dpa_hub_0_sc.h" #include "pfm_dynamic_dpa_mon1_0_sc.h" #include "pfm_dynamic_dpa_mon2_0_sc.h" #include "pfm_dynamic_dpa_mon3_0_sc.h" #include "pfm_dynamic_dpa_mon4_0_sc.h" #include "pfm_dynamic_xtlm_simple_intercon_0_0_sc.h" #include "pfm_dynamic_icn_pass_0_0_sc.h" #include "pfm_dynamic_memory_subsystem_0_sc.h" #include "pfm_dynamic_sim_ddr_0_0_sc.h" #include "pfm_dynamic_icn_pass_1_0_sc.h" #include "pfm_dynamic_icn_pass_2_0_sc.h" #include "pfm_dynamic_sim_ddr_2_0_sc.h" #include "pfm_dynamic_icn_pass_3_0_sc.h" #include "pfm_dynamic_sim_ddr_3_0_sc.h" class pfm_dynamic_sci : public xsc::utils::xsc_sim_conn_base { public: //Exported sockets declaration xtlm::xtlm_aximm_initiator_socket* C0_DDR_MAXI_0_tlm_aximm_read_socket;; xtlm::xtlm_aximm_initiator_socket* C0_DDR_MAXI_0_tlm_aximm_write_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_4_tlm_aximm_read_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_4_tlm_aximm_write_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_0_tlm_aximm_read_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_0_tlm_aximm_write_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_3_tlm_aximm_read_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_3_tlm_aximm_write_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_1_tlm_aximm_read_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_1_tlm_aximm_write_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_2_tlm_aximm_read_socket;; xtlm::xtlm_aximm_target_socket* data_M_AXI_2_tlm_aximm_write_socket;; //Constructor for the module pfm_dynamic_sci(const sc_module_name& module_name); SC_HAS_PROCESS(pfm_dynamic_sci); //Destructor for the module ~pfm_dynamic_sci(); void initConnModule(); protected: void before_end_of_elaboration(); private: pfm_dynamic_sci(const pfm_dynamic_sci&); const pfm_dynamic_sci& operator=(const pfm_dynamic_sci&); }; #endif
[ "centos@ip-172-31-58-45.ec2.internal" ]
centos@ip-172-31-58-45.ec2.internal
40c94c82d7544a4703869cc60d78dcad208401ac
f5f5b1000d5802ca13fe506871652173be3ef430
/pw_sync/mutex.cc
416182ed9309cfce4018a1ad40cf5ae29e758f5e
[ "Apache-2.0" ]
permissive
mohrr/pigweed
a91dec259de743405609bb551da923e426e0368b
a10ebdb9cbd2a836bb35665d200ccb3968b19f7c
refs/heads/main
2023-03-20T00:12:56.997632
2021-03-11T03:50:13
2021-03-11T04:19:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,351
cc
// Copyright 2020 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations under // the License. #include "pw_sync/mutex.h" using pw::chrono::SystemClock; extern "C" void pw_sync_Mutex_Lock(pw_sync_Mutex* mutex) { mutex->lock(); } extern "C" bool pw_sync_Mutex_TryLock(pw_sync_Mutex* mutex) { return mutex->try_lock(); } extern "C" bool pw_sync_Mutex_TryLockFor( pw_sync_Mutex* mutex, pw_chrono_SystemClock_Duration for_at_least) { return mutex->try_lock_for(SystemClock::duration(for_at_least.ticks)); } extern "C" bool pw_sync_Mutex_TryLockUntil( pw_sync_Mutex* mutex, pw_chrono_SystemClock_TimePoint until_at_least) { return mutex->try_lock_until(SystemClock::time_point( SystemClock::duration(until_at_least.duration_since_epoch.ticks))); } extern "C" void pw_sync_Mutex_Unlock(pw_sync_Mutex* mutex) { mutex->unlock(); }
[ "pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com
e07d76ac73f3425683b9d302a9494545b12e3a7f
84dd2490c7b5dda1fa01ba4bd5530dca00b3e8e7
/src/Main-Ctrl/BN/BNpos.cpp
63e580e7d704b2df4f25be9c96ebb506a65fa36e
[]
no_license
eglrp/laser_slam
2c6e58f7a8bbf5c94f7024d2aebae3eca69de4fa
83e980848e029a6addd937956b6e524b6d89c632
refs/heads/master
2020-04-07T04:52:49.104644
2017-04-15T20:55:23
2017-04-15T20:55:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,863
cpp
#include "BNpos.h" /* FILE *fp; pthread_t id1; bool endthread=false; void* readthreadFunction(void *arg) { BNpos* robotpos1=(BNpos*)arg; robotpos1->listenUART(); } void* printfthreadFunction(void *arg) { BNpos* robotpos1=(BNpos*)arg; unsigned int recvtmp=0; while(1) { if(!endthread) { if(robotpos1->recvcnt>robotpos1->recvcnt_ex) { recvtmp=robotpos1->recvcnt-robotpos1->recvcnt_ex; robotpos1->recvcnt_ex=robotpos1->recvcnt; printf("id=%d,vx=%d,vy=%d,vr=%d,posx=%d,posy=%d,angle=%d,addr=%d,obs=%d\n",robotpos1->robot.robotid,robotpos1->robot.speedx,robotpos1->robot.speedy,robotpos1->robot.speedr,robotpos1->robot.positionx,robotpos1->robot.positiony,robotpos1->robot.angle,robotpos1->robot.address,robotpos1->robot.obstaclepos); printf("freq=%d\n",recvtmp); } else { recvtmp=0; printf("freq=%d\n",recvtmp); } sleep(1); } else { printf("printf thread quit\n"); return 0; } } } int main() { int i,j; char hehe; char dev[] ={"/dev/ttyUSB0"}; BNpos robotpos(dev,57600,18); fp=fopen("log.txt","w"); if(fp==NULL) { printf("log.txt file open error\n"); } if(pthread_create(&(robotpos.listenuartid),NULL,readthreadFunction,(void*)(&robotpos))!=0) { printf("Create read thread error!\n"); } if(pthread_create(&id1,NULL,printfthreadFunction,(void*)(&robotpos))!=0) { printf("create printf thread error!\n"); } while(1) { hehe=getchar(); if(hehe=='q') { endthread=true; pthread_join(id1,NULL); robotpos.closed(); fclose(fp); printf("done\n"); return 0; } } return 0; } */ BNpos::BNpos(char* dev,unsigned int Baudrate,int myRobotID) { thread_close=0; recvcnt=0; recvcnt_ex=0; memset(&robot,0,sizeof(robot)); speed_arr[0] = B115200; speed_arr[1] = B57600; speed_arr[2] = B38400; speed_arr[3] = B19200; speed_arr[4] = B9600; speed_arr[5] = B4800; speed_arr[6] = B2400; speed_arr[7] = B1200; speed_arr[8] = B300; speed_arr[9] = B115200; speed_arr[10] = B57600; speed_arr[11] = B38400; speed_arr[12] = B19200; speed_arr[13] = B9600; speed_arr[14] = B4800; speed_arr[15] = B2400; speed_arr[16] = B1200; speed_arr[17] = B300; name_arr[0] = 115200; name_arr[1] = 57600; name_arr[2] = 38400; name_arr[3] = 19200; name_arr[4] = 9600; name_arr[5] = 4800; name_arr[6] = 2400; name_arr[7] = 1200; name_arr[8] = 300; name_arr[9] = 115200; name_arr[10] = 57600; name_arr[11] = 38400; name_arr[12] = 19200; name_arr[13] = 9600; name_arr[14] = 4800; name_arr[15] = 2400; name_arr[16] = 1200; name_arr[17] = 300; start(dev,Baudrate); pthread_mutex_init(&m_BNposMutex,0); q1.empty(); MyRobotID = myRobotID; MyAddressNow = 0; } void BNpos::set_speed(int fd, int speed) { int i; int status; struct termios Opt; tcgetattr(fd, &Opt); for ( i= 0; i < sizeof(speed_arr) / sizeof(int); i++) { if (speed == name_arr[i]) { tcflush(fd, TCIOFLUSH); cfsetispeed(&Opt, speed_arr[i]); cfsetospeed(&Opt, speed_arr[i]); status = tcsetattr(fd, TCSANOW, &Opt); if (status != 0) perror("tcsetattr fd1"); return; } tcflush(fd,TCIOFLUSH); } } void BNpos::closed() { thread_close=1; pthread_join(listenuartid,NULL); close(fd); } BNpos::~BNpos() { if(thread_close==0) { thread_close=1; pthread_join(listenuartid,NULL); close(fd); } } int BNpos::set_Parity(int fd,int databits,int stopbits,int parity) { struct termios options; if ( tcgetattr( fd,&options) != 0) { perror("SetupSerial 1"); return(0); } options.c_cflag &= ~CSIZE; switch (databits) /*讟眮数据䜍数*/ { case 7: options.c_cflag |= CS7; break; case 8: options.c_cflag |= CS8; break; default: fprintf(stderr,"Unsupported data size\n"); return (0); } switch (parity) { case 'n': case 'N': options.c_cflag &= ~PARENB; /* Clear parity enable */ options.c_iflag &= ~INPCK; /* Enable parity checking */ break; case 'o': case 'O': options.c_cflag |= (PARODD | PARENB); /* 讟眮䞺奇效验*/ options.c_iflag |= INPCK; /* Disnable parity checking */ break; case 'e': case 'E': options.c_cflag |= PARENB; /* Enable parity */ options.c_cflag &= ~PARODD; /* 蜬换䞺偶效验*/ options.c_iflag |= INPCK; /* Disnable parity checking */ break; case 'S': case 's': /*as no parity*/ options.c_cflag &= ~PARENB; options.c_cflag &= ~CSTOPB; break; default: fprintf(stderr,"Unsupported parity\n"); return (0); } /* 讟眮停变量止äœ?*/ switch (stopbits) { case 1: options.c_cflag &= ~CSTOPB; break; case 2: options.c_cflag |= CSTOPB; break; default: fprintf(stderr,"Unsupported stop bits\n"); return (0); } /* Set input parity option */ if (parity != 'n') options.c_iflag |= INPCK; options.c_cc[VTIME] = 150; // 15 seconds options.c_cc[VMIN] = 0; options.c_lflag &= ~(ICANON |ISIG); options.c_iflag &= ~(ICRNL|IGNCR); tcflush(fd,TCIFLUSH); /* Update the options and do it NOW */ if (tcsetattr(fd,TCSANOW,&options) != 0) { perror("SetupSerial 3"); return (0); } return (1); } int BNpos::OpenDev(char *Dev) { int fd = open( Dev, O_RDWR ); //| O_NOCTTY | O_NDELAY if (-1 == fd) { /*讟眮数据䜍数*/ perror("Can't Open Serial Port"); return -1; } else return fd; } void BNpos::start(char* portname,unsigned int Baudrate) { fd = OpenDev(portname); if (fd>0) set_speed(fd,Baudrate); else { printf("Can't Open Serial Port!\n"); } if (set_Parity(fd,8,1,'N')== 0) { printf("Set Parity Error\n"); } } void BNpos::listenUART() { unsigned char buff[512]; int nread; int i; unsigned char tmpc[24]; unsigned int cRobID1,cRobID2; int tmp=0; while(thread_close==0) { memset(buff,0,sizeof(buff)); nread=read(fd,buff,512); if(nread>=1) { for(i=0;i<nread;i++) { q1.push(buff[i]); } memset(buff,0,sizeof(buff)); } while(q1.size()>=25) { if(q1.front()==0xFF) { q1.pop(); if((q1.front() & 0xF0) == 0x90) { for(i=0;i<24;i++) { tmpc[i]=q1.front(); q1.pop(); } cRobID1 = ((tmpc[0] & 0x0c)<<2) | (tmpc[1]>>4); cRobID2 = ((tmpc[0] & 0x03)<<4 | (tmpc[1] & 0x0f)); if(MyRobotID==cRobID1) { i=0; robot.robotid = MyRobotID; robot.speedx = ((tmpc[2+11*i] & 0x80)==0) ? ((tmpc[2+11*i] & 0x7f) | ((tmpc[10+11*i] & 0xc0)<<1)) : (0 - ((tmpc[2+11*i] & 0x7f) | ((tmpc[10+11*i] & 0xc0)<<1))); robot.speedy = ((tmpc[3+11*i] & 0x80)==0) ? ((tmpc[3+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x30)<<3)) : (0 - ((tmpc[3+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x30)<<3))); robot.speedr = ((tmpc[4+11*i] & 0x80)==0) ? ((tmpc[4+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x0c)<<5)) : (0 - ((tmpc[4+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x0c)<<5))); robot.angle = ((tmpc[9+11*i] & 0x80)==0) ? ((tmpc[9+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x03)<<7)) : (0 - ((tmpc[9+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x03)<<7))); robot.positionx = ((tmpc[5+11*i] & 0x80)==0) ? (((tmpc[5+11*i] & 0x7f)<<8) | tmpc[6+11*i]) : (0 - ((tmpc[5+11*i] & 0x7f)<<8 | tmpc[6+11*i])); robot.positiony = ((tmpc[7+11*i] & 0x80)==0) ? (((tmpc[7+11*i] & 0x7f)<<8) | tmpc[8+11*i]) : (0 - ((tmpc[7+11*i] & 0x7f)<<8 | tmpc[8+11*i])); robot.address = ((tmpc[11+11*i] & 0x80)==0) ? (tmpc[11+11*i] & 0x7f) : 0xFF; robot.obstaclepos = ((tmpc[12+11*i] & 0x80)==0) ? 0 : (tmpc[12+11*i] & 0x7f); tmp=(tmpc[11+11*i] & 0x7f); //fprintf(fp,"addr=%d,tmp=%d,id=%d\n",robot.address,tmp,robot.robotid); recvcnt++; } else if(MyRobotID==cRobID2) { i=1; robot.robotid = MyRobotID; robot.speedx = ((tmpc[2+11*i] & 0x80)==0) ? ((tmpc[2+11*i] & 0x7f) | ((tmpc[10+11*i] & 0xc0)<<1)) : (0 - ((tmpc[2+11*i] & 0x7f) | ((tmpc[10+11*i] & 0xc0)<<1))); robot.speedy = ((tmpc[3+11*i] & 0x80)==0) ? ((tmpc[3+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x30)<<3)) : (0 - ((tmpc[3+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x30)<<3))); robot.speedr = ((tmpc[4+11*i] & 0x80)==0) ? ((tmpc[4+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x0c)<<5)) : (0 - ((tmpc[4+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x0c)<<5))); robot.angle = ((tmpc[9+11*i] & 0x80)==0) ? ((tmpc[9+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x03)<<7)) : (0 - ((tmpc[9+11*i] & 0x7f) | ((tmpc[10+11*i] & 0x03)<<7))); robot.positionx = ((tmpc[5+11*i] & 0x80)==0) ? (((tmpc[5+11*i] & 0x7f)<<8) | tmpc[6+11*i]) : (0 - ((tmpc[5+11*i] & 0x7f)<<8 | tmpc[6+11*i])); robot.positiony = ((tmpc[7+11*i] & 0x80)==0) ? (((tmpc[7+11*i] & 0x7f)<<8) | tmpc[8+11*i]) : (0 - ((tmpc[7+11*i] & 0x7f)<<8 | tmpc[8+11*i])); robot.address = ((tmpc[11+11*i] & 0x80)==0) ? (tmpc[11+11*i] & 0x7f) : 0; robot.obstaclepos = ((tmpc[12+11*i] & 0x80)==0) ? 0 : (tmpc[12+11*i] & 0x7f); tmp=(tmpc[11+11*i] & 0x7f); //fprintf(fp,"addr=%d,tmp=%d,id=%d\n",robot.address,tmp,robot.robotid); recvcnt++; } } else if((q1.front() & 0xf0)==0x70) { for(i=0;i<24;i++) { tmpc[i]=q1.front(); q1.pop(); } if(tmpc[2]==0x1D) { printf("board change freq to %d\n",tmpc[1]); //fprintf(fp,"change done to %d\n",tmpc[1]); } } else { q1.pop(); } } else { q1.pop(); } } } }
[ "hxzhang1@ualr.edu" ]
hxzhang1@ualr.edu
88ada1106891c48af04a3a988b972eed1807059f
ee96855e67b090cd754f01cff5eac8ce47ef4919
/SJD_Maze_Find.ino
bcd8c56fdec786044a5e8a607a97ec451a75ea6a
[ "MIT" ]
permissive
sivads/SJD_Maze_Find
e7ded2ca45062de227f262701e1279975f5e5e25
56cbcad39712ac1b967671ac8706aed5e4c0efe8
refs/heads/master
2020-05-18T11:00:09.073208
2014-07-13T19:05:31
2014-07-13T19:05:31
21,795,903
3
1
null
null
null
null
UTF-8
C++
false
false
27,248
ino
/**************************************************************************************** Programming by S. Davis and J. Davis (c) SJ Davis Robotics Date: 06/2014 This program aims to demonstrate the maze navigation and line following functionality of the ArcBotics Sparki robot platform using the Infrared Reflectance Sensors and the Ultrasonic Range Finder. Sparki's goal is to navigate the maze and find the object a the END of the maze. He will pick up the object and return it to the START of the maze. 1. He uses all five of his Infrared Reflectance Sensors to follow the maze center black line to ensure that he is always traveling in the center between the maze walls. 2. He uses his Ultrasonic Range Finder to detect the maze walls and make navigation decisions. 3. He uses his Infrared Reflectance Sensors to detect the START and END of the maze. 4. He uses his front Gripper to pick up the object at the END of the maze and return it to the START of the maze. 5. He uses his buzzer (beeper) to indicate turns, walls, and dead ends. 6. He uses his buzzer (beeper) to play a melody when he completes the maze. 7. He uses his RGB LED to indicate on (green) and off (red) centerline conditions. 8. He uses his RGB LED to indicate START and END marker detection (blue). Documentation, including the Maze Specifications, Program Flow, and Special Maneuvering algorithms is included here as PDF files. This application was created as part of Science Fair project for my son's elementary school. The theme of the project was Robot Sensors. We worked very hard and had lots of fun learning about Sparki and developing the code together! If you like what we did or find this code useful for your own project, please consider donating to our education fund so that can continue to do projects like this and pursue higher educational goals E-mail/PayPal Donations: donations@sjdavisrobotics.com BitCoin Donations: 1Hp3htmCAyiYNg52XXhoVtjB7VdkqaQDMq **Thank you!** Steve (dad) and Jonathan (son) Davis ***************************************************************************************** This Software is provided under the MIT Open Source License Agreement: ___ _ ___ _ _ _ |SJ \ __ ___ _(c)___ | _ \___| |__ ___| |_(_)__ ___ | |) / _` \ V / (_-< | / _ \ '_ \/ _ \ _| / _(_-< |___/\__,_|\_/|_/__/ |_|_\___/_.__/\___/\__|_\__/__/ (c) SJ Davis Robotics Copyright (c) 2014, SJ Davis Robotics (Steven E. Davis and Jonathan Davis) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # ####### ### # # ## # # ###### # # # # # ### # # # # # # # # # # ## # ### ####### # # # # ##### ##### # # # # # # # # ###### # # # # # # # # # # # # # # # # # # # # ## ### # # # # ## ###### # #### # # ### Width Set to 90 ----> ****************************************************************************************/ #include <Sparki.h> // include the sparki library #include "pitches.h" // include a list of pitches // Program Mode Constants const boolean MAZE_MODE = true; // Seek Distance Constants const int SEEK_DISTANCE_FORWARD = 14; // forward distance to seek objects in cm const int SEEK_DISTANCE_RIGHT = 10; // right distance to seek objects in cm const int SEEK_DISTANCE_LEFT = 10; // left distance to seek objects in cm // This value specifies the number of times the forward range function, // _SparkiPositionFromForwardObject() will hunt for the specified forward range. const int FORWARD_RANGE_HUNT_THRESHOLD = 15; // Coin flip constants const int HEADS = 1; const int TAILS = 0; // ----------------------------------------------------------------------- // IR Sensors (line detection) Raw Date // White-Black Line Detection Threshold // Typically, white paper is ~1000, a black line is below 400, and off the edge is below 200. // This value may need adjusting, depending on outside factors, like how much sunlight // (infrared light) a room has, how dark/white something is, how far away the sensor is // from surface, etc. const int IR_THRESHOLD = 600; // IR Sensor (line detection) Data Variables int edgeLeft = 0; // left edge IR sensor data int lineLeft = 0; // left IR sensor data int lineCenter = 0; // center IR sensor data int lineRight = 0; // right IR sensor data int edgeRight = 0; // right edge IR sensor data // IR Sensor Data (converted to boolean values) boolean bEdgeLeft = false; boolean bLineLeft = false; boolean bLineCenter = false; boolean bLineRight = false; boolean bEdgeRight = false; // Used to select a random direction int nDirection = 0; // -1 = Left, 1 = Right, 0 = Forward int nLastDirection = 0; int nLostCount = 0; boolean bHaveObject = false; boolean bTerminate = false; boolean bStartFinishMarker = false; // ----------------------------------------------------------------------- // Remote Control (IR Receiver) Code // Remote Control Code int nRemoteCode = 0; // ========================================================================= // INIT // ========================================================================= void setup() { _LEDOff(); // initialize to look forward sparki.servo(SERVO_CENTER); // open the gripper _openGripper(); // Randomize randomSeed(sparki.edgeLeft()); // Make some noise to indicate initialization complete _SparkiPlay_StartUpSound(); } // END INIT // ========================================================================= // MAIN LOOP // ========================================================================= void loop() { _START_: // ---------------------------------------------------------------------- // Read the IR Remote Control Code nRemoteCode = sparki.readIR(); // ---------------------------------------------------------------------- // Read IR Sensor Data _ReadIRSensorData(); // ---------------------------------------------------------------------- // Display IR Sensor Data on LCD Screen _UpdateLCDInformation(); // ---------------------------------------------------------------------- // Sparki Moves // --------------------------------------------------- // SPARKI -- ARE YOU ON THE BLACK PERPENDICULAR LINE? // --------------------------------------------------- // Black Perpendicular Line Detection: // The black perpendicular line across Sparki's path indicates // the START of the Maze or the FINISH of the maze, depending on // the START or FINISH markers just beyond the black perpendicular line. if (bEdgeLeft && bLineLeft && bLineCenter && bLineRight && bEdgeRight) { // ------------------------------------------- // SPARKI SENSES THE BLACK PERPENDICULAR LINE // ------------------------------------------- // START or FINISH indicator BLUE _LEDBlue(); // Halt Sparki sparki.moveStop(); // Make some noise _SparkiBeep(2); // -------------------------------------------------------------- // SPARKI -- FIND OUT IF YOU ARE AT THE START OR THE FINISH LINE // -------------------------------------------------------------- // Find the START or FINISH (Left or Right Edge Sensor only) // The START or FINISH markers are beyond the black solid perpendicular line bStartFinishMarker = false; do { // Move Sparki ahead slowly sparki.moveForward(1); // Read the IR Sensor data (trying to find the START or FINISH marker) _ReadIRSensorData(); _UpdateLCDInformation(); // If the left edge sensor is white and the right edge sensor is black (START) OR // the left edge sensor is black and the right edge sensor is white (FINISH), // then, Sparki will drop the object at the START line (if he has it) OR he will // pick up the object at the FINISH line (if he does not have it). if ( (!bEdgeLeft && bEdgeRight) || (bEdgeLeft && !bEdgeRight) ) { bStartFinishMarker = true; // Left Edge is White, Right Edge is Black = START if (!bEdgeLeft && bEdgeRight) { // -------------------------------- // SPARKI IS AT THE START MARKER!! // -------------------------------- // If Sparki has the object, he will drop it at the START line. if (bHaveObject) { // -------------------------- // SPARKI -- DROP THE OBJECT // -------------------------- // Drop the object _openGripper(); // Play Victory Song _SparkiPlay_ShaveAndAHaircut(); // Back away from object so Sparki doesn't hit it when he turns around. sparki.moveBackward(6); // Sparki now has the object, so set the bHaveObject flag bHaveObject = false; } } // Left Edge is Black, Right Edge is White = FINISH if (bEdgeLeft && !bEdgeRight) { // -------------------------------- // SPARKI IS AT THE FINISH MARKER!! // -------------------------------- // If Sparki does not have the object, he will pick it up at the FINISH line. if (!bHaveObject) { // ------------------------------------------- // SPARKI -- GET THE OBJECT WITH YOUR GRIPPER // ------------------------------------------- // Get object (it should be right in front of him!) _closeGripper(); bHaveObject = true; } } // --------------------- // SPARKI -- TURN AROUND // --------------------- // Turn Sparki Around: // The START and FINISH lines are the end points of the maze, // so Sparki must turn around! _SparkiTurnAround(); } } while (!bStartFinishMarker); // Solid Black Line Handler complete, so go back to the start of the main loop. goto _START_; } // --------------------------------------- // SPARKI -- DETECT AND STAY ON THE LINE! // --------------------------------------- // Check if Sparki is not on the line (no sensors are detecting the line) // Sparki may be completely lost if he continues to be off the line. if (!bLineLeft && !bLineCenter && !bLineRight) { // -------------------------------_ // SPARKI -- YOU ARE OFF THE LINE! // -------------------------------- // Sparki is not on the line (no sensors are detecting the line) // Off line indicator RED _LEDRed(); // Count how many times Sparki is off the line nLostCount = nLostCount + 1; // If Sparki continues to be lost, then stop him and halt the program. // This should not happen if Sparki stays in the maze. if ( nLostCount > 30 ) { // --------------------------------------------- // SPARKI -- IF YOU ARE COMPLETELY LOST -- HALT // --------------------------------------------- sparki.beep(); sparki.moveStop(); bTerminate = true; goto _THE_END_; } else { // ------------------------------- // SPARKI -- GET BACK ON THE LINE! // ------------------------------- // Turn 5-deg in a random direction to hunt for the line. // This could be improve with a smarter approach where the angle could be // adjusted depending on his previous turn. However, this seems to work just fine. if (_flipCoin() == HEADS) { sparki.moveRight(5); } else { sparki.moveLeft(5); } // Move backward one click, but every 5 times, move forward 2 clicks. // This keeps Sparki from wandering too far backwards when he is lost. if ( nLostCount % 5 == 0) { sparki.moveForward(2); } else { sparki.moveBackward(1); } } } else { // -------------------------------- // SPARKI -- YOUR ARE ON THE LINE? // -------------------------------- // Sparki is on the line here // (at least one of the sensors is detecting the line) _LEDGreen(); nLostCount = 0; if ( bLineLeft && bLineRight ) { // In rare cases, both the left and right sensors will pick up the line. // If Sparki moves forward 2 clicks (charges ahead), he will have an opportunity // to to see if what he detects is more meaningful. sparki.moveForward(2); } else { // Left rail detected // Get Sparki back on the center line by moving him slightly left. if ( bLineLeft ) { sparki.moveLeft(5); nLastDirection = -1; } // Right rail detected // Get Sparki back on the center line by moving him slightly right.. if ( bLineRight ) { sparki.moveRight(5); nLastDirection = 1; } // If the center line sensor is the only one reading a line... if ( bLineCenter && !bLineRight && !bLineLeft ) { // MAZE NAVIGATION: // Maze mode uses Sparki's ultrasonic range sensors to make turn decisions. if (MAZE_MODE == true) { // -------------------------------------------- // SPARKI -- CHECK YOUR RIGHT -- IS IT CLEAR? // -------------------------------------------- if (_RightIsObstacle()) { // -------------------------------------------- // SPARKI -- CHECK YOUR FRONT -- IS IT CLEAR? // -------------------------------------------- if (_FrontIsClear()) { // ---------------------------------------------- // SPARKI -- YOUR FRONT IS CLEAR -- MOVE FORWARD // ---------------------------------------------- // Front is clear --> Move Forward Five Paces sparki.moveForward(5); } else { // ----------------------------------- // SPARKI -- YOUR FRONT IS NOT CLEAR! // ----------------------------------- _SparkiPlay_FrontSound(); // Position Sparki at specified distance from the detected forward wall. if (_SparkiPositionFromForwardObject(5)) { // ------------------------------ // SPARKI -- IS YOUR LEFT CLEAR? // ------------------------------ if ( _LeftIsObstacle() ) { // ------------------------------------------- // SPARKI -- YOU ARE BOXED IN -- TURN AROUND! // ------------------------------------------- // Boxed in -- Turn Around. _SparkiPlay_TurnAroundSound(); _SparkiTurnAround(); } else { // ------------------------------------------- // SPARKI -- YOUR LEFT IS CLEAR -- TURN LEFT! // ------------------------------------------- // Turn Left _SparkiPlay_LeftSound(); _SparkiTurnLeft(); sparki.moveForward(10); } } else { // Sparki cannot range the forward object, so go back the // way he came. // Turn around _SparkiPlay_TurnAroundSound(); _SparkiTurnAround(); } } } else { // -------------------------------------------- // SPARKI -- YOUR RIGHT IS CLEAR -- TURN RIGHT // -------------------------------------------- // Turn Sparki right _SparkiPlay_RightSound(); // This tries to align Sparki to the right turn line BEFORE turning. // Sparki needs to be near the center of the maze corridor before making // the turn. boolean bLineFound = false; do { _ReadIRSensorData(); _UpdateLCDInformation(); if ( !bEdgeRight ) { sparki.moveForward(1); } else { bLineFound = true; } } while (!bLineFound); // Now, line up for the turn. sparki.moveForward(5); // Do the turn _SparkiTurnRight(); // Move forward sparki.moveForward(10); } } else { // If not in Maze Mode, just move forward (no turns) sparki.moveForward(5); } // Maze Mode } } } _THE_END_: if (bTerminate) { return; } //delay(100); // wait 0.1 seconds } // END MAIN LOOP // ========================================================================= // Helper Functions // ========================================================================= //-------------------------------------------------------------------- // Gripper Control Functions // Open the Gripper void _openGripper() { sparki.gripperOpen(); delay(4000); sparki.gripperStop(); } // Close the Gripper void _closeGripper() { sparki.gripperClose(); delay(4000); sparki.gripperStop(); } //-------------------------------------------------------------------- // LED Control Functions // Turn LED solid Green void _LEDGreen() { sparki.RGB(0, 255, 0); // Make the LED maximum Green } // END _LEDGreen // Turn LED solid Red void _LEDRed() { sparki.RGB(255, 0, 0); // Make the LED maximum Green } // END _LEDRed // Turn LED solid Blue void _LEDBlue() { sparki.RGB(0, 0, 255); // Make the LED maximum Blue } // END _LEDBlue // Turn LED OFF void _LEDOff() { sparki.RGB(RGB_OFF); } // END _LEDOff // Turn LED solid white (all colors on) void _LEDWhite() { sparki.RGB(255, 255, 255); } // END _LEDWhite //-------------------------------------------------------------------- // Utility Functions // Coin Flip: // Returns Heads or Tails according to defined constants. int _flipCoin() { int nCoin = random(0,2); if (nCoin == 0) { return TAILS; } else { return HEADS; } } // END _flipCoin //-------------------------------------------------------------------- // Sparki Maze Movement Functions // Turn Sparki Around // This function turns Sparki around so that he can find the guide line. // Turn him a little past 180-deg, but also turn him slightly, then back up // a few paces so that he won't run into the maze wall. void _SparkiTurnAround() { sparki.moveRight(45); sparki.moveBackward(2); sparki.moveRight(150); } // END _SparkiTurnAround // Turn Sparki Right // This function turns Sparki right so that he can find the guide line. // Turn him a little past 90-deg. void _SparkiTurnRight() { sparki.moveRight(95); } // END _SparkiTurnRight // Turn Sparki Left // This function turns Sparki left so that he can find the guide line. // Turn him a little past 90-deg. void _SparkiTurnLeft() { sparki.moveLeft(95); } // END _SparkiTurnLeft //-------------------------------------------------------------------- // IR Sensor Functions // Reads all five IR Sensors // All data read will be in the global variables so that all other functions // can use the data (see variable declarations above). void _ReadIRSensorData() { edgeLeft = sparki.edgeLeft(); // get left edge IR sensor data lineLeft = sparki.lineLeft(); // get left IR sensor data lineCenter = sparki.lineCenter(); // get center IR sensor data lineRight = sparki.lineRight(); // get right IR sensor data edgeRight = sparki.edgeRight(); // get right edge IR sensor data // Turn the sensor data into boolean values based on threshold number bEdgeLeft = false; if (edgeLeft < IR_THRESHOLD) {bEdgeLeft = true;} bLineLeft = false; if (lineLeft < IR_THRESHOLD) {bLineLeft = true;} bLineCenter = false; if (lineCenter < IR_THRESHOLD) {bLineCenter = true;} bLineRight = false; if (lineRight < IR_THRESHOLD) {bLineRight = true;} bEdgeRight = false; if (edgeRight < IR_THRESHOLD) {bEdgeRight = true;} } // END _ReadIRSensorData //-------------------------------------------------------------------- // LCD Information Display // LCD Update void _UpdateLCDInformation() { sparki.clearLCD(); // clear the screen sparki.println("SJ Davis Robotics"); sparki.println("** IR Sensor Data **"); // Left Edge IR Sensor Data sparki.print(" << EDGE L = "); sparki.print(edgeLeft); sparki.print(" "); sparki.println(bEdgeLeft); // Left Line IR Sensor Data sparki.print(" < LINE L = "); sparki.print(lineLeft); sparki.print(" "); sparki.println(bLineLeft); // Center Line IR Sensor Data sparki.print(" | LINE C = "); sparki.print(lineCenter); sparki.print(" "); sparki.println(bLineCenter); // Right Line IR Sensor Data sparki.print(" > LINE R = "); sparki.print(lineRight); sparki.print(" "); sparki.println(bLineRight); // Right Edge IR Sensor Data sparki.print(" >> EDGE R = "); sparki.print(edgeRight); sparki.print(" "); sparki.println(bEdgeRight); // Remote control code received. // sparki.print("~ REMOTE = "); // sparki.println(nRemoteCode); sparki.updateLCD(); } // END _UpdateLCDInformation //-------------------------------------------------------------------- // Sparki's Sounds const int MORSE_DOT = 16; const int MORSE_DASH = 6; void _SparkiBeep(int n) { if ( n > 0 ) { do { sparki.beep(); delay(500); n = n - 1; } while(n > 0); } } // END _SparkiBeep void _SparkiPlay_StartUpSound() { int melody[] = { NOTE_C5, NOTE_A5}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, 4 }; _SparkiPlayMelody(melody, noteDurations, 2); } void _SparkiPlay_ShaveAndAHaircut() { // notes in the melody: int melody[] = { NOTE_C4, NOTE_G3,NOTE_G3, NOTE_A3, NOTE_G3,0, NOTE_B3, NOTE_C4 }; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, 8, 8, 4, 4, 4, 4, 4 }; _SparkiPlayMelody(melody, noteDurations, 8); } void _SparkiPlay_FrontSound() { // notes in the melody: // Morse Code C for Center: -.-. int melody[] = { NOTE_C5, NOTE_C5, NOTE_C5, NOTE_C5}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { MORSE_DASH, MORSE_DOT, MORSE_DASH, MORSE_DOT}; _SparkiPlayMelody(melody, noteDurations, 4); } void _SparkiPlay_RightSound() { // notes in the melody: // Morse Code R for Right: .-. int melody[] = { 0, NOTE_C5, NOTE_C5, NOTE_C5}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, MORSE_DOT, MORSE_DASH, MORSE_DOT }; _SparkiPlayMelody(melody, noteDurations, 4); } void _SparkiPlay_LeftSound() { // notes in the melody: // Morse Code L for Left: .-.. int melody[] = { 0, NOTE_C5, NOTE_C5, NOTE_C5, NOTE_C5}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 4, MORSE_DOT, MORSE_DASH, MORSE_DOT, MORSE_DOT}; _SparkiPlayMelody(melody, noteDurations, 5); } void _SparkiPlay_TurnAroundSound() { // notes in the melody: int melody[] = { NOTE_G5, NOTE_C4}; // note durations: 4 = quarter note, 8 = eighth note, etc.: int noteDurations[] = { 8, 4 }; _SparkiPlayMelody(melody, noteDurations, 2); } // Melody Player: // Plays the specified melody (notes and durations) void _SparkiPlayMelody(int melody[], int durations[], int nSize) { // NOTE: // Rats. C arrays don't store their own sizes anywhere, so sizeof() only // works the way you expect if the size is known at compile time. // malloc() is treated by the compiler as any other function, so sizeof() // can't tell that melody is an array, let alone how big it is. // If you need to know the size of the array, you need to explicitly pass // it to your function, either as a separate argument, or by using a struct // containing a pointer to your array and its size. for (int thisNote = 0; thisNote < nSize; thisNote++) { // calculate the note duration as 1 second divided by note type. //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc. int noteDuration = 1000/durations[thisNote]; sparki.beep(melody[thisNote],noteDuration); // to distinguish the notes, set a minimum time between them. // the note's duration + 30% seems to work well: int pauseBetweenNotes = noteDuration * 1.30; delay(pauseBetweenNotes); // stop the tone playing: sparki.noBeep(); } } // END _SparkiPlayMelody //-------------------------------------------------------------------- // Sparki's Eyes // Is there an obstacle to the right of Sparki? boolean _RightIsObstacle() { sparki.servo(85); delay(200); int cm = sparki.ping(); delay(200); sparki.servo(SERVO_CENTER); if (cm < SEEK_DISTANCE_RIGHT) { return true; } else { return false; } } // END _RightIsObstacle // Is there an obstacle to the left of Sparki? boolean _LeftIsObstacle() { sparki.servo(-85); delay(200); int cm = sparki.ping(); delay(200); sparki.servo(SERVO_CENTER); if (cm < SEEK_DISTANCE_LEFT) { return true; } else { return false; } } // END _RightIsObstacle // Is Sparky's path in fromt of him clear? boolean _FrontIsClear() { sparki.servo(SERVO_CENTER); delay(200); int cm = sparki.ping(); if (cm < SEEK_DISTANCE_FORWARD) { return false; } else { return true; } } // END _FrontIsClear // Move Sparki to a specified distance from a forward object. boolean _SparkiPositionFromForwardObject(int distance) { boolean bBoom = false; int nForwardMoves = 0; int nBackwardMoves = 0; sparki.servo(SERVO_CENTER); delay(200); do { int cm = sparki.ping(); // If the forward object (a wall) is at the specified range // then exit the loop. if ( (cm < distance + 1) && (cm > distance - 1) ) { bBoom = true; } else { // Error condition: hunting too much (threshold?) // This is supposed to handle the condition where something other // than a valid wall is detected (someone's hand?) and Sparki // cannot determine it's position (false ping or obstacle removed). if ( nForwardMoves + nBackwardMoves > FORWARD_RANGE_HUNT_THRESHOLD) { // Can't find the forward object in specified range. // Range not found, return fails. return false; } if ( cm < distance ) { // Move Sparki backward one click sparki.moveBackward(1); // Count the times Sparki moves backward nBackwardMoves++; } else { // Move Sparki forward one click sparki.moveForward(1); // Count the times Sparki moves forward. nForwardMoves++; } } } while (!bBoom); // Range found, return true. return true; } // END _SparkiPositionFromForwardObject
[ "sdavis@sjdavisrobotics.com" ]
sdavis@sjdavisrobotics.com
07cdb80c7da5a6098e3f7bdbc8ecd7891506920a
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/squid/gumtree/squid_repos_function_1368_squid-3.3.14.cpp
8fee0b3735c84077789e6e91ad75a428fc69ab86
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
134
cpp
void DelayUser::operator delete (void *address) { DelayPools::MemoryUsed -= sizeof (DelayUser); ::operator delete (address); }
[ "993273596@qq.com" ]
993273596@qq.com
dab458754f4f216fd4e75d8edcc76d685da66059
e9175b63c7b5c19678a1a8e5e334aed63952aa69
/mypic.h
f43a0a2bc55e2445c9d4cf7b65847d6199533f63
[]
no_license
salty-Frankenstein/FR_RayTracer
ecd7e30a1ee6cd537adf6cd9ccb03f43aa53b0b3
c4236c8305d4e601d2015df727f85a66ef509306
refs/heads/master
2020-03-26T02:04:54.981391
2019-06-26T04:35:44
2019-06-26T04:35:44
144,396,144
2
0
null
null
null
null
UTF-8
C++
false
false
2,591
h
#pragma once #include<cstdio> #include<string> using namespace std; struct pixel { pixel() {} pixel(double r, double g, double b) { if (g > 1.1 || r > 1.1 || b > 1.1) { printf("color out\n"); system("pause"); } c[0] = b * 255; c[1] = g * 255; c[2] = r * 255; } pixel operator*(double k); pixel operator+(pixel k); unsigned char c[3];//0B 1G 2R }; inline pixel pixel::operator*(double k) { return pixel(c[0] * k, c[1] * k, c[2] * k); } inline pixel pixel::operator+(pixel k) { return pixel(c[0] + k.c[0], c[1] + k.c[1], c[2] + k.c[2]); } struct Color { Color() {} Color(double _r, double _g, double _b) { r = _r; g = _g; b = _b; } pixel GPixel(); Color operator*(double k); void operator*=(double k); Color operator+(Color k); void operator+=(Color k);; double g, r, b; }; inline pixel Color::GPixel() { return pixel(r, g, b); } inline Color Color::operator*(double k) { return Color(r*k, g*k, b*k); } inline void Color::operator*=(double k) { g *= k; r *= k; b *= k; } inline Color Color::operator+(Color k) { return Color(r + k.r, g + k.g, b + k.b); } inline void Color::operator+=(Color k) { g += k.g; r += k.r; b += k.b; } class mypic { public: mypic(int height, int length) { int i; hei = height; len = length; data = (pixel**)malloc(sizeof(pixel*)*height); for (i = 0; i<height; i++) data[i] = (pixel*)malloc(sizeof(pixel)*length); } ~mypic() {} void ReadBmp(FILE *fp); int GLen(); int GHei(); unsigned char RD(int i, int j); unsigned char GR(int i, int j); unsigned char BL(int i, int j); void putpixel(int i, int j, pixel t); pixel getpixel(int i, int j); private: int hei, len; pixel **data; }; inline int mypic::GHei() { return hei; } inline int mypic::GLen() { return len; } inline unsigned char mypic::RD(int i, int j) { return data[i][j].c[2]; } inline unsigned char mypic::GR(int i, int j) { return data[i][j].c[1]; } inline unsigned char mypic::BL(int i, int j) { return data[i][j].c[0]; } inline void mypic::putpixel(int i, int j, pixel t) { data[i][j] = t; } inline pixel mypic::getpixel(int i, int j) { return data[i][j]; } void picout(mypic &p, FILE *fp, string path = "out") { path += ".ppm"; fopen_s(&fp, path.c_str(), "wb"); fprintf_s(fp, "P6\n%d %d\n255\n", p.GLen(), p.GHei()); static unsigned char color[3]; for (int j = p.GHei() - 1; j >= 0; j--) for (int i = 0; i<p.GLen(); i++){ color[0] = p.RD(j, i) & 255; color[1] = p.GR(j, i) & 255; color[2] = p.BL(j, i) & 255; fwrite(color, 1, 3, fp); } fclose(fp); } // end of picture processing
[ "1328955419@qq.com" ]
1328955419@qq.com
91ceb56c4882626a77b340b853f1ed35211cca95
cde385ad53d663eafdfc8986882a95c867216601
/mcu/esp32_temp_sens/barrel.cpp
87f022b4f160d159a3427210efb103d7f54ceb33
[]
no_license
MickLuypaerts/breweryTempSens
00361934f19ea06b4366f1724856fbd82c79ae04
adbf8048472a75959aa37977c61bc3bd47892eb2
refs/heads/main
2023-07-11T16:33:55.114118
2021-08-09T12:09:29
2021-08-09T12:09:29
394,277,202
0
0
null
null
null
null
UTF-8
C++
false
false
363
cpp
#include "barrel.h" #include "DHT.h" Barrel createNewBarrel(int id, int pin, uint8_t dhtType, const char* mqttPubTopicFormat) { Barrel barrel; barrel.ID = id; barrel.enabled = true; barrel.temp = 0; barrel.millis = 0; barrel.dht = new DHT(pin, dhtType); barrel.dht->begin(); sprintf(barrel.mqttPubTopic, mqttPubTopicFormat, barrel.ID); return barrel; }
[ "mickluypaerts@gmail.com" ]
mickluypaerts@gmail.com
a5583f116a87dcd5ce6cb03896867e6257eecd8b
8961968d43b4e387e1e50306f253bc961800d7b1
/src/libgbemu/include/timer.h
cde0bc7f5bee5188d30df6c82e27a213cfcfe3c2
[ "ISC" ]
permissive
ruthearagard/gbemu
6e20631c4f2b45760665994343f0c94ff4e16f93
9146f683e8dcc40446d169d7e713adf879c180dc
refs/heads/master
2023-01-01T00:13:44.632619
2020-10-17T16:15:07
2020-10-17T16:15:07
288,534,398
6
0
null
null
null
null
UTF-8
C++
false
false
2,676
h
// Copyright 2020 Michael Rodriguez // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS.IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY // SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #pragma once #include <cstdint> namespace GameBoy { class SystemBus; /// @brief Defines the timer device. class Timer final { public: explicit Timer(SystemBus& m_bus) noexcept; /// @brief Resets the timer to the startup state. auto reset() noexcept -> void; /// @brief Advances the timer by 1 m-cycle. auto step() noexcept -> void; /// @brief Divider /// /// This register is incremented at rate of 16384Hz. Writing any value /// to this register resets it to $00. uint8_t DIV; /// @brief Timer value /// /// This value is incremented by a clock frequency specified by the TAC /// register ($FF07). When the value overflows (i.e. becomes >$FF), /// then it will be reset to the value specified in TMA ($FF06), and a /// timer interrupt will be requested. uint8_t TIMA; /// @brief Timer Modulo (R/W) /// /// When the TIMA overflows, this data will be loaded. uint8_t TMA; /// @brief TAC - Timer Control (R/W) union { struct { /// @brief Specifies the frequency in which TIMA is to be /// incremented. /// /// 0: 4096 Hz /// 1: 262144 Hz /// 2: 65536 Hz /// 3: 16384 Hz unsigned int input_clock : 2; /// @brief Bit 2 - Timer Stop (0=Stop, 1=Start) unsigned int active : 1; unsigned int : 5; }; uint8_t byte; } TAC; /// @brief Current DIV cycle counter uint16_t div_counter; /// @brief Current TIMA cycle counter uint16_t tima_counter; private: /// @brief System bus instance SystemBus& bus; }; }
[ "ruthearagard@gmail.com" ]
ruthearagard@gmail.com
1afbe495cab63cb7a67b0c31990606b84f454764
301d4310fe79afb9d9c0c811a8720109bcf594cb
/linkedlist.cpp
4389d55a8e82e8f470e95205d7ac90b6470d07fa
[]
no_license
packocrayons/randomTools
90a749272d12a8b614101b186490c0f37ded5d43
552a3af41402fce458922f748562eb1f94d6f0d8
refs/heads/master
2021-09-07T01:26:13.950478
2018-02-15T00:33:58
2018-02-15T00:33:58
111,945,831
0
0
null
null
null
null
UTF-8
C++
false
false
873
cpp
#include <stdlib.h> template<typename T> struct Node { T data; Node<T>* next; }; template<typename T> T ll_get(int index, Node<T>* head){ Node<T>* current = head; for (int i = 0; i < index; i++){ current = current->next; } return current.data; } template<typename T> void ll_add(T data, int index, Node<T>* head) { // Send an index greater than the end of the list and a new Node<T> will be made at the end of the list Node<T>* current = head, temp; for (int i = 0; i < index && current->next != NULL; i++){ current = current->next; } temp = current->next; current->next = malloc(sizeof(Node<T>)); current->next.data = data; current->next.next = temp; } template<typename T> void ll_delete(Node<T>* head) { Node<T>* current = head; Node<T>* last = current; for(;current->next != NULL; current = current->next){ free(last); last = current; } }
[ "gibson.brydon@gmail.com" ]
gibson.brydon@gmail.com
9c7e760502265e290d2f4db2ab8dc927ceeb6db4
8e7fe59fa843379c2aee4ffde391de1c243fe683
/Text Name/test.cpp
005a39b4955d282ed56267afd81a7daedb535dd1
[]
no_license
Hungs20/C-Plus-Plus
6b4edbe35414516ff2886b3b718b8135af09c55e
7dfdce89a81870e132b77fb99674477febf6b1a7
refs/heads/master
2020-03-10T18:27:04.090705
2019-07-16T19:13:30
2019-07-16T19:13:30
129,526,052
0
0
null
null
null
null
UTF-8
C++
false
false
596
cpp
#include "console.h" #include <iostream> #include <random> #include <time.h> #include <thread> #include <windows.h> using namespace std; void a() { for(int i = 1; i <= 110 ; i++) { gotoXY(1,5); cout <<i << " "; // clrscr(); Sleep(1000); } cout << "\n"; } void b() { for(int i = 1; i <= 100; i++) { gotoXY(1, 20); cout << i << " "; //clrscr(); Sleep(1050); } } int mmain() { thread x (a); thread y (b); // x.detach(); if (x.joinable()) { x.join(); } // y.detach(); return 0; }
[ "noreply@github.com" ]
Hungs20.noreply@github.com
8505c28e02e9579be1f15c207463802e0dd72201
41d51f22377c4dbe4aa52b1ba6e0faa839971bf0
/Window/Core.cpp
8c49108bdba17245466ff6e0c32353bb57ac8929
[]
no_license
tonnac/CPPLang
6f56ab83d902f7163a72a87aa543527618e7900a
7d5810ce43b3e8b1ce244ab9d87af42e056e07f6
refs/heads/master
2021-06-29T02:38:39.968684
2020-09-20T16:21:20
2020-09-20T16:21:20
143,169,822
1
0
null
null
null
null
UTF-8
C++
false
false
253
cpp
#include "Core.h" bool Core::GameInit() { m_Timer.Init(); return true; } bool Core::GameRun() { m_Timer.Frame(); m_Timer.Render(); return true; } bool Core::GameRelease() { m_Timer.Release(); return true; } Core::Core() { } Core::~Core() { }
[ "tonnac35@gmail.com" ]
tonnac35@gmail.com
b666d75e062d657abde3c8b330a69e8d4ee72c36
73023c191f3afc1f13b39dffea22b7f65a664f7d
/MatrixEngine/Classes/MCocoStudio/Native/ScriptBind_UITextField.h
6ec53de00c00d7e284e788e630d883f8755c8484
[]
no_license
ugsgame/Matrix
0a2c2abb3be9966c3cf7a4164799ed107c8f2920
1311b77bd9a917ec770e428efb9530ee6038617a
refs/heads/master
2020-09-05T15:45:45.973221
2019-11-07T07:20:38
2019-11-07T07:20:38
220,145,853
0
0
null
null
null
null
UTF-8
C++
false
false
2,125
h
#ifndef __SCRIPTBIND_UITEXTFIELD__ #define __SCRIPTBIND_UITEXTFIELD__ #include "ScriptBind_CocoStudio.h" class cocos2d::ui::TextField; class ScriptBind_UITextField:public ScriptBind_CocoStudio { public: ScriptBind_UITextField(); ~ScriptBind_UITextField(); virtual const char* GetClassName(){ return "NativeUITextField";} static cocos2d::ui::TextField* Create(); static void SetTouchSize(cocos2d::ui::TextField* textfile, float w,float h); static void SetText(cocos2d::ui::TextField* textfile,mono::string text); static void SetPlaceHolder(cocos2d::ui::TextField* textfile,mono::string value); static void SetFontSize(cocos2d::ui::TextField* textfile,int size); static void SetFontName(cocos2d::ui::TextField* textfile,mono::string name); static void DidNotSelectSelf(cocos2d::ui::TextField* textfile); static mono::string GetStringValue(cocos2d::ui::TextField* textfile); static void SetMaxLengthEnabled(cocos2d::ui::TextField* textfile,bool enable); static bool IsMaxLengthEnabled(cocos2d::ui::TextField* textfile); static void SetMaxLength(cocos2d::ui::TextField* textfile,int length); static int GetMaxLength(cocos2d::ui::TextField* textfile); static void SetPasswordEnabled(cocos2d::ui::TextField* textfile,bool enable); static bool IsPasswordEnabled(cocos2d::ui::TextField* textfile); static void SetPasswordStyleText(cocos2d::ui::TextField* textfile,mono::string styleText); static bool GetAttachWithIME(cocos2d::ui::TextField* textfile); static void SetAttachWithIME(cocos2d::ui::TextField* textfile,bool attach); static bool GetDetachWithIME(cocos2d::ui::TextField* textfile); static void SetDetachWithIME(cocos2d::ui::TextField* textfile,bool detach); static bool GetInsertText(cocos2d::ui::TextField* textfile); static void SetInsertText(cocos2d::ui::TextField* textfile,bool insertText); static bool GetDeleteBackward(cocos2d::ui::TextField* textfile); static void SetDeleteBackward(cocos2d::ui::TextField* textfile,bool deleteBackward); static void AddEventListenerTextField(cocos2d::ui::TextField* textfile,mono::object target); protected: private: }; #endif
[ "670563380@qq.com" ]
670563380@qq.com
3a270e4768f03dac947998f7efad08612a1c7cfb
00a749374e50408127998d2a4d81eb3353852c1f
/Gtests/SH_Auction_Average_Price/match_part_avg_price_single_S.cpp
9f09787583903c0f742254191ba401003aa37e5b
[]
no_license
SamSmithchina/SystemGtest
1cb5c3df135cf8227e916087269ae1c69a245e39
df76aeda0b3756d7e5c76fe36fcd57e0b9f4ebba
refs/heads/master
2020-04-02T13:18:08.697867
2019-02-12T09:32:05
2019-02-12T09:32:05
154,475,604
1
0
null
null
null
null
UTF-8
C++
false
false
5,532
cpp
#include "AShareCheckOrder/AShareCheckOrder.h" #include "AShareCheckOrder/QuotationBuild.h" #include "SystemGtestConfigs/configs.h" #include "gtest/gtest.h" #include "util/EzLog.h" // 部分成交,一部分按行情均价成交,另一部分撤单 // 区间段均价1.000元, 卖单,验股 // account = "A645078963" 股票账号 // stock = ("600320") 振华重工 // SingleMatchPartWithQuotation_S.AveragePrice_1 TEST(SingleMatchPartWithQuotation_S, AveragePrice_1) { //切换模式 ASSERT_EQ(0, TransformMatchMode(AveragePrice)); ASSERT_EQ(0, TransformMatchMode(CheckAssetNO)); //构造行情 AStockQuot aStockQuot; CreateQuotation(aStockQuot); aStockQuot.zqdm = "600320"; aStockQuot.zqmc = "振华重工"; //推送行情 ASSERT_EQ(0, SendQuotToRedis(aStockQuot)); int iRes = 0; long lRes = 0; uint64_t ui64Cjje = 0; uint64_t ui64Price = 0; char szTemp[10] = { "\0" }; long lTemp = 0; OTLConn40240 con; SHShare aSHShare; //建立数据库连接 ,0 right , -1 wrong iRes = con.Connect(g_strShOdbcConn); // ASSERT_EQ(0, iRes); ASSERT_EQ(0, iRes); iRes = con.SetAutoCommit(0); ASSERT_EQ(0, iRes); //单个测试样例; aSHShare.account = "A645078963"; //股票账号 aSHShare.stock = aStockQuot.zqdm; // 证券代码 g_iExternRecNum++; aSHShare.reff = "J000000000"; itoa(g_iExternRecNum, szTemp, 10); aSHShare.reff.replace(10 - strlen(szTemp), strlen(szTemp), szTemp); //订单编号;利用静态变量保持rec_num从1递增; aSHShare.rec_num = szTemp; aSHShare.price = "0.950"; aSHShare.qty = "200000"; aSHShare.bs = "S"; //买\卖 aSHShare.qty2 = "100000"; aSHShare.gddm = aSHShare.account; aSHShare.zqdm = aSHShare.stock; aSHShare.cjsl = "100000"; lTemp = atol(aSHShare.cjsl.c_str()); aSHShare.cjjg = CalcAvePrice(aStockQuot, ui64Price); ui64Cjje = ui64Price * lTemp; Tgw_StringUtil::iLiToStr(ui64Cjje, aSHShare.cjje, 2); //插入测试样例 lRes = InsertOrder(con, aSHShare); EXPECT_EQ(0, lRes); con.Commit(); //检查确认 lRes = CheckOrdwth2Match(con, aSHShare); EXPECT_EQ(0, lRes); //插入撤单 Sleep(g_iTimeOut * 10); lRes = InsertCancelOrder(con, aSHShare); EXPECT_EQ(0, lRes); con.Commit(); //检查撤单的确认 lRes = CheckOrdwth2Cancel(con, aSHShare); //这里检查部分撤单的确认表,OrderType为5, EXPECT_EQ(0, lRes); //查询成交结果 lRes = CheckCjhb(con, aSHShare); EXPECT_EQ(0, lRes); con.Close(); if (iRes != 0 || lRes != 0) { EzLog::e(__FUNCTION__, "\n"); } else { EzLog::i(__FUNCTION__, "\n"); } } // 部分成交,一部分按行情均价成交,另一部分撤单 // 区间段均价1.000元, 卖单,不验股 // account = "A645078963" 股票账号 // stock = ("600322") 天房发展 // SingleMatchPartWithQuotation_S.AveragePriceCheckAsset_2 TEST(SingleMatchPartWithQuotation_S, AveragePriceCheckAsset_2) { //切换模式 ASSERT_EQ(0, TransformMatchMode(AveragePrice)); ASSERT_EQ(0, TransformMatchMode(CheckAssetYES)); //构造行情 AStockQuot aStockQuot; //行情CJSL = 100000 CreateQuotation(aStockQuot); aStockQuot.zqdm = "600322"; aStockQuot.zqmc = "天房发展"; //推送行情 ASSERT_EQ(0, SendQuotToRedis(aStockQuot)); int iRes = 0; long lRes = 0; long laShareQty = 0; uint64_t ui64Cjje = 0; uint64_t ui64Price = 0; char szTemp[10] = { "\0" }; long lTemp = 0; OTLConn40240 con; SHShare aSHShare; aSHShare.account = "A645078963"; aSHShare.stock = aStockQuot.zqdm; StockAsset aSHStockAsset; aSHStockAsset.Init(aSHShare.account, aSHShare.stock); //建立数据库连接 ,0 right , -1 wrong iRes = con.Connect(g_strShOdbcConn); // ASSERT_EQ(0, iRes); ASSERT_EQ(0, iRes); iRes = con.SetAutoCommit(0); ASSERT_EQ(0, iRes); //单个测试样例; g_iExternRecNum++; aSHShare.reff = "J000000000"; itoa(g_iExternRecNum, szTemp, 10); aSHShare.reff.replace(10 - strlen(szTemp), strlen(szTemp), szTemp); //订单编号;利用静态变量保持rec_num从1递增; aSHShare.rec_num = szTemp; aSHShare.price = "0.950"; aSHShare.qty = "200000"; aSHShare.bs = "S"; //买\卖 aSHShare.qty2 = "100000"; aSHShare.gddm = aSHShare.account; aSHShare.zqdm = aSHShare.stock; aSHShare.cjsl = "100000"; lTemp = atol(aSHShare.cjsl.c_str()); aSHShare.cjjg = CalcAvePrice(aStockQuot, ui64Price); ui64Cjje = ui64Price * lTemp; Tgw_StringUtil::iLiToStr(ui64Cjje, aSHShare.cjje, 2); //插入测试样例 lRes = InsertOrder(con, aSHShare); EXPECT_EQ(0, lRes); con.Commit(); //验股 lTemp = atol(aSHStockAsset.stock_etf_redemption_balance.c_str()); lTemp += atol(aSHStockAsset.stock_available.c_str()); laShareQty = atol(aSHShare.cjsl.c_str()); if ("S" == aSHShare.bs && laShareQty > lTemp) //卖出数量超过所持有的股票数量,错单 { iRes = CheckOrdwth2Error(con, aSHShare); EXPECT_EQ(0, iRes); } else { //检查确认 lRes = CheckOrdwth2Match(con, aSHShare); EXPECT_EQ(0, lRes); //插入撤单 Sleep(g_iTimeOut * 10); lRes = InsertCancelOrder(con, aSHShare); EXPECT_EQ(0, lRes); con.Commit(); //查询成交结果 lRes = CheckCjhb(con, aSHShare); EXPECT_EQ(0, lRes); //检查撤单的确认 lRes = CheckOrdwth2Cancel(con, aSHShare); //这里检查部分撤单的确认表,OrderType为5, EXPECT_EQ(0, lRes); //检查stgw写回stock_aasset表数据 iRes = CheckStgwWriteAssetBackToMySQL(aSHShare, aSHStockAsset); EXPECT_EQ(0, iRes); } con.Close(); if (iRes != 0 || lRes != 0) { EzLog::e(__FUNCTION__, "\n"); } else { EzLog::i(__FUNCTION__, "\n"); } }
[ "2998188865@qq.com" ]
2998188865@qq.com
47ceb64dc033ad7854e967019ca4460791a5bb18
b84553789c1566a030f65fc5f2c0040731b83bb5
/git-lab-program.cc
f43b8b881f4951e0b5a9eba8b2b28e9158339b3f
[]
no_license
brady-potter124/git-lab-2
7b45fb11eb3fd70313e4a02fe5cacfc6fcb6d18e
d8fcbf1489dde37887fb464ec7ec21b0aa40c5d2
refs/heads/main
2023-03-01T00:13:18.185474
2021-01-29T20:34:33
2021-01-29T20:34:33
334,251,071
0
0
null
null
null
null
UTF-8
C++
false
false
322
cc
/* * File: git-lab-program.cc * Author: <Brady Potter> * Date: <January 29 2021> * Description: Lab 2 final steps */ #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; int main(int argc, char const *argv[]) { cout << "Hello, Git!" << endl; return 0; }// main
[ "bp354719@ohio.edu" ]
bp354719@ohio.edu
ea78e5795b245c566fa52ac8df21db980db8f965
0e7494e1ed514367f49c35d917b5d332ace91ddf
/src/qt/guiutil.cpp
63dd1eb2b326399dd500d7e24c549f6ce237ea20
[ "MIT" ]
permissive
project-nodeo/ndo
d7f324695ecfb8b8a719ec0f01d84687806a5aac
288f08858995365728e15096c00589ec623898ba
refs/heads/master
2020-04-11T19:26:08.657261
2018-12-16T19:23:58
2018-12-16T19:23:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
30,988
cpp
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "bitcoinunits.h" #include "qvalidatedlineedit.h" #include "walletmodel.h" #include "init.h" #include "main.h" #include "primitives/transaction.h" #include "protocol.h" #include "script/script.h" #include "script/standard.h" #include "util.h" #ifdef WIN32 #ifdef _WIN32_WINNT #undef _WIN32_WINNT #endif #define _WIN32_WINNT 0x0501 #ifdef _WIN32_IE #undef _WIN32_IE #endif #define _WIN32_IE 0x0501 #define WIN32_LEAN_AND_MEAN 1 #ifndef NOMINMAX #define NOMINMAX #endif #include "shellapi.h" #include "shlobj.h" #include "shlwapi.h" #endif #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #if BOOST_FILESYSTEM_VERSION >= 3 #include <boost/filesystem/detail/utf8_codecvt_facet.hpp> #endif #include <QAbstractItemView> #include <QApplication> #include <QClipboard> #include <QDateTime> #include <QDesktopServices> #include <QDesktopWidget> #include <QDoubleValidator> #include <QFileDialog> #include <QFont> #include <QLineEdit> #include <QSettings> #include <QTextDocument> // for Qt::mightBeRichText #include <QThread> #if QT_VERSION < 0x050000 #include <QUrl> #else #include <QUrlQuery> #endif #if BOOST_FILESYSTEM_VERSION >= 3 static boost::filesystem::detail::utf8_codecvt_facet utf8; #endif #if defined(Q_OS_MAC) extern double NSAppKitVersionNumber; #if !defined(NSAppKitVersionNumber10_8) #define NSAppKitVersionNumber10_8 1187 #endif #if !defined(NSAppKitVersionNumber10_9) #define NSAppKitVersionNumber10_9 1265 #endif #endif #define URI_SCHEME "nodeo" namespace GUIUtil { QString dateTimeStr(const QDateTime& date) { return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm"); } QString dateTimeStr(qint64 nTime) { return dateTimeStr(QDateTime::fromTime_t((qint32)nTime)); } QFont bitcoinAddressFont() { QFont font("Monospace"); #if QT_VERSION >= 0x040800 font.setStyleHint(QFont::Monospace); #else font.setStyleHint(QFont::TypeWriter); #endif return font; } void setupAddressWidget(QValidatedLineEdit* widget, QWidget* parent) { parent->setFocusProxy(widget); widget->setFont(bitcoinAddressFont()); #if QT_VERSION >= 0x040700 // We don't want translators to use own addresses in translations // and this is the only place, where this address is supplied. widget->setPlaceholderText(QObject::tr("Enter a Nodeo address (e.g. %1)").arg("CV7AeX9sYDiL2GSX9PhQzKFTgzmPUQnxX3")); #endif widget->setValidator(new BitcoinAddressEntryValidator(parent)); widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); } void setupAmountWidget(QLineEdit* widget, QWidget* parent) { QDoubleValidator* amountValidator = new QDoubleValidator(parent); amountValidator->setDecimals(8); amountValidator->setBottom(0.0); widget->setValidator(amountValidator); widget->setAlignment(Qt::AlignRight | Qt::AlignVCenter); } bool parseBitcoinURI(const QUrl& uri, SendCoinsRecipient* out) { // return if URI is not valid or is no Nodeo: URI if (!uri.isValid() || uri.scheme() != QString(URI_SCHEME)) return false; SendCoinsRecipient rv; rv.address = uri.path(); // Trim any following forward slash which may have been added by the OS if (rv.address.endsWith("/")) { rv.address.truncate(rv.address.length() - 1); } rv.amount = 0; #if QT_VERSION < 0x050000 QList<QPair<QString, QString> > items = uri.queryItems(); #else QUrlQuery uriQuery(uri); QList<QPair<QString, QString> > items = uriQuery.queryItems(); #endif for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++) { bool fShouldReturnFalse = false; if (i->first.startsWith("req-")) { i->first.remove(0, 4); fShouldReturnFalse = true; } if (i->first == "label") { rv.label = i->second; fShouldReturnFalse = false; } if (i->first == "message") { rv.message = i->second; fShouldReturnFalse = false; } else if (i->first == "amount") { if (!i->second.isEmpty()) { if (!BitcoinUnits::parse(BitcoinUnits::NODEO, i->second, &rv.amount)) { return false; } } fShouldReturnFalse = false; } if (fShouldReturnFalse) return false; } if (out) { *out = rv; } return true; } bool parseBitcoinURI(QString uri, SendCoinsRecipient* out) { // Convert nodeo:// to nodeo: // // Cannot handle this later, because nodeo:// will cause Qt to see the part after // as host, // which will lower-case it (and thus invalidate the address). if (uri.startsWith(URI_SCHEME "://", Qt::CaseInsensitive)) { uri.replace(0, std::strlen(URI_SCHEME) + 3, URI_SCHEME ":"); } QUrl uriInstance(uri); return parseBitcoinURI(uriInstance, out); } QString formatBitcoinURI(const SendCoinsRecipient& info) { QString ret = QString(URI_SCHEME ":%1").arg(info.address); int paramCount = 0; if (info.amount) { ret += QString("?amount=%1").arg(BitcoinUnits::format(BitcoinUnits::NODEO, info.amount, false, BitcoinUnits::separatorNever)); paramCount++; } if (!info.label.isEmpty()) { QString lbl(QUrl::toPercentEncoding(info.label)); ret += QString("%1label=%2").arg(paramCount == 0 ? "?" : "&").arg(lbl); paramCount++; } if (!info.message.isEmpty()) { QString msg(QUrl::toPercentEncoding(info.message)); ret += QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg); paramCount++; } return ret; } bool isDust(const QString& address, const CAmount& amount) { CTxDestination dest = CBitcoinAddress(address.toStdString()).Get(); CScript script = GetScriptForDestination(dest); CTxOut txOut(amount, script); return txOut.IsDust(::minRelayTxFee); } QString HtmlEscape(const QString& str, bool fMultiLine) { #if QT_VERSION < 0x050000 QString escaped = Qt::escape(str); #else QString escaped = str.toHtmlEscaped(); #endif escaped = escaped.replace(" ", "&nbsp;"); if (fMultiLine) { escaped = escaped.replace("\n", "<br>\n"); } return escaped; } QString HtmlEscape(const std::string& str, bool fMultiLine) { return HtmlEscape(QString::fromStdString(str), fMultiLine); } void copyEntryData(QAbstractItemView* view, int column, int role) { if (!view || !view->selectionModel()) return; QModelIndexList selection = view->selectionModel()->selectedRows(column); if (!selection.isEmpty()) { // Copy first item setClipboard(selection.at(0).data(role).toString()); } } QString getSaveFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedSuffixOut) { QString selectedFilter; QString myDir; if (dir.isEmpty()) // Default to user documents location { #if QT_VERSION < 0x050000 myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); #else myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); #endif } else { myDir = dir; } /* Directly convert path to native OS path separators */ QString result = QDir::toNativeSeparators(QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter)); /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); QString selectedSuffix; if (filter_re.exactMatch(selectedFilter)) { selectedSuffix = filter_re.cap(1); } /* Add suffix if needed */ QFileInfo info(result); if (!result.isEmpty()) { if (info.suffix().isEmpty() && !selectedSuffix.isEmpty()) { /* No suffix specified, add selected suffix */ if (!result.endsWith(".")) result.append("."); result.append(selectedSuffix); } } /* Return selected suffix if asked to */ if (selectedSuffixOut) { *selectedSuffixOut = selectedSuffix; } return result; } QString getOpenFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedSuffixOut) { QString selectedFilter; QString myDir; if (dir.isEmpty()) // Default to user documents location { #if QT_VERSION < 0x050000 myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); #else myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); #endif } else { myDir = dir; } /* Directly convert path to native OS path separators */ QString result = QDir::toNativeSeparators(QFileDialog::getOpenFileName(parent, caption, myDir, filter, &selectedFilter)); if (selectedSuffixOut) { /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); QString selectedSuffix; if (filter_re.exactMatch(selectedFilter)) { selectedSuffix = filter_re.cap(1); } *selectedSuffixOut = selectedSuffix; } return result; } Qt::ConnectionType blockingGUIThreadConnection() { if (QThread::currentThread() != qApp->thread()) { return Qt::BlockingQueuedConnection; } else { return Qt::DirectConnection; } } bool checkPoint(const QPoint& p, const QWidget* w) { QWidget* atW = QApplication::widgetAt(w->mapToGlobal(p)); if (!atW) return false; return atW->topLevelWidget() == w; } bool isObscured(QWidget* w) { return !(checkPoint(QPoint(0, 0), w) && checkPoint(QPoint(w->width() - 1, 0), w) && checkPoint(QPoint(0, w->height() - 1), w) && checkPoint(QPoint(w->width() - 1, w->height() - 1), w) && checkPoint(QPoint(w->width() / 2, w->height() / 2), w)); } void openDebugLogfile() { boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; /* Open debug.log with the associated application */ if (boost::filesystem::exists(pathDebug)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathDebug))); } void openConfigfile() { boost::filesystem::path pathConfig = GetConfigFile(); /* Open nodeo.conf with the associated application */ if (boost::filesystem::exists(pathConfig)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); } void openMNConfigfile() { boost::filesystem::path pathConfig = GetMasternodeConfigFile(); /* Open masternode.conf with the associated application */ if (boost::filesystem::exists(pathConfig)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathConfig))); } void showBackups() { boost::filesystem::path pathBackups = GetDataDir() / "backups"; /* Open folder with default browser */ if (boost::filesystem::exists(pathBackups)) QDesktopServices::openUrl(QUrl::fromLocalFile(boostPathToQString(pathBackups))); } void SubstituteFonts(const QString& language) { #if defined(Q_OS_MAC) // Background: // OSX's default font changed in 10.9 and QT is unable to find it with its // usual fallback methods when building against the 10.7 sdk or lower. // The 10.8 SDK added a function to let it find the correct fallback font. // If this fallback is not properly loaded, some characters may fail to // render correctly. // // The same thing happened with 10.10. .Helvetica Neue DeskInterface is now default. // // Solution: If building with the 10.7 SDK or lower and the user's platform // is 10.9 or higher at runtime, substitute the correct font. This needs to // happen before the QApplication is created. #if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_8) { if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_9) /* On a 10.9 - 10.9.x system */ QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); else { /* 10.10 or later system */ if (language == "zh_CN" || language == "zh_TW" || language == "zh_HK") // traditional or simplified Chinese QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Heiti SC"); else if (language == "ja") // Japanesee QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Songti SC"); else QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Lucida Grande"); } } #endif #endif } ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject* parent) : QObject(parent), size_threshold(size_threshold) { } bool ToolTipToRichTextFilter::eventFilter(QObject* obj, QEvent* evt) { if (evt->type() == QEvent::ToolTipChange) { QWidget* widget = static_cast<QWidget*>(obj); QString tooltip = widget->toolTip(); if (tooltip.size() > size_threshold && !tooltip.startsWith("<qt")) { // Escape the current message as HTML and replace \n by <br> if it's not rich text if (!Qt::mightBeRichText(tooltip)) tooltip = HtmlEscape(tooltip, true); // Envelop with <qt></qt> to make sure Qt detects every tooltip as rich text // and style='white-space:pre' to preserve line composition tooltip = "<qt style='white-space:pre'>" + tooltip + "</qt>"; widget->setToolTip(tooltip); return true; } } return QObject::eventFilter(obj, evt); } void TableViewLastColumnResizingFixer::connectViewHeadersSignals() { connect(tableView->horizontalHeader(), SIGNAL(sectionResized(int, int, int)), this, SLOT(on_sectionResized(int, int, int))); connect(tableView->horizontalHeader(), SIGNAL(geometriesChanged()), this, SLOT(on_geometriesChanged())); } // We need to disconnect these while handling the resize events, otherwise we can enter infinite loops. void TableViewLastColumnResizingFixer::disconnectViewHeadersSignals() { disconnect(tableView->horizontalHeader(), SIGNAL(sectionResized(int, int, int)), this, SLOT(on_sectionResized(int, int, int))); disconnect(tableView->horizontalHeader(), SIGNAL(geometriesChanged()), this, SLOT(on_geometriesChanged())); } // Setup the resize mode, handles compatibility for Qt5 and below as the method signatures changed. // Refactored here for readability. void TableViewLastColumnResizingFixer::setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode) { #if QT_VERSION < 0x050000 tableView->horizontalHeader()->setResizeMode(logicalIndex, resizeMode); #else tableView->horizontalHeader()->setSectionResizeMode(logicalIndex, resizeMode); #endif } void TableViewLastColumnResizingFixer::resizeColumn(int nColumnIndex, int width) { tableView->setColumnWidth(nColumnIndex, width); tableView->horizontalHeader()->resizeSection(nColumnIndex, width); } int TableViewLastColumnResizingFixer::getColumnsWidth() { int nColumnsWidthSum = 0; for (int i = 0; i < columnCount; i++) { nColumnsWidthSum += tableView->horizontalHeader()->sectionSize(i); } return nColumnsWidthSum; } int TableViewLastColumnResizingFixer::getAvailableWidthForColumn(int column) { int nResult = lastColumnMinimumWidth; int nTableWidth = tableView->horizontalHeader()->width(); if (nTableWidth > 0) { int nOtherColsWidth = getColumnsWidth() - tableView->horizontalHeader()->sectionSize(column); nResult = std::max(nResult, nTableWidth - nOtherColsWidth); } return nResult; } // Make sure we don't make the columns wider than the tables viewport width. void TableViewLastColumnResizingFixer::adjustTableColumnsWidth() { disconnectViewHeadersSignals(); resizeColumn(lastColumnIndex, getAvailableWidthForColumn(lastColumnIndex)); connectViewHeadersSignals(); int nTableWidth = tableView->horizontalHeader()->width(); int nColsWidth = getColumnsWidth(); if (nColsWidth > nTableWidth) { resizeColumn(secondToLastColumnIndex, getAvailableWidthForColumn(secondToLastColumnIndex)); } } // Make column use all the space available, useful during window resizing. void TableViewLastColumnResizingFixer::stretchColumnWidth(int column) { disconnectViewHeadersSignals(); resizeColumn(column, getAvailableWidthForColumn(column)); connectViewHeadersSignals(); } // When a section is resized this is a slot-proxy for ajustAmountColumnWidth(). void TableViewLastColumnResizingFixer::on_sectionResized(int logicalIndex, int oldSize, int newSize) { adjustTableColumnsWidth(); int remainingWidth = getAvailableWidthForColumn(logicalIndex); if (newSize > remainingWidth) { resizeColumn(logicalIndex, remainingWidth); } } // When the tabless geometry is ready, we manually perform the stretch of the "Message" column, // as the "Stretch" resize mode does not allow for interactive resizing. void TableViewLastColumnResizingFixer::on_geometriesChanged() { if ((getColumnsWidth() - this->tableView->horizontalHeader()->width()) != 0) { disconnectViewHeadersSignals(); resizeColumn(secondToLastColumnIndex, getAvailableWidthForColumn(secondToLastColumnIndex)); connectViewHeadersSignals(); } } /** * Initializes all internal variables and prepares the * the resize modes of the last 2 columns of the table and */ TableViewLastColumnResizingFixer::TableViewLastColumnResizingFixer(QTableView* table, int lastColMinimumWidth, int allColsMinimumWidth) : tableView(table), lastColumnMinimumWidth(lastColMinimumWidth), allColumnsMinimumWidth(allColsMinimumWidth) { columnCount = tableView->horizontalHeader()->count(); lastColumnIndex = columnCount - 1; secondToLastColumnIndex = columnCount - 2; tableView->horizontalHeader()->setMinimumSectionSize(allColumnsMinimumWidth); setViewHeaderResizeMode(secondToLastColumnIndex, QHeaderView::Interactive); setViewHeaderResizeMode(lastColumnIndex, QHeaderView::Interactive); } /** * Class constructor. * @param[in] seconds Number of seconds to convert to a DHMS string */ DHMSTableWidgetItem::DHMSTableWidgetItem(const int64_t seconds) : QTableWidgetItem(), value(seconds) { this->setText(QString::fromStdString(DurationToDHMS(seconds))); } /** * Comparator overload to ensure that the "DHMS"-type durations as used in * the "active-since" list in the masternode tab are sorted by the elapsed * duration (versus the string value being sorted). * @param[in] item Right hand side of the less than operator */ bool DHMSTableWidgetItem::operator<(QTableWidgetItem const& item) const { DHMSTableWidgetItem const* rhs = dynamic_cast<DHMSTableWidgetItem const*>(&item); if (!rhs) return QTableWidgetItem::operator<(item); return value < rhs->value; } #ifdef WIN32 boost::filesystem::path static StartupShortcutPath() { return GetSpecialFolderPath(CSIDL_STARTUP) / "Nodeo.lnk"; } bool GetStartOnSystemStartup() { // check for Nodeo.lnk return boost::filesystem::exists(StartupShortcutPath()); } bool SetStartOnSystemStartup(bool fAutoStart) { // If the shortcut exists already, remove it for updating boost::filesystem::remove(StartupShortcutPath()); if (fAutoStart) { CoInitialize(NULL); // Get a pointer to the IShellLink interface. IShellLink* psl = NULL; HRESULT hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, reinterpret_cast<void**>(&psl)); if (SUCCEEDED(hres)) { // Get the current executable path TCHAR pszExePath[MAX_PATH]; GetModuleFileName(NULL, pszExePath, sizeof(pszExePath)); TCHAR pszArgs[5] = TEXT("-min"); // Set the path to the shortcut target psl->SetPath(pszExePath); PathRemoveFileSpec(pszExePath); psl->SetWorkingDirectory(pszExePath); psl->SetShowCmd(SW_SHOWMINNOACTIVE); psl->SetArguments(pszArgs); // Query IShellLink for the IPersistFile interface for // saving the shortcut in persistent storage. IPersistFile* ppf = NULL; hres = psl->QueryInterface(IID_IPersistFile, reinterpret_cast<void**>(&ppf)); if (SUCCEEDED(hres)) { WCHAR pwsz[MAX_PATH]; // Ensure that the string is ANSI. MultiByteToWideChar(CP_ACP, 0, StartupShortcutPath().string().c_str(), -1, pwsz, MAX_PATH); // Save the link by calling IPersistFile::Save. hres = ppf->Save(pwsz, TRUE); ppf->Release(); psl->Release(); CoUninitialize(); return true; } psl->Release(); } CoUninitialize(); return false; } return true; } #elif defined(Q_OS_LINUX) // Follow the Desktop Application Autostart Spec: // http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html boost::filesystem::path static GetAutostartDir() { namespace fs = boost::filesystem; char* pszConfigHome = getenv("XDG_CONFIG_HOME"); if (pszConfigHome) return fs::path(pszConfigHome) / "autostart"; char* pszHome = getenv("HOME"); if (pszHome) return fs::path(pszHome) / ".config" / "autostart"; return fs::path(); } boost::filesystem::path static GetAutostartFilePath() { return GetAutostartDir() / "nodeo.desktop"; } bool GetStartOnSystemStartup() { boost::filesystem::ifstream optionFile(GetAutostartFilePath()); if (!optionFile.good()) return false; // Scan through file for "Hidden=true": std::string line; while (!optionFile.eof()) { getline(optionFile, line); if (line.find("Hidden") != std::string::npos && line.find("true") != std::string::npos) return false; } optionFile.close(); return true; } bool SetStartOnSystemStartup(bool fAutoStart) { if (!fAutoStart) boost::filesystem::remove(GetAutostartFilePath()); else { char pszExePath[MAX_PATH + 1]; memset(pszExePath, 0, sizeof(pszExePath)); if (readlink("/proc/self/exe", pszExePath, sizeof(pszExePath) - 1) == -1) return false; boost::filesystem::create_directories(GetAutostartDir()); boost::filesystem::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out | std::ios_base::trunc); if (!optionFile.good()) return false; // Write a nodeo.desktop file to the autostart directory: optionFile << "[Desktop Entry]\n"; optionFile << "Type=Application\n"; optionFile << "Name=Nodeo\n"; optionFile << "Exec=" << pszExePath << " -min\n"; optionFile << "Terminal=false\n"; optionFile << "Hidden=false\n"; optionFile.close(); } return true; } #elif defined(Q_OS_MAC) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" // based on: https://github.com/Mozketo/LaunchAtLoginController/blob/master/LaunchAtLoginController.m #include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl); LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl) { // loop through the list of startup items and try to find the nodeo app CFArrayRef listSnapshot = LSSharedFileListCopySnapshot(list, NULL); for (int i = 0; i < CFArrayGetCount(listSnapshot); i++) { LSSharedFileListItemRef item = (LSSharedFileListItemRef)CFArrayGetValueAtIndex(listSnapshot, i); UInt32 resolutionFlags = kLSSharedFileListNoUserInteraction | kLSSharedFileListDoNotMountVolumes; CFURLRef currentItemURL = NULL; #if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= 10100 if(&LSSharedFileListItemCopyResolvedURL) currentItemURL = LSSharedFileListItemCopyResolvedURL(item, resolutionFlags, NULL); #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED < 10100 else LSSharedFileListItemResolve(item, resolutionFlags, &currentItemURL, NULL); #endif #else LSSharedFileListItemResolve(item, resolutionFlags, &currentItemURL, NULL); #endif if(currentItemURL && CFEqual(currentItemURL, findUrl)) { // found CFRelease(currentItemURL); return item; } if (currentItemURL) { CFRelease(currentItemURL); } } return NULL; } bool GetStartOnSystemStartup() { CFURLRef bitcoinAppUrl = CFBundleCopyBundleURL(CFBundleGetMainBundle()); LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL); LSSharedFileListItemRef foundItem = findStartupItemInList(loginItems, bitcoinAppUrl); return !!foundItem; // return boolified object } bool SetStartOnSystemStartup(bool fAutoStart) { CFURLRef bitcoinAppUrl = CFBundleCopyBundleURL(CFBundleGetMainBundle()); LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL); LSSharedFileListItemRef foundItem = findStartupItemInList(loginItems, bitcoinAppUrl); if (fAutoStart && !foundItem) { // add nodeo app to startup item list LSSharedFileListInsertItemURL(loginItems, kLSSharedFileListItemBeforeFirst, NULL, NULL, bitcoinAppUrl, NULL, NULL); } else if (!fAutoStart && foundItem) { // remove item LSSharedFileListItemRemove(loginItems, foundItem); } return true; } #pragma GCC diagnostic pop #else bool GetStartOnSystemStartup() { return false; } bool SetStartOnSystemStartup(bool fAutoStart) { return false; } #endif void saveWindowGeometry(const QString& strSetting, QWidget* parent) { QSettings settings; settings.setValue(strSetting + "Pos", parent->pos()); settings.setValue(strSetting + "Size", parent->size()); } void restoreWindowGeometry(const QString& strSetting, const QSize& defaultSize, QWidget* parent) { QSettings settings; QPoint pos = settings.value(strSetting + "Pos").toPoint(); QSize size = settings.value(strSetting + "Size", defaultSize).toSize(); if (!pos.x() && !pos.y()) { QRect screen = QApplication::desktop()->screenGeometry(); pos.setX((screen.width() - size.width()) / 2); pos.setY((screen.height() - size.height()) / 2); } parent->resize(size); parent->move(pos); } // Check whether a theme is not build-in bool isExternal(QString theme) { if (theme.isEmpty()) return false; return (theme.operator!=("default")); } // Open CSS when configured QString loadStyleSheet() { QString styleSheet; QSettings settings; QString cssName; QString theme = settings.value("theme", "").toString(); if (isExternal(theme)) { // External CSS settings.setValue("fCSSexternal", true); boost::filesystem::path pathAddr = GetDataDir() / "themes/"; cssName = pathAddr.string().c_str() + theme + "/css/theme.css"; } else { // Build-in CSS settings.setValue("fCSSexternal", false); if (!theme.isEmpty()) { cssName = QString(":/css/") + theme; } else { cssName = QString(":/css/default"); settings.setValue("theme", "default"); } } QFile qFile(cssName); if (qFile.open(QFile::ReadOnly)) { styleSheet = QLatin1String(qFile.readAll()); } return styleSheet; } void setClipboard(const QString& str) { QApplication::clipboard()->setText(str, QClipboard::Clipboard); QApplication::clipboard()->setText(str, QClipboard::Selection); } #if BOOST_FILESYSTEM_VERSION >= 3 boost::filesystem::path qstringToBoostPath(const QString& path) { return boost::filesystem::path(path.toStdString(), utf8); } QString boostPathToQString(const boost::filesystem::path& path) { return QString::fromStdString(path.string(utf8)); } #else #warning Conversion between boost path and QString can use invalid character encoding with boost_filesystem v2 and older boost::filesystem::path qstringToBoostPath(const QString& path) { return boost::filesystem::path(path.toStdString()); } QString boostPathToQString(const boost::filesystem::path& path) { return QString::fromStdString(path.string()); } #endif QString formatDurationStr(int secs) { QStringList strList; int days = secs / 86400; int hours = (secs % 86400) / 3600; int mins = (secs % 3600) / 60; int seconds = secs % 60; if (days) strList.append(QString(QObject::tr("%1 d")).arg(days)); if (hours) strList.append(QString(QObject::tr("%1 h")).arg(hours)); if (mins) strList.append(QString(QObject::tr("%1 m")).arg(mins)); if (seconds || (!days && !hours && !mins)) strList.append(QString(QObject::tr("%1 s")).arg(seconds)); return strList.join(" "); } QString formatServicesStr(quint64 mask) { QStringList strList; // Just scan the last 8 bits for now. for (int i = 0; i < 8; i++) { uint64_t check = 1 << i; if (mask & check) { switch (check) { case NODE_NETWORK: strList.append(QObject::tr("NETWORK")); break; case NODE_BLOOM: case NODE_BLOOM_WITHOUT_MN: strList.append(QObject::tr("BLOOM")); break; default: strList.append(QString("%1[%2]").arg(QObject::tr("UNKNOWN")).arg(check)); } } } if (strList.size()) return strList.join(" & "); else return QObject::tr("None"); } QString formatPingTime(double dPingTime) { return dPingTime == 0 ? QObject::tr("N/A") : QString(QObject::tr("%1 ms")).arg(QString::number((int)(dPingTime * 1000), 10)); } } // namespace GUIUtil
[ "45922312+project-nodeo@users.noreply.github.com" ]
45922312+project-nodeo@users.noreply.github.com
43271d17cc1ba36071ca04ef1dfc5f785f4e88c7
a4f2d1a8660a8504f033b87aa5980092ff31417f
/Source/Jinn/Private/Anim/AnimNotify_ExecuteQueuedAction.cpp
306a20e875c014e52c9b1f8546e238852e544fa1
[]
no_license
onebenclark/jinn
7ef720aca846844893f67f556c6d32a9560b5730
2015e809ae23f096e1564275dea23ff37debc566
refs/heads/master
2020-12-20T01:35:50.955728
2020-03-10T01:57:50
2020-03-10T01:57:50
202,467,447
2
0
null
null
null
null
UTF-8
C++
false
false
527
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "AnimNotify_ExecuteQueuedAction.h" #include "Creature.h" void UAnimNotify_ExecuteQueuedAction::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) { ACreature* Caller = Cast<ACreature>(MeshComp->GetOwner()); if (!Caller || ((Caller->ActionComponent->QueuedAction && Caller->ActionComponent->QueuedAction->Type == EActionType::Targeted) && !Caller->Target)) return; Caller->ActionComponent->HandleQueuedAction(); }
[ "onebenclark@gmail.com" ]
onebenclark@gmail.com
d4bdd0ed49eed51f98acaeeaae7965697ed216cd
d032e4e9c9b342052fd64608fb4bd4b0df51df37
/src/qt/coincontroldialog.cpp
f23cb2e65b8f55c58bc86526eba0b23d4d336e29
[ "MIT" ]
permissive
Masternode-Hype-Coin-Exchange/MHCE
d59df6cbbb48dd31f51584e6941337ff8ba710d2
ddf6f6dc95162721dccf17cc674af421035b78f6
refs/heads/master
2023-06-14T17:31:14.089011
2021-06-28T10:41:55
2021-06-28T10:41:55
380,995,785
1
0
null
null
null
null
UTF-8
C++
false
false
37,849
cpp
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2019-2021 The MasterWin developers // Copyright (c) 2020-2021 The The Masternode Hype Coin Exchange developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coincontroldialog.h" #include "ui_coincontroldialog.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #include "guiutil.h" #include "init.h" #include "optionsmodel.h" #include "walletmodel.h" #include "coincontrol.h" #include "main.h" #include "obfuscation.h" #include "wallet.h" #include "multisigdialog.h" #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <QApplication> #include <QCheckBox> #include <QCursor> #include <QDialogButtonBox> #include <QFlags> #include <QIcon> #include <QSettings> #include <QString> #include <QTreeWidget> #include <QTreeWidgetItem> using namespace std; QList<CAmount> CoinControlDialog::payAmounts; int CoinControlDialog::nSplitBlockDummy; CCoinControl* CoinControlDialog::coinControl = new CCoinControl(); CoinControlDialog::CoinControlDialog(QWidget* parent, bool fMultisigEnabled) : QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint), ui(new Ui::CoinControlDialog), model(0) { ui->setupUi(this); this->fMultisigEnabled = fMultisigEnabled; /* Open CSS when configured */ this->setStyleSheet(GUIUtil::loadStyleSheet()); // context menu actions QAction* copyAddressAction = new QAction(tr("Copy address"), this); QAction* copyLabelAction = new QAction(tr("Copy label"), this); QAction* copyAmountAction = new QAction(tr("Copy amount"), this); copyTransactionHashAction = new QAction(tr("Copy transaction ID"), this); // we need to enable/disable this lockAction = new QAction(tr("Lock unspent"), this); // we need to enable/disable this unlockAction = new QAction(tr("Unlock unspent"), this); // we need to enable/disable this // context menu contextMenu = new QMenu(); contextMenu->addAction(copyAddressAction); contextMenu->addAction(copyLabelAction); contextMenu->addAction(copyAmountAction); contextMenu->addAction(copyTransactionHashAction); contextMenu->addSeparator(); contextMenu->addAction(lockAction); contextMenu->addAction(unlockAction); // context menu signals connect(ui->treeWidget, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(showMenu(QPoint))); connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(copyAddress())); connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(copyLabel())); connect(copyAmountAction, SIGNAL(triggered()), this, SLOT(copyAmount())); connect(copyTransactionHashAction, SIGNAL(triggered()), this, SLOT(copyTransactionHash())); connect(lockAction, SIGNAL(triggered()), this, SLOT(lockCoin())); connect(unlockAction, SIGNAL(triggered()), this, SLOT(unlockCoin())); // clipboard actions QAction* clipboardQuantityAction = new QAction(tr("Copy quantity"), this); QAction* clipboardAmountAction = new QAction(tr("Copy amount"), this); QAction* clipboardFeeAction = new QAction(tr("Copy fee"), this); QAction* clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this); QAction* clipboardBytesAction = new QAction(tr("Copy bytes"), this); QAction* clipboardPriorityAction = new QAction(tr("Copy priority"), this); QAction* clipboardLowOutputAction = new QAction(tr("Copy dust"), this); QAction* clipboardChangeAction = new QAction(tr("Copy change"), this); connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(clipboardQuantity())); connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(clipboardAmount())); connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(clipboardFee())); connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(clipboardAfterFee())); connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(clipboardBytes())); connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(clipboardPriority())); connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(clipboardLowOutput())); connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(clipboardChange())); ui->labelCoinControlQuantity->addAction(clipboardQuantityAction); ui->labelCoinControlAmount->addAction(clipboardAmountAction); ui->labelCoinControlFee->addAction(clipboardFeeAction); ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction); ui->labelCoinControlBytes->addAction(clipboardBytesAction); ui->labelCoinControlPriority->addAction(clipboardPriorityAction); ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction); ui->labelCoinControlChange->addAction(clipboardChangeAction); // toggle tree/list mode connect(ui->radioTreeMode, SIGNAL(toggled(bool)), this, SLOT(radioTreeMode(bool))); connect(ui->radioListMode, SIGNAL(toggled(bool)), this, SLOT(radioListMode(bool))); // click on checkbox connect(ui->treeWidget, SIGNAL(itemChanged(QTreeWidgetItem*, int)), this, SLOT(viewItemChanged(QTreeWidgetItem*, int))); // click on header ui->treeWidget->header()->setSectionsClickable(true); connect(ui->treeWidget->header(), SIGNAL(sectionClicked(int)), this, SLOT(headerSectionClicked(int))); // ok button connect(ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(buttonBoxClicked(QAbstractButton*))); // (un)select all connect(ui->pushButtonSelectAll, SIGNAL(clicked()), this, SLOT(buttonSelectAllClicked())); // Toggle lock state connect(ui->pushButtonToggleLock, SIGNAL(clicked()), this, SLOT(buttonToggleLockClicked())); // change coin control first column label due Qt4 bug. // see https://github.com/bitcoin/bitcoin/issues/5716 ui->treeWidget->headerItem()->setText(COLUMN_CHECKBOX, QString()); ui->treeWidget->setColumnWidth(COLUMN_CHECKBOX, 84); ui->treeWidget->setColumnWidth(COLUMN_AMOUNT, 100); ui->treeWidget->setColumnWidth(COLUMN_LABEL, 170); ui->treeWidget->setColumnWidth(COLUMN_ADDRESS, 190); ui->treeWidget->setColumnWidth(COLUMN_DATE, 80); ui->treeWidget->setColumnWidth(COLUMN_CONFIRMATIONS, 100); ui->treeWidget->setColumnWidth(COLUMN_PRIORITY, 100); ui->treeWidget->setColumnHidden(COLUMN_TXHASH, true); // store transacton hash in this column, but dont show it ui->treeWidget->setColumnHidden(COLUMN_VOUT_INDEX, true); // store vout index in this column, but dont show it ui->treeWidget->setColumnHidden(COLUMN_AMOUNT_INT64, true); // store amount int64 in this column, but dont show it ui->treeWidget->setColumnHidden(COLUMN_PRIORITY_INT64, true); // store priority int64 in this column, but dont show it ui->treeWidget->setColumnHidden(COLUMN_DATE_INT64, true); // store date int64 in this column, but dont show it // default view is sorted by amount desc sortView(COLUMN_AMOUNT_INT64, Qt::DescendingOrder); // restore list mode and sortorder as a convenience feature QSettings settings; if (settings.contains("nCoinControlMode") && !settings.value("nCoinControlMode").toBool()) ui->radioTreeMode->click(); if (settings.contains("nCoinControlSortColumn") && settings.contains("nCoinControlSortOrder")) sortView(settings.value("nCoinControlSortColumn").toInt(), ((Qt::SortOrder)settings.value("nCoinControlSortOrder").toInt())); } CoinControlDialog::~CoinControlDialog() { QSettings settings; settings.setValue("nCoinControlMode", ui->radioListMode->isChecked()); settings.setValue("nCoinControlSortColumn", sortColumn); settings.setValue("nCoinControlSortOrder", (int)sortOrder); delete ui; } void CoinControlDialog::setModel(WalletModel* model) { this->model = model; if (model && model->getOptionsModel() && model->getAddressTableModel()) { updateView(); updateLabelLocked(); CoinControlDialog::updateLabels(model, this); updateDialogLabels(); } } // helper function str_pad QString CoinControlDialog::strPad(QString s, int nPadLength, QString sPadding) { while (s.length() < nPadLength) s = sPadding + s; return s; } // ok button void CoinControlDialog::buttonBoxClicked(QAbstractButton* button) { if (ui->buttonBox->buttonRole(button) == QDialogButtonBox::AcceptRole) done(QDialog::Accepted); // closes the dialog } // (un)select all void CoinControlDialog::buttonSelectAllClicked() { Qt::CheckState state = Qt::Checked; for (int i = 0; i < ui->treeWidget->topLevelItemCount(); i++) { if (ui->treeWidget->topLevelItem(i)->checkState(COLUMN_CHECKBOX) != Qt::Unchecked) { state = Qt::Unchecked; break; } } ui->treeWidget->setEnabled(false); for (int i = 0; i < ui->treeWidget->topLevelItemCount(); i++) if (ui->treeWidget->topLevelItem(i)->checkState(COLUMN_CHECKBOX) != state) ui->treeWidget->topLevelItem(i)->setCheckState(COLUMN_CHECKBOX, state); ui->treeWidget->setEnabled(true); if (state == Qt::Unchecked) coinControl->UnSelectAll(); // just to be sure CoinControlDialog::updateLabels(model, this); updateDialogLabels(); } // Toggle lock state void CoinControlDialog::buttonToggleLockClicked() { QTreeWidgetItem* item; // Works in list-mode only if (ui->radioListMode->isChecked()) { ui->treeWidget->setEnabled(false); for (int i = 0; i < ui->treeWidget->topLevelItemCount(); i++) { item = ui->treeWidget->topLevelItem(i); if (item->text(COLUMN_TYPE) == "MultiSig") continue; COutPoint outpt(uint256(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt()); if (model->isLockedCoin(uint256(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt())) { model->unlockCoin(outpt); item->setDisabled(false); item->setIcon(COLUMN_CHECKBOX, QIcon()); } else { model->lockCoin(outpt); item->setDisabled(true); item->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed")); } updateLabelLocked(); } ui->treeWidget->setEnabled(true); CoinControlDialog::updateLabels(model, this); updateDialogLabels(); } else { QMessageBox msgBox; msgBox.setObjectName("lockMessageBox"); msgBox.setStyleSheet(GUIUtil::loadStyleSheet()); msgBox.setText(tr("Please switch to \"List mode\" to use this function.")); msgBox.exec(); } } // context menu void CoinControlDialog::showMenu(const QPoint& point) { QTreeWidgetItem* item = ui->treeWidget->itemAt(point); if (item) { contextMenuItem = item; // disable some items (like Copy Transaction ID, lock, unlock) for tree roots in context menu if (item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means its a child node, so its not a parent node in tree mode) { copyTransactionHashAction->setEnabled(true); if (model->isLockedCoin(uint256(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt())) { lockAction->setEnabled(false); unlockAction->setEnabled(true); } else { lockAction->setEnabled(true); unlockAction->setEnabled(false); } } else // this means click on parent node in tree mode -> disable all { copyTransactionHashAction->setEnabled(false); lockAction->setEnabled(false); unlockAction->setEnabled(false); } // show context menu contextMenu->exec(QCursor::pos()); } } // context menu action: copy amount void CoinControlDialog::copyAmount() { GUIUtil::setClipboard(BitcoinUnits::removeSpaces(contextMenuItem->text(COLUMN_AMOUNT))); } // context menu action: copy label void CoinControlDialog::copyLabel() { if (ui->radioTreeMode->isChecked() && contextMenuItem->text(COLUMN_LABEL).length() == 0 && contextMenuItem->parent()) GUIUtil::setClipboard(contextMenuItem->parent()->text(COLUMN_LABEL)); else GUIUtil::setClipboard(contextMenuItem->text(COLUMN_LABEL)); } // context menu action: copy address void CoinControlDialog::copyAddress() { if (ui->radioTreeMode->isChecked() && contextMenuItem->text(COLUMN_ADDRESS).length() == 0 && contextMenuItem->parent()) GUIUtil::setClipboard(contextMenuItem->parent()->text(COLUMN_ADDRESS)); else GUIUtil::setClipboard(contextMenuItem->text(COLUMN_ADDRESS)); } // context menu action: copy transaction id void CoinControlDialog::copyTransactionHash() { GUIUtil::setClipboard(contextMenuItem->text(COLUMN_TXHASH)); } // context menu action: lock coin void CoinControlDialog::lockCoin() { if (contextMenuItem->checkState(COLUMN_CHECKBOX) == Qt::Checked) contextMenuItem->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); COutPoint outpt(uint256(contextMenuItem->text(COLUMN_TXHASH).toStdString()), contextMenuItem->text(COLUMN_VOUT_INDEX).toUInt()); model->lockCoin(outpt); contextMenuItem->setDisabled(true); contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed")); updateLabelLocked(); } // context menu action: unlock coin void CoinControlDialog::unlockCoin() { COutPoint outpt(uint256(contextMenuItem->text(COLUMN_TXHASH).toStdString()), contextMenuItem->text(COLUMN_VOUT_INDEX).toUInt()); model->unlockCoin(outpt); contextMenuItem->setDisabled(false); contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon()); updateLabelLocked(); } // copy label "Quantity" to clipboard void CoinControlDialog::clipboardQuantity() { GUIUtil::setClipboard(ui->labelCoinControlQuantity->text()); } // copy label "Amount" to clipboard void CoinControlDialog::clipboardAmount() { GUIUtil::setClipboard(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" "))); } // copy label "Fee" to clipboard void CoinControlDialog::clipboardFee() { GUIUtil::setClipboard(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" ")).replace("~", "")); } // copy label "After fee" to clipboard void CoinControlDialog::clipboardAfterFee() { GUIUtil::setClipboard(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")).replace("~", "")); } // copy label "Bytes" to clipboard void CoinControlDialog::clipboardBytes() { GUIUtil::setClipboard(ui->labelCoinControlBytes->text().replace("~", "")); } // copy label "Priority" to clipboard void CoinControlDialog::clipboardPriority() { GUIUtil::setClipboard(ui->labelCoinControlPriority->text()); } // copy label "Dust" to clipboard void CoinControlDialog::clipboardLowOutput() { GUIUtil::setClipboard(ui->labelCoinControlLowOutput->text()); } // copy label "Change" to clipboard void CoinControlDialog::clipboardChange() { GUIUtil::setClipboard(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" ")).replace("~", "")); } // treeview: sort void CoinControlDialog::sortView(int column, Qt::SortOrder order) { sortColumn = column; sortOrder = order; ui->treeWidget->sortItems(column, order); ui->treeWidget->header()->setSortIndicator(getMappedColumn(sortColumn), sortOrder); } // treeview: clicked on header void CoinControlDialog::headerSectionClicked(int logicalIndex) { if (logicalIndex == COLUMN_CHECKBOX) // click on most left column -> do nothing { ui->treeWidget->header()->setSortIndicator(getMappedColumn(sortColumn), sortOrder); } else { logicalIndex = getMappedColumn(logicalIndex, false); if (sortColumn == logicalIndex) sortOrder = ((sortOrder == Qt::AscendingOrder) ? Qt::DescendingOrder : Qt::AscendingOrder); else { sortColumn = logicalIndex; sortOrder = ((sortColumn == COLUMN_LABEL || sortColumn == COLUMN_ADDRESS) ? Qt::AscendingOrder : Qt::DescendingOrder); // if label or address then default => asc, else default => desc } sortView(sortColumn, sortOrder); } } // toggle tree mode void CoinControlDialog::radioTreeMode(bool checked) { if (checked && model) updateView(); } // toggle list mode void CoinControlDialog::radioListMode(bool checked) { if (checked && model) updateView(); } // checkbox clicked by user void CoinControlDialog::viewItemChanged(QTreeWidgetItem* item, int column) { if (column == COLUMN_CHECKBOX && item->text(COLUMN_TXHASH).length() == 64) // transaction hash is 64 characters (this means its a child node, so its not a parent node in tree mode) { COutPoint outpt(uint256(item->text(COLUMN_TXHASH).toStdString()), item->text(COLUMN_VOUT_INDEX).toUInt()); if (item->checkState(COLUMN_CHECKBOX) == Qt::Unchecked) coinControl->UnSelect(outpt); else if (item->isDisabled()) // locked (this happens if "check all" through parent node) item->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); else coinControl->Select(outpt); // selection changed -> update labels if (ui->treeWidget->isEnabled()){ // do not update on every click for (un)select all CoinControlDialog::updateLabels(model, this); updateDialogLabels(); } } // TODO: Remove this temporary qt5 fix after Qt5.3 and Qt5.4 are no longer used. // Fixed in Qt5.5 and above: https://bugreports.qt.io/browse/QTBUG-43473 else if (column == COLUMN_CHECKBOX && item->childCount() > 0) { if (item->checkState(COLUMN_CHECKBOX) == Qt::PartiallyChecked && item->child(0)->checkState(COLUMN_CHECKBOX) == Qt::PartiallyChecked) item->setCheckState(COLUMN_CHECKBOX, Qt::Checked); } } // return human readable label for priority number QString CoinControlDialog::getPriorityLabel(double dPriority, double mempoolEstimatePriority) { double dPriorityMedium = mempoolEstimatePriority; if (dPriorityMedium <= 0) dPriorityMedium = AllowFreeThreshold(); // not enough data, back to hard-coded if (dPriority / 1000000 > dPriorityMedium) return tr("highest"); else if (dPriority / 100000 > dPriorityMedium) return tr("higher"); else if (dPriority / 10000 > dPriorityMedium) return tr("high"); else if (dPriority / 1000 > dPriorityMedium) return tr("medium-high"); else if (dPriority > dPriorityMedium) return tr("medium"); else if (dPriority * 10 > dPriorityMedium) return tr("low-medium"); else if (dPriority * 100 > dPriorityMedium) return tr("low"); else if (dPriority * 1000 > dPriorityMedium) return tr("lower"); else return tr("lowest"); } // shows count of locked unspent outputs void CoinControlDialog::updateLabelLocked() { vector<COutPoint> vOutpts; model->listLockedCoins(vOutpts); if (vOutpts.size() > 0) { ui->labelLocked->setText(tr("(%1 locked)").arg(vOutpts.size())); ui->labelLocked->setVisible(true); } else ui->labelLocked->setVisible(false); } void CoinControlDialog::updateDialogLabels() { if (this->parentWidget() == nullptr) { CoinControlDialog::updateLabels(model, this); return; } vector<COutPoint> vCoinControl; vector<COutput> vOutputs; coinControl->ListSelected(vCoinControl); model->getOutputs(vCoinControl, vOutputs); CAmount nAmount = 0; unsigned int nQuantity = 0; for (const COutput& out : vOutputs) { // unselect already spent, very unlikely scenario, this could happen // when selected are spent elsewhere, like rpc or another computer uint256 txhash = out.tx->GetHash(); COutPoint outpt(txhash, out.i); if(model->isSpent(outpt)) { coinControl->UnSelect(outpt); continue; } // Quantity nQuantity++; // Amount nAmount += out.tx->vout[out.i].nValue; } MultisigDialog* multisigDialog = (MultisigDialog*)this->parentWidget(); multisigDialog->updateCoinControl(nAmount, nQuantity); } void CoinControlDialog::updateLabels(WalletModel* model, QDialog* dialog) { if (!model) return; // nPayAmount CAmount nPayAmount = 0; bool fDust = false; CMutableTransaction txDummy; foreach (const CAmount& amount, CoinControlDialog::payAmounts) { nPayAmount += amount; if (amount > 0) { CTxOut txout(amount, (CScript)vector<unsigned char>(24, 0)); txDummy.vout.push_back(txout); if (txout.IsDust(::minRelayTxFee)) fDust = true; } } QString sPriorityLabel = tr("none"); CAmount nAmount = 0; CAmount nPayFee = 0; CAmount nAfterFee = 0; CAmount nChange = 0; unsigned int nBytes = 0; unsigned int nBytesInputs = 0; double dPriority = 0; double dPriorityInputs = 0; unsigned int nQuantity = 0; int nQuantityUncompressed = 0; bool fAllowFree = false; vector<COutPoint> vCoinControl; vector<COutput> vOutputs; coinControl->ListSelected(vCoinControl); model->getOutputs(vCoinControl, vOutputs); BOOST_FOREACH (const COutput& out, vOutputs) { // unselect already spent, very unlikely scenario, this could happen // when selected are spent elsewhere, like rpc or another computer uint256 txhash = out.tx->GetHash(); COutPoint outpt(txhash, out.i); if (model->isSpent(outpt)) { coinControl->UnSelect(outpt); continue; } // Quantity nQuantity++; // Amount nAmount += out.tx->vout[out.i].nValue; // Priority dPriorityInputs += (double)out.tx->vout[out.i].nValue * (out.nDepth + 1); // Bytes CTxDestination address; if (ExtractDestination(out.tx->vout[out.i].scriptPubKey, address)) { CPubKey pubkey; CKeyID* keyid = boost::get<CKeyID>(&address); if (keyid && model->getPubKey(*keyid, pubkey)) { nBytesInputs += (pubkey.IsCompressed() ? 148 : 180); if (!pubkey.IsCompressed()) nQuantityUncompressed++; } else nBytesInputs += 148; // in all error cases, simply assume 148 here } else nBytesInputs += 148; } // calculation if (nQuantity > 0) { // Bytes nBytes = nBytesInputs + ((CoinControlDialog::payAmounts.size() > 0 ? CoinControlDialog::payAmounts.size() + max(1, CoinControlDialog::nSplitBlockDummy) : 2) * 34) + 10; // always assume +1 output for change here // Priority double mempoolEstimatePriority = mempool.estimatePriority(nTxConfirmTarget); dPriority = dPriorityInputs / (nBytes - nBytesInputs + (nQuantityUncompressed * 29)); // 29 = 180 - 151 (uncompressed public keys are over the limit. max 151 bytes of the input are ignored for priority) sPriorityLabel = CoinControlDialog::getPriorityLabel(dPriority, mempoolEstimatePriority); // Fee nPayFee = CWallet::GetMinimumFee(nBytes, nTxConfirmTarget, mempool); // IX Fee if (coinControl->useSwiftTX) nPayFee = max(nPayFee, CENT); // Allow free? double dPriorityNeeded = mempoolEstimatePriority; if (dPriorityNeeded <= 0) dPriorityNeeded = AllowFreeThreshold(); // not enough data, back to hard-coded fAllowFree = (dPriority >= dPriorityNeeded); if (fSendFreeTransactions) if (fAllowFree && nBytes <= MAX_FREE_TRANSACTION_CREATE_SIZE) nPayFee = 0; if (nPayAmount > 0) { nChange = nAmount - nPayFee - nPayAmount; // Never create dust outputs; if we would, just add the dust to the fee. if (nChange > 0 && nChange < CENT) { CTxOut txout(nChange, (CScript)vector<unsigned char>(24, 0)); if (txout.IsDust(::minRelayTxFee)) { nPayFee += nChange; nChange = 0; } } if (nChange == 0) nBytes -= 34; } // after fee nAfterFee = nAmount - nPayFee; if (nAfterFee < 0) nAfterFee = 0; } // actually update labels int nDisplayUnit = BitcoinUnits::MHCE; if (model && model->getOptionsModel()) nDisplayUnit = model->getOptionsModel()->getDisplayUnit(); QLabel* l1 = dialog->findChild<QLabel*>("labelCoinControlQuantity"); QLabel* l2 = dialog->findChild<QLabel*>("labelCoinControlAmount"); QLabel* l3 = dialog->findChild<QLabel*>("labelCoinControlFee"); QLabel* l4 = dialog->findChild<QLabel*>("labelCoinControlAfterFee"); QLabel* l5 = dialog->findChild<QLabel*>("labelCoinControlBytes"); QLabel* l6 = dialog->findChild<QLabel*>("labelCoinControlPriority"); QLabel* l7 = dialog->findChild<QLabel*>("labelCoinControlLowOutput"); QLabel* l8 = dialog->findChild<QLabel*>("labelCoinControlChange"); // enable/disable "dust" and "change" dialog->findChild<QLabel*>("labelCoinControlLowOutputText")->setEnabled(nPayAmount > 0); dialog->findChild<QLabel*>("labelCoinControlLowOutput")->setEnabled(nPayAmount > 0); dialog->findChild<QLabel*>("labelCoinControlChangeText")->setEnabled(nPayAmount > 0); dialog->findChild<QLabel*>("labelCoinControlChange")->setEnabled(nPayAmount > 0); // stats l1->setText(QString::number(nQuantity)); // Quantity l2->setText(BitcoinUnits::formatWithUnit(nDisplayUnit, nAmount)); // Amount l3->setText(BitcoinUnits::formatWithUnit(nDisplayUnit, nPayFee)); // Fee l4->setText(BitcoinUnits::formatWithUnit(nDisplayUnit, nAfterFee)); // After Fee l5->setText(((nBytes > 0) ? "~" : "") + QString::number(nBytes)); // Bytes l6->setText(sPriorityLabel); // Priority l7->setText(fDust ? tr("yes") : tr("no")); // Dust l8->setText(BitcoinUnits::formatWithUnit(nDisplayUnit, nChange)); // Change if (nPayFee > 0 && !(payTxFee.GetFeePerK() > 0 && fPayAtLeastCustomFee && nBytes < 1000)) { l3->setText("~" + l3->text()); l4->setText("~" + l4->text()); if (nChange > 0) l8->setText("~" + l8->text()); } // turn labels "red" l5->setStyleSheet((nBytes >= MAX_FREE_TRANSACTION_CREATE_SIZE) ? "color:red;" : ""); // Bytes >= 1000 l6->setStyleSheet((dPriority > 0 && !fAllowFree) ? "color:red;" : ""); // Priority < "medium" l7->setStyleSheet((fDust) ? "color:red;" : ""); // Dust = "yes" // tool tips QString toolTip1 = tr("This label turns red, if the transaction size is greater than 1000 bytes.") + "<br /><br />"; toolTip1 += tr("This means a fee of at least %1 per kB is required.").arg(BitcoinUnits::formatWithUnit(nDisplayUnit, CWallet::minTxFee.GetFeePerK())) + "<br /><br />"; toolTip1 += tr("Can vary +/- 1 byte per input."); QString toolTip2 = tr("Transactions with higher priority are more likely to get included into a block.") + "<br /><br />"; toolTip2 += tr("This label turns red, if the priority is smaller than \"medium\".") + "<br /><br />"; toolTip2 += tr("This means a fee of at least %1 per kB is required.").arg(BitcoinUnits::formatWithUnit(nDisplayUnit, CWallet::minTxFee.GetFeePerK())); QString toolTip3 = tr("This label turns red, if any recipient receives an amount smaller than %1.").arg(BitcoinUnits::formatWithUnit(nDisplayUnit, ::minRelayTxFee.GetFee(546))); // how many satoshis the estimated fee can vary per byte we guess wrong double dFeeVary; if (payTxFee.GetFeePerK() > 0) dFeeVary = (double)std::max(CWallet::minTxFee.GetFeePerK(), payTxFee.GetFeePerK()) / 1000; else dFeeVary = (double)std::max(CWallet::minTxFee.GetFeePerK(), mempool.estimateFee(nTxConfirmTarget).GetFeePerK()) / 1000; QString toolTip4 = tr("Can vary +/- %1 uMHCE per input.").arg(dFeeVary); l3->setToolTip(toolTip4); l4->setToolTip(toolTip4); l5->setToolTip(toolTip1); l6->setToolTip(toolTip2); l7->setToolTip(toolTip3); l8->setToolTip(toolTip4); dialog->findChild<QLabel*>("labelCoinControlFeeText")->setToolTip(l3->toolTip()); dialog->findChild<QLabel*>("labelCoinControlAfterFeeText")->setToolTip(l4->toolTip()); dialog->findChild<QLabel*>("labelCoinControlBytesText")->setToolTip(l5->toolTip()); dialog->findChild<QLabel*>("labelCoinControlPriorityText")->setToolTip(l6->toolTip()); dialog->findChild<QLabel*>("labelCoinControlLowOutputText")->setToolTip(l7->toolTip()); dialog->findChild<QLabel*>("labelCoinControlChangeText")->setToolTip(l8->toolTip()); // Insufficient funds QLabel* label = dialog->findChild<QLabel*>("labelCoinControlInsuffFunds"); if (label) label->setVisible(nChange < 0); } void CoinControlDialog::updateView() { if (!model || !model->getOptionsModel() || !model->getAddressTableModel()) return; bool treeMode = ui->radioTreeMode->isChecked(); ui->treeWidget->clear(); ui->treeWidget->setEnabled(false); // performance, otherwise updateLabels would be called for every checked checkbox ui->treeWidget->setAlternatingRowColors(!treeMode); QFlags<Qt::ItemFlag> flgCheckbox = Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsUserCheckable; QFlags<Qt::ItemFlag> flgTristate = Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsTristate; int nDisplayUnit = model->getOptionsModel()->getDisplayUnit(); double mempoolEstimatePriority = mempool.estimatePriority(nTxConfirmTarget); map<QString, vector<COutput>> mapCoins; model->listCoins(mapCoins); BOOST_FOREACH (PAIRTYPE(QString, vector<COutput>) coins, mapCoins) { QTreeWidgetItem* itemWalletAddress = new QTreeWidgetItem(); itemWalletAddress->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); QString sWalletAddress = coins.first; QString sWalletLabel = model->getAddressTableModel()->labelForAddress(sWalletAddress); if (sWalletLabel.isEmpty()) sWalletLabel = tr("(no label)"); if (treeMode) { // wallet address ui->treeWidget->addTopLevelItem(itemWalletAddress); itemWalletAddress->setFlags(flgTristate); itemWalletAddress->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); // label itemWalletAddress->setText(COLUMN_LABEL, sWalletLabel); itemWalletAddress->setToolTip(COLUMN_LABEL, sWalletLabel); // address itemWalletAddress->setText(COLUMN_ADDRESS, sWalletAddress); itemWalletAddress->setToolTip(COLUMN_ADDRESS, sWalletAddress); } CAmount nSum = 0; double dPrioritySum = 0; int nChildren = 0; int nInputSum = 0; for(const COutput& out: coins.second) { isminetype mine = pwalletMain->IsMine(out.tx->vout[out.i]); bool fMultiSigUTXO = (mine & ISMINE_MULTISIG); // when multisig is enabled, it will only display outputs from multisig addresses if (fMultisigEnabled && !fMultiSigUTXO) continue; int nInputSize = 0; nSum += out.tx->vout[out.i].nValue; nChildren++; QTreeWidgetItem* itemOutput; if (treeMode) itemOutput = new QTreeWidgetItem(itemWalletAddress); else itemOutput = new QTreeWidgetItem(ui->treeWidget); itemOutput->setFlags(flgCheckbox); itemOutput->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked); //MultiSig if (fMultiSigUTXO) { itemOutput->setText(COLUMN_TYPE, "MultiSig"); if (!fMultisigEnabled) { COutPoint outpt(out.tx->GetHash(), out.i); coinControl->UnSelect(outpt); // just to be sure itemOutput->setDisabled(true); itemOutput->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed")); } } else { itemOutput->setText(COLUMN_TYPE, "Personal"); } // address CTxDestination outputAddress; QString sAddress = ""; if (ExtractDestination(out.tx->vout[out.i].scriptPubKey, outputAddress)) { sAddress = QString::fromStdString(CBitcoinAddress(outputAddress).ToString()); // if listMode or change => show MasternodeHypeCoinExchange address. In tree mode, address is not shown again for direct wallet address outputs if (!treeMode || (!(sAddress == sWalletAddress))) itemOutput->setText(COLUMN_ADDRESS, sAddress); itemOutput->setToolTip(COLUMN_ADDRESS, sAddress); CPubKey pubkey; CKeyID* keyid = boost::get<CKeyID>(&outputAddress); if (keyid && model->getPubKey(*keyid, pubkey) && !pubkey.IsCompressed()) nInputSize = 29; // 29 = 180 - 151 (public key is 180 bytes, priority free area is 151 bytes) } // label if (!(sAddress == sWalletAddress)) // change { // tooltip from where the change comes from itemOutput->setToolTip(COLUMN_LABEL, tr("change from %1 (%2)").arg(sWalletLabel).arg(sWalletAddress)); itemOutput->setText(COLUMN_LABEL, tr("(change)")); } else if (!treeMode) { QString sLabel = model->getAddressTableModel()->labelForAddress(sAddress); if (sLabel.isEmpty()) sLabel = tr("(no label)"); itemOutput->setText(COLUMN_LABEL, sLabel); } // amount itemOutput->setText(COLUMN_AMOUNT, BitcoinUnits::format(nDisplayUnit, out.tx->vout[out.i].nValue)); itemOutput->setToolTip(COLUMN_AMOUNT, BitcoinUnits::format(nDisplayUnit, out.tx->vout[out.i].nValue)); itemOutput->setText(COLUMN_AMOUNT_INT64, strPad(QString::number(out.tx->vout[out.i].nValue), 15, " ")); // padding so that sorting works correctly // date itemOutput->setText(COLUMN_DATE, GUIUtil::dateTimeStr(out.tx->GetTxTime())); itemOutput->setToolTip(COLUMN_DATE, GUIUtil::dateTimeStr(out.tx->GetTxTime())); itemOutput->setText(COLUMN_DATE_INT64, strPad(QString::number(out.tx->GetTxTime()), 20, " ")); // confirmations itemOutput->setText(COLUMN_CONFIRMATIONS, strPad(QString::number(out.nDepth), 8, " ")); // priority double dPriority = ((double)out.tx->vout[out.i].nValue / (nInputSize + 78)) * (out.nDepth + 1); // 78 = 2 * 34 + 10 itemOutput->setText(COLUMN_PRIORITY, CoinControlDialog::getPriorityLabel(dPriority, mempoolEstimatePriority)); itemOutput->setText(COLUMN_PRIORITY_INT64, strPad(QString::number((int64_t)dPriority), 20, " ")); dPrioritySum += (double)out.tx->vout[out.i].nValue * (out.nDepth + 1); nInputSum += nInputSize; // transaction hash uint256 txhash = out.tx->GetHash(); itemOutput->setText(COLUMN_TXHASH, QString::fromStdString(txhash.GetHex())); // vout index itemOutput->setText(COLUMN_VOUT_INDEX, QString::number(out.i)); // disable locked coins if (model->isLockedCoin(txhash, out.i)) { COutPoint outpt(txhash, out.i); coinControl->UnSelect(outpt); // just to be sure itemOutput->setDisabled(true); itemOutput->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed")); } // set checkbox if (coinControl->IsSelected(txhash, out.i)) itemOutput->setCheckState(COLUMN_CHECKBOX, Qt::Checked); } // amount if (treeMode) { dPrioritySum = dPrioritySum / (nInputSum + 78); itemWalletAddress->setText(COLUMN_CHECKBOX, "(" + QString::number(nChildren) + ")"); itemWalletAddress->setText(COLUMN_AMOUNT, BitcoinUnits::format(nDisplayUnit, nSum)); itemWalletAddress->setToolTip(COLUMN_AMOUNT, BitcoinUnits::format(nDisplayUnit, nSum)); itemWalletAddress->setText(COLUMN_AMOUNT_INT64, strPad(QString::number(nSum), 15, " ")); itemWalletAddress->setText(COLUMN_PRIORITY, CoinControlDialog::getPriorityLabel(dPrioritySum, mempoolEstimatePriority)); itemWalletAddress->setText(COLUMN_PRIORITY_INT64, strPad(QString::number((int64_t)dPrioritySum), 20, " ")); } } // expand all partially selected if (treeMode) { for (int i = 0; i < ui->treeWidget->topLevelItemCount(); i++) if (ui->treeWidget->topLevelItem(i)->checkState(COLUMN_CHECKBOX) == Qt::PartiallyChecked) ui->treeWidget->topLevelItem(i)->setExpanded(true); } // sort view sortView(sortColumn, sortOrder); ui->treeWidget->setEnabled(true); }
[ "85690342+Masternode-Hype-Coin-Exchange@users.noreply.github.com" ]
85690342+Masternode-Hype-Coin-Exchange@users.noreply.github.com
36084050bda6269a0356de45eface0ac22920ee3
52dc9080af88c00222cc9b37aa08c35ff3cafe86
/0900/90/991a.cpp
6c1bf9b47541b7f530f4397aaef59836871ddf44
[ "Unlicense" ]
permissive
shivral/cf
1c1acde25fc6af775acaeeb6b5fe5aa9bbcfd4d2
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
refs/heads/master
2023-03-20T01:29:25.559828
2021-03-05T08:30:30
2021-03-05T08:30:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
415
cpp
#include <iostream> void answer(int v) { std::cout << v << '\n'; } void solve(unsigned a, unsigned b, unsigned c, unsigned n) { if (c > a || c > b) return answer(-1); const unsigned d = (a - c) + (b - c) + c; if (d + 1 > n) return answer(-1); answer(n - d); } int main() { unsigned a, b, c, n; std::cin >> a >> b >> c >> n; solve(a, b, c, n); return 0; }
[ "5691735+actium@users.noreply.github.com" ]
5691735+actium@users.noreply.github.com
c6a0751fe324143f147143ddc2b0f82f480f0242
078bc6208f4921008423a7c0a0e107c5d88ab103
/ps/src/petuum_ps_common/storage/abstract_store.hpp
d8414977e65656968c7c91f257d1b10984603304
[ "BSD-2-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
XinYao1994/pmls-caffe
1c6d43601e91421c6eb20c6f9de98156e5d60eed
e5f44229cbb1475e4c8d839cce73cad83af398a0
refs/heads/master
2020-04-14T07:35:19.679100
2019-03-26T07:46:23
2019-03-26T07:46:23
163,716,653
0
0
NOASSERTION
2019-01-01T06:05:52
2019-01-01T06:05:51
null
UTF-8
C++
false
false
1,399
hpp
// author: jinliang #pragma once #include <petuum_ps_common/storage/abstract_store_iterator.hpp> #include <glog/logging.h> namespace petuum { // V is an arithmetic type. V is the data type and also the update type. // V needs to be a numeric type. template<typename V> class AbstractStore { public: AbstractStore() { } virtual ~AbstractStore() { } AbstractStore(const AbstractStore<V> &other) { } AbstractStore<V> & operator = (const AbstractStore<V> &other) { } virtual void Init(size_t capacity) = 0; virtual size_t SerializedSize() const = 0; virtual size_t Serialize(void *bytes) const = 0; // May be called before Init(). virtual void Deserialize(const void *data, size_t num_bytes) = 0; // Only called after Init(). virtual void ResetData(const void *data, size_t num_bytes) { Deserialize(data, num_bytes); } virtual V Get (int32_t col_id) const = 0; virtual void Inc(int32_t col_id, V delta) = 0; virtual const void CopyToVector(void *to) const = 0; // contiguous memory virtual V *GetPtr(int32_t col_id) { LOG(FATAL) << "Not yet supported"; return 0; } virtual const V *GetConstPtr(int32_t col_id) const { LOG(FATAL) << "Not yet supported"; return 0; } virtual const void *GetDataPtr() const { LOG(FATAL) << "Not yet supported"; return 0; } static_assert(std::is_pod<V>::value, "V must be POD"); }; }
[ "zhisbug@gmail.com" ]
zhisbug@gmail.com
356f6d5880e544f7e5b7b6d9be209271b3b8212e
6dce186fd97275a29a54379dcc8b773b28a06a5f
/已完成程序/求最大值 最小值 平均值/求最大值/未命名3.cpp
621693df4e4fea45b008134b906e80c0df02cf39
[]
no_license
pjj-825155/c-program
530ebc13b580a9038a5415ec6c6e72f1f4630d5d
476fd1e7f32ab74f37e2951e031b77fffff4d80d
refs/heads/master
2022-04-21T05:22:53.018272
2020-04-16T03:50:17
2020-04-16T03:50:17
256,103,220
0
0
null
null
null
null
UTF-8
C++
false
false
86
cpp
#include<stdio.h> main() { char ch; scanf("%c",&ch); printf("%c\n",ch-'A'+'a'); }
[ "63763593+pjj-825155@users.noreply.github.com" ]
63763593+pjj-825155@users.noreply.github.com
7a2cea409a104e2269969c792c660d8e2d3e5027
278caa7feb634e69f5c9ad548537fa6c45d52294
/Classes/ClosureStmnt.h
fa9bb25beecbba8edac81683dc2d643cdabcf780
[]
no_license
sky94520/Stone-cplus
1b24cb16068c3b9944a15a61d2f8afd24dccbe0a
22536d069cc3e30bc4a9896a9c512cb36ed8bac5
refs/heads/master
2020-05-05T12:55:36.876543
2019-04-16T13:21:00
2019-04-16T13:21:00
180,051,458
0
0
null
null
null
null
GB18030
C++
false
false
538
h
#ifndef __Stone_ClosureStmnt_H__ #define __Stone_ClosureStmnt_H__ #include "ASTList.h" NS_STONE_BEGIN class ParameterList; class BlockStmnt; class Visitor; class Environment; class ClosureStmnt : public ASTList { public: ClosureStmnt(const std::vector<ASTree*>& list); virtual ~ClosureStmnt(); //获取函数参数列表 ParameterList* getParameters() const; //获取函数体 BlockStmnt* getBody() const; public: virtual void accept(Visitor* v, Environment* env); virtual std::string toString() const; }; NS_STONE_END #endif
[ "541052067@qq.com" ]
541052067@qq.com
0b4361d59b46b55243993ba8e7107105c283468f
6ced41da926682548df646099662e79d7a6022c5
/aws-cpp-sdk-ce/include/aws/ce/model/TargetInstance.h
3f34a496cb9f488e76d3bf6013b702d73688fa83
[ "Apache-2.0", "MIT", "JSON" ]
permissive
irods/aws-sdk-cpp
139104843de529f615defa4f6b8e20bc95a6be05
2c7fb1a048c96713a28b730e1f48096bd231e932
refs/heads/main
2023-07-25T12:12:04.363757
2022-08-26T15:33:31
2022-08-26T15:33:31
141,315,346
0
1
Apache-2.0
2022-08-26T17:45:09
2018-07-17T16:24:06
C++
UTF-8
C++
false
false
13,562
h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/ce/CostExplorer_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/ce/model/ResourceDetails.h> #include <aws/ce/model/ResourceUtilization.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/ce/model/PlatformDifference.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** * <p>Details on recommended instance.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/TargetInstance">AWS * API Reference</a></p> */ class AWS_COSTEXPLORER_API TargetInstance { public: TargetInstance(); TargetInstance(Aws::Utils::Json::JsonView jsonValue); TargetInstance& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline const Aws::String& GetEstimatedMonthlyCost() const{ return m_estimatedMonthlyCost; } /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline bool EstimatedMonthlyCostHasBeenSet() const { return m_estimatedMonthlyCostHasBeenSet; } /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline void SetEstimatedMonthlyCost(const Aws::String& value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = value; } /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline void SetEstimatedMonthlyCost(Aws::String&& value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost = std::move(value); } /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline void SetEstimatedMonthlyCost(const char* value) { m_estimatedMonthlyCostHasBeenSet = true; m_estimatedMonthlyCost.assign(value); } /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlyCost(const Aws::String& value) { SetEstimatedMonthlyCost(value); return *this;} /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlyCost(Aws::String&& value) { SetEstimatedMonthlyCost(std::move(value)); return *this;} /** * <p>The expected cost to operate this instance type on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlyCost(const char* value) { SetEstimatedMonthlyCost(value); return *this;} /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline const Aws::String& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; } /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; } /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline void SetEstimatedMonthlySavings(const Aws::String& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; } /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline void SetEstimatedMonthlySavings(Aws::String&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); } /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline void SetEstimatedMonthlySavings(const char* value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings.assign(value); } /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlySavings(const Aws::String& value) { SetEstimatedMonthlySavings(value); return *this;} /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlySavings(Aws::String&& value) { SetEstimatedMonthlySavings(std::move(value)); return *this;} /** * <p>The estimated savings that result from modification, on a monthly basis.</p> */ inline TargetInstance& WithEstimatedMonthlySavings(const char* value) { SetEstimatedMonthlySavings(value); return *this;} /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; } /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; } /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); } /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); } /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline TargetInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;} /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline TargetInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;} /** * <p>The currency code that Amazon Web Services used to calculate the costs for * this instance.</p> */ inline TargetInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;} /** * <p>Determines whether this recommendation is the defaulted Amazon Web Services * recommendation.</p> */ inline bool GetDefaultTargetInstance() const{ return m_defaultTargetInstance; } /** * <p>Determines whether this recommendation is the defaulted Amazon Web Services * recommendation.</p> */ inline bool DefaultTargetInstanceHasBeenSet() const { return m_defaultTargetInstanceHasBeenSet; } /** * <p>Determines whether this recommendation is the defaulted Amazon Web Services * recommendation.</p> */ inline void SetDefaultTargetInstance(bool value) { m_defaultTargetInstanceHasBeenSet = true; m_defaultTargetInstance = value; } /** * <p>Determines whether this recommendation is the defaulted Amazon Web Services * recommendation.</p> */ inline TargetInstance& WithDefaultTargetInstance(bool value) { SetDefaultTargetInstance(value); return *this;} /** * <p>Details on the target instance type. </p> */ inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; } /** * <p>Details on the target instance type. </p> */ inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; } /** * <p>Details on the target instance type. </p> */ inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; } /** * <p>Details on the target instance type. </p> */ inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); } /** * <p>Details on the target instance type. </p> */ inline TargetInstance& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;} /** * <p>Details on the target instance type. </p> */ inline TargetInstance& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;} /** * <p>The expected utilization metrics for target instance type.</p> */ inline const ResourceUtilization& GetExpectedResourceUtilization() const{ return m_expectedResourceUtilization; } /** * <p>The expected utilization metrics for target instance type.</p> */ inline bool ExpectedResourceUtilizationHasBeenSet() const { return m_expectedResourceUtilizationHasBeenSet; } /** * <p>The expected utilization metrics for target instance type.</p> */ inline void SetExpectedResourceUtilization(const ResourceUtilization& value) { m_expectedResourceUtilizationHasBeenSet = true; m_expectedResourceUtilization = value; } /** * <p>The expected utilization metrics for target instance type.</p> */ inline void SetExpectedResourceUtilization(ResourceUtilization&& value) { m_expectedResourceUtilizationHasBeenSet = true; m_expectedResourceUtilization = std::move(value); } /** * <p>The expected utilization metrics for target instance type.</p> */ inline TargetInstance& WithExpectedResourceUtilization(const ResourceUtilization& value) { SetExpectedResourceUtilization(value); return *this;} /** * <p>The expected utilization metrics for target instance type.</p> */ inline TargetInstance& WithExpectedResourceUtilization(ResourceUtilization&& value) { SetExpectedResourceUtilization(std::move(value)); return *this;} /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline const Aws::Vector<PlatformDifference>& GetPlatformDifferences() const{ return m_platformDifferences; } /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline bool PlatformDifferencesHasBeenSet() const { return m_platformDifferencesHasBeenSet; } /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline void SetPlatformDifferences(const Aws::Vector<PlatformDifference>& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences = value; } /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline void SetPlatformDifferences(Aws::Vector<PlatformDifference>&& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences = std::move(value); } /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline TargetInstance& WithPlatformDifferences(const Aws::Vector<PlatformDifference>& value) { SetPlatformDifferences(value); return *this;} /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline TargetInstance& WithPlatformDifferences(Aws::Vector<PlatformDifference>&& value) { SetPlatformDifferences(std::move(value)); return *this;} /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline TargetInstance& AddPlatformDifferences(const PlatformDifference& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences.push_back(value); return *this; } /** * <p>Explains the actions that you might need to take to successfully migrate your * workloads from the current instance type to the recommended instance type. </p> */ inline TargetInstance& AddPlatformDifferences(PlatformDifference&& value) { m_platformDifferencesHasBeenSet = true; m_platformDifferences.push_back(std::move(value)); return *this; } private: Aws::String m_estimatedMonthlyCost; bool m_estimatedMonthlyCostHasBeenSet; Aws::String m_estimatedMonthlySavings; bool m_estimatedMonthlySavingsHasBeenSet; Aws::String m_currencyCode; bool m_currencyCodeHasBeenSet; bool m_defaultTargetInstance; bool m_defaultTargetInstanceHasBeenSet; ResourceDetails m_resourceDetails; bool m_resourceDetailsHasBeenSet; ResourceUtilization m_expectedResourceUtilization; bool m_expectedResourceUtilizationHasBeenSet; Aws::Vector<PlatformDifference> m_platformDifferences; bool m_platformDifferencesHasBeenSet; }; } // namespace Model } // namespace CostExplorer } // namespace Aws
[ "aws-sdk-cpp-automation@github.com" ]
aws-sdk-cpp-automation@github.com
d4f0d50ef09b851edc42306a23711ebc548fe368
f91375a369abc2076953dd166de3e0f2197c64c4
/main.cpp
8e7d7c94f0783ed8701fcee405d30148e13044a7
[]
no_license
mirahanugraheny/Tubes-Grafkom2
1831fd2e2eb5cc07b38c9f6b063078349e09e1b0
34494b86c38e23d7ee61dbdd30d533f94f417ad3
refs/heads/master
2020-05-19T22:28:52.027567
2013-07-23T04:24:08
2013-07-23T04:24:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
24,897
cpp
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #ifdef __APPLE__ #include <OpenGL/OpenGL.h> #include <GLUT/glut.h> #else #include <GL/glut.h> #include <GL/glu.h> #include <GL/gl.h> #include "imageloader.h" #include "vec3f.h" #endif static GLfloat spin,muter = 0.0; static int posx=0,posy=2.0,posz =0,tree=0,z=0, home=0; float angle = 0; using namespace std; float lastx, lasty; GLint stencilBits; static int viewx = 50; static int viewy = 24; static int viewz = 80; float rot = 0; struct ImageTexture { unsigned long sizeX; unsigned long sizeY; char *data; }; typedef struct ImageTexture ImageTexture; //struktur data untuk const GLfloat light_ambient[] = { 0.3f, 0.3f, 0.3f, 1.0f }; const GLfloat light_diffuse[] = { 0.7f, 0.7f, 0.7f, 1.0f }; const GLfloat light_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f }; const GLfloat light_position[] = { 1.0f, 1.0f, 1.0f, 1.0f }; const GLfloat light_ambient2[] = { 0.3f, 0.3f, 0.3f, 0.0f }; const GLfloat light_diffuse2[] = { 0.3f, 0.3f, 0.3f, 0.0f }; const GLfloat mat_ambient[] = { 0.8f, 0.8f, 0.8f, 1.0f }; const GLfloat mat_diffuse[] = { 0.8f, 0.8f, 0.8f, 1.0f }; const GLfloat mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f }; const GLfloat high_shininess[] = { 100.0f }; unsigned int LoadTextureFromBmpFile(char *filename); //train 2D //class untuk terain 2D class Terrain { private: int w; //Width int l; //Length float** hs; //Heights Vec3f** normals; bool computedNormals; //Whether normals is up-to-date public: Terrain(int w2, int l2) { w = w2; l = l2; hs = new float*[l]; for (int i = 0; i < l; i++) { hs[i] = new float[w]; } normals = new Vec3f*[l]; for (int i = 0; i < l; i++) { normals[i] = new Vec3f[w]; } computedNormals = false; } ~Terrain() { for (int i = 0; i < l; i++) { delete[] hs[i]; } delete[] hs; for (int i = 0; i < l; i++) { delete[] normals[i]; } delete[] normals; } int width() { return w; } int length() { return l; } //Sets the height at (x, z) to y void setHeight(int x, int z, float y) { hs[z][x] = y; computedNormals = false; } //Returns the height at (x, z) float getHeight(int x, int z) { return hs[z][x]; } //Computes the normals, if they haven't been computed yet void computeNormals() { if (computedNormals) { return; } //Compute the rough version of the normals Vec3f** normals2 = new Vec3f*[l]; for (int i = 0; i < l; i++) { normals2[i] = new Vec3f[w]; } for (int z = 0; z < l; z++) { for (int x = 0; x < w; x++) { Vec3f sum(0.0f, 0.0f, 0.0f); Vec3f out; if (z > 0) { out = Vec3f(0.0f, hs[z - 1][x] - hs[z][x], -1.0f); } Vec3f in; if (z < l - 1) { in = Vec3f(0.0f, hs[z + 1][x] - hs[z][x], 1.0f); } Vec3f left; if (x > 0) { left = Vec3f(-1.0f, hs[z][x - 1] - hs[z][x], 0.0f); } Vec3f right; if (x < w - 1) { right = Vec3f(1.0f, hs[z][x + 1] - hs[z][x], 0.0f); } if (x > 0 && z > 0) { sum += out.cross(left).normalize(); } if (x > 0 && z < l - 1) { sum += left.cross(in).normalize(); } if (x < w - 1 && z < l - 1) { sum += in.cross(right).normalize(); } if (x < w - 1 && z > 0) { sum += right.cross(out).normalize(); } normals2[z][x] = sum; } } //Smooth out the normals const float FALLOUT_RATIO = 0.5f; for (int z = 0; z < l; z++) { for (int x = 0; x < w; x++) { Vec3f sum = normals2[z][x]; if (x > 0) { sum += normals2[z][x - 1] * FALLOUT_RATIO; } if (x < w - 1) { sum += normals2[z][x + 1] * FALLOUT_RATIO; } if (z > 0) { sum += normals2[z - 1][x] * FALLOUT_RATIO; } if (z < l - 1) { sum += normals2[z + 1][x] * FALLOUT_RATIO; } if (sum.magnitude() == 0) { sum = Vec3f(0.0f, 1.0f, 0.0f); } normals[z][x] = sum; } } for (int i = 0; i < l; i++) { delete[] normals2[i]; } delete[] normals2; computedNormals = true; } //Returns the normal at (x, z) Vec3f getNormal(int x, int z) { if (!computedNormals) { computeNormals(); } return normals[z][x]; } }; //end class //Loads a terrain from a heightmap. The heights of the terrain range from //-height / 2 to height / 2. //load terain di procedure inisialisasi Terrain* loadTerrain(const char* filename, float height) { Image* image = loadBMP(filename); Terrain* t = new Terrain(image->width, image->height); for (int y = 0; y < image->height; y++) { for (int x = 0; x < image->width; x++) { unsigned char color = (unsigned char) image->pixels[3 * (y * image->width + x)]; float h = height * ((color / 255.0f) - 0.5f); t->setHeight(x, y, h); } } delete image; t->computeNormals(); return t; } float _angle = 60.0f; //buat tipe data terain Terrain* _terrain; Terrain* _terrainTanah; Terrain* _terrainAir; void cleanup() { delete _terrain; delete _terrainTanah; } //mengambil gambar BMP int ImageLoad(char *filename, ImageTexture *imageTex) { FILE *file; unsigned long size; // ukuran image dalam bytes unsigned long i; // standard counter. unsigned short int plane; // number of planes in image unsigned short int bpp; // jumlah bits per pixel char temp; // temporary color storage for var warna sementara untuk memastikan filenya ada if ((file = fopen(filename, "rb")) == NULL) { printf("File Not Found : %s\n", filename); return 0; } // mencari file header bmp fseek(file, 18, SEEK_CUR); // read the width if ((i = fread(&imageTex->sizeX, 4, 1, file)) != 1) { printf("Error reading width from %s.\n", filename); return 0; } if ((i = fread(&imageTex->sizeY, 4, 1, file)) != 1) { printf("Error reading height from %s.\n", filename); return 0; } size = imageTex->sizeX * imageTex->sizeY * 3; // read the planes if ((fread(&plane, 2, 1, file)) != 1) { printf("Error reading planes from %s.\n", filename); return 0; } if (plane != 1) { printf("Planes from %s is not 1: %u\n", filename, plane); return 0; } // read the bitsperpixel if ((i = fread(&bpp, 2, 1, file)) != 1) { printf("Error reading bpp from %s.\n", filename); return 0; } if (bpp != 24) { printf("Bpp from %s is not 24: %u\n", filename, bpp); return 0; } // seek past the rest of the bitmap header. fseek(file, 24, SEEK_CUR); // read the data. imageTex->data = (char *) malloc(size); if (imageTex->data == NULL) { printf("Error allocating memory for color-corrected image data"); return 0; } if ((i = fread(imageTex->data, size, 1, file)) != 1) { printf("Error reading image data from %s.\n", filename); return 0; } for (i = 0; i < size; i += 3) { // membalikan semuan nilai warna (gbr - > rgb) temp = imageTex->data[i]; imageTex->data[i] = imageTex->data[i + 2]; imageTex->data[i + 2] = temp; } // we're done. return 1; } //mengambil tekstur ImageTexture * loadTexture() { ImageTexture *image1; // alokasi memmory untuk tekstur image1 = (ImageTexture *) malloc(sizeof(ImageTexture)); if (image1 == NULL) { printf("Error allocating space for image"); exit(0); } //pic.bmp is a 64x64 picture if (!ImageLoad("water.bmp", image1)) { exit(1); } return image1; } void initRendering() { glEnable(GL_DEPTH_TEST); glEnable(GL_COLOR_MATERIAL); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_NORMALIZE); glShadeModel(GL_SMOOTH); } void drawScene() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); float scale = 500.0f / max(_terrain->width() - 1, _terrain->length() - 1); glScalef(scale, scale, scale); glTranslatef(-(float) (_terrain->width() - 1) / 2, 0.0f, -(float) (_terrain->length() - 1) / 2); glColor3f(0.3f, 0.9f, 0.0f); //glColor3f(0.5f, 0.9f, 0.0f); for (int z = 0; z < _terrain->length() - 1; z++) { //Makes OpenGL draw a triangle at every three consecutive vertices glBegin(GL_TRIANGLE_STRIP); for (int x = 0; x < _terrain->width(); x++) { Vec3f normal = _terrain->getNormal(x, z); glNormal3f(normal[0], normal[1], normal[2]); glVertex3f(x, _terrain->getHeight(x, z), z); normal = _terrain->getNormal(x, z + 1); glNormal3f(normal[0], normal[1], normal[2]); glVertex3f(x, _terrain->getHeight(x, z + 1), z + 1); } glEnd(); } } //untuk di display void drawSceneTanah(Terrain *terrain, GLfloat r, GLfloat g, GLfloat b) { float scale = 500.0f / max(terrain->width() - 1, terrain->length() - 1); glScalef(scale, scale, scale); glTranslatef(-(float) (terrain->width() - 1) / 2, 0.0f, -(float) (terrain->length() - 1) / 2); glColor3f(r, g, b); for (int z = 0; z < terrain->length() - 1; z++) { //Makes OpenGL draw a triangle at every three consecutive vertices glBegin(GL_TRIANGLE_STRIP); for (int x = 0; x < terrain->width(); x++) { Vec3f normal = terrain->getNormal(x, z); glNormal3f(normal[0], normal[1], normal[2]); glVertex3f(x, terrain->getHeight(x, z), z); normal = terrain->getNormal(x, z + 1); glNormal3f(normal[0], normal[1], normal[2]); glVertex3f(x, terrain->getHeight(x, z + 1), z + 1); } glEnd(); } } void update(int value) { _angle += 1.0f; if (_angle > 360) { _angle -= 360; } glutPostRedisplay(); glutTimerFunc(25, update, 0); } GLuint texture[40]; void freetexture(GLuint texture) { glDeleteTextures(1, &texture); } GLuint loadtextures(const char *filename, int width, int height) { GLuint texture; unsigned char *data; FILE *file; file = fopen(filename, "rb"); if (file == NULL) return 0; data = (unsigned char *) malloc(width * height * 3); fread(data, width * height * 3, 1, file); fclose(file); glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT ); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT ); gluBuild2DMipmaps(GL_TEXTURE_2D, 3, width, height, GL_RGB, GL_UNSIGNED_BYTE, data); data = NULL; return texture; } void rumah() { glPushMatrix(); glTranslatef(-5.0f,0.0f,-3.0f); //atap kanan glBegin(GL_POLYGON); glColor3f(1.0f, 0.4f, 0.0f); glTexCoord2f(1.0,0.0);glVertex3f(0.75,0.7,0.0); glTexCoord2f(1.0,1.0);glVertex3f(1.5,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(1.5,0.5,-1.8); glTexCoord2f(0.0,0.0);glVertex3f(0.75,0.7,-1.8); glEnd(); //atap kiri glBegin(GL_POLYGON); glTexCoord2f(1.0,0.0);glVertex3f(0.75,0.7,0.0); glTexCoord2f(1.0,1.0);glVertex3f(0.0,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(0.0,0.5,-1.8); glTexCoord2f(0.0,0.0);glVertex3f(0.75,0.7,-1.8); glEnd(); //bagian atas glBegin(GL_POLYGON); glColor3f(1.0f,0.4f,0.0f); glVertex3f(0.0,0.5,0.0); glVertex3f(1.5,0.5,0.0); glVertex3f(1.5,0.5,-1.8); glVertex3f(0.0,0.5,-1.8); glEnd(); glBindTexture(GL_TEXTURE_2D,texture[11]); //bagian belakang glBegin(GL_POLYGON); //glColor3f(0.1f,0.0f,0.0f); glTexCoord2f(0.0,0.0);glVertex3f(0.0,0.0,-1.8); glTexCoord2f(1.0,0.0);glVertex3f(1.5,0.0,-1.8); glTexCoord2f(1.0,1.0);glVertex3f(1.5,0.5,-1.8); glTexCoord2f(0.0,1.0);glVertex3f(0.0,0.5,-1.8); glEnd(); //bagian kanan glBegin(GL_POLYGON); glTexCoord2f(1.0,0.0);glVertex3f(0.0,0.0,0.0); glTexCoord2f(1.0,1.0);glVertex3f(0.0,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(0.0,0.5,-1.8); glTexCoord2f(0.0,0.0);glVertex3f(0.0,0.0,-1.8); glEnd(); //bagian tutup kanan glBegin(GL_POLYGON); glTexCoord2f(0.0,0.0);glVertex3f(0.0,0.0,0.0); glTexCoord2f(1.0,0.0);glVertex3f(0.5,0.0,0.0); glTexCoord2f(1.0,1.0);glVertex3f(0.5,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(0.0,0.5,0.0); glEnd(); //bagian kiri glBegin(GL_POLYGON); glTexCoord2f(1.0,0.0);glVertex3f(1.5,0.0,0.0); glTexCoord2f(1.0,1.0);glVertex3f(1.5,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(1.5,0.5,-1.8); glTexCoord2f(0.0,0.0);glVertex3f(1.5,0.0,-1.8); glEnd(); //bagian tutup kiri glBegin(GL_POLYGON); glTexCoord2f(0.0,0.0);glVertex3f(1.5,0.0,0.0); glTexCoord2f(1.0,0.0);glVertex3f(1,0.0,0.0); glTexCoord2f(1.0,1.0);glVertex3f(1,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(1.5,0.5,0.0); glEnd(); glBindTexture(GL_TEXTURE_2D,texture[10]); //pintu glBegin(GL_POLYGON); glTexCoord2f(0.0,0.0);glVertex3f(0.5,0.0,0.0); glTexCoord2f(1.0,0.0);glVertex3f(1,0.0,0.0); glTexCoord2f(1.0,1.0);glVertex3f(1,0.5,0.0); glTexCoord2f(0.0,1.0);glVertex3f(0.5,0.5,0.0); glEnd(); glPopMatrix(); } void pohon(void){ //batang GLUquadricObj *pObj; pObj =gluNewQuadric(); gluQuadricNormals(pObj, GLU_SMOOTH); glPushMatrix(); glColor3ub(104,70,14); glRotatef(270,1,0,0); gluCylinder(pObj, 4, 0.7, 30, 25, 25); glPopMatrix(); } //ranting void ranting(void){ GLUquadricObj *pObj; pObj =gluNewQuadric(); gluQuadricNormals(pObj, GLU_SMOOTH); glPushMatrix(); glColor3ub(104,70,14); glTranslatef(0,27,0); glRotatef(330,1,0,0); gluCylinder(pObj, 0.6, 0.1, 15, 25, 25); glPopMatrix(); //daun glPushMatrix(); glColor3ub(18,118,13); glScaled(5, 5, 5); glTranslatef(0,7,3); glutSolidDodecahedron(); glPopMatrix(); } //Tanah void tanah(void) { glPushMatrix(); glBindTexture(GL_TEXTURE_2D, texture[2]); //glColor4f(1, 1, 1, 1); glRotatef(180, 0, 0, 1); glScalef(80, 0, 120); glBegin(GL_QUADS); glTexCoord2f(1, 0); glVertex3f(-1, -1, 1); glTexCoord2f(1, 1); glVertex3f(-1, 1, -0.0); glTexCoord2f(0, 1); glVertex3f(1, 1, -0.0); glTexCoord2f(0, 0); glVertex3f(1, -1, 1); glEnd(); glPopMatrix(); } void awan(void){ glPushMatrix(); glColor3ub(153, 223, 255); glutSolidSphere(10, 50, 50); glPopMatrix(); glPushMatrix(); glTranslatef(10,0,1); glutSolidSphere(5, 50, 50); glPopMatrix(); glPushMatrix(); glTranslatef(-2,6,-2); glutSolidSphere(7, 50, 50); glPopMatrix(); glPushMatrix(); glTranslatef(-10,-3,0); glutSolidSphere(7, 50, 50); glPopMatrix(); glPushMatrix(); glTranslatef(6,-2,2); glutSolidSphere(7, 50, 50); glPopMatrix(); } void display(void) { glClearStencil(0); //clear the stencil buffer glClearDepth(1.0f); glClearColor(0.0, 0.6, 0.8, 1); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); //clear the buffers glLoadIdentity(); // reset posisi //gluLookAt(viewx, viewy, viewz, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); gluLookAt(viewx+50, viewy+200, viewz+200, 0.0, 10.0, 5.0, 0.0, 1.0, 0.0); glPushMatrix(); drawScene(); glPopMatrix(); glPushMatrix(); drawSceneTanah(_terrainAir, 0.0f, 0.1f, 0.5f); glPopMatrix(); for (home=0;home<=7;home=home+3) { //rumah menghadap jembatan glPushMatrix(); glBindTexture(GL_TEXTURE_2D,texture[12]); glPushMatrix(); glScaled(20,50,20); glTranslatef(10-home,0.2,-1); glColor3f(0.2,0.4,0.5); rumah(); glPopMatrix(); } for (home=0;home<=7;home=home+3) { // rumah menghadap kanan glPushMatrix(); glBindTexture(GL_TEXTURE_2D,texture[12]); glScaled(20, 50, 20); glTranslatef(0, 0.2, -8+home); glRotatef(90,0,1,0); glColor3f(0.2,0.4,0.5); rumah(); glPopMatrix(); } for (home=0;home<=17;home=home+7) { // rumah menghadap kanan belakang glPushMatrix(); glBindTexture(GL_TEXTURE_2D,texture[12]); glScaled(20, 50, 20); glTranslatef(-7.5, 0.2, -11.3+home); glRotatef(90,0,1,0); glColor3f(0.2,0.4,0.5); rumah(); glPopMatrix(); } for (home=0;home<=5;home=home+3) { glPushMatrix(); glBindTexture(GL_TEXTURE_2D,texture[12]); glScaled(20, 50, 20); glTranslatef(6.5, 0.2, 9-home); glRotatef(260,0,1,0); glColor3f(0.2,0.4,0.5); rumah(); glPopMatrix(); } glPopMatrix(); //pohon pojok kanan bawah glPushMatrix(); glTranslatef(150,-13,150); glScalef(1.2, 2, 1.0); glRotatef(70,0,1,0); pohon(); //ranting1 ranting(); // ranting kanan //ranting2 glPushMatrix(); glScalef(1.5, 1.5, 1.5); glTranslatef(0,25,25); glRotatef(250,1,0,0); ranting(); glPopMatrix(); //ranting3 glPushMatrix(); glScalef(1.8, 1.8, 1.8); glTranslatef(0,-6,21.5); glRotatef(-55,1,0,0); ranting(); glPopMatrix(); glPopMatrix(); //pohon tengah glPushMatrix(); glTranslatef(150,-13,0); glScalef(1.2, 2, 1.0); glRotatef(90,0,1,0); pohon(); //ranting1 ranting(); // ranting kanan //ranting2 glPushMatrix(); glScalef(1.5, 1.5, 1.5); glTranslatef(0,25,25); glRotatef(250,1,0,0); ranting(); glPopMatrix(); //ranting3 glPushMatrix(); glScalef(1.8, 1.8, 1.8); glTranslatef(0,-6,21.5); glRotatef(-55,1,0,0); ranting(); glPopMatrix(); glPopMatrix(); //pohon bawah glPushMatrix(); glTranslatef(-80,-13,150); glScalef(1.2, 2, 1.0); glRotatef(360,0,1,0); pohon(); //ranting1 ranting(); // ranting kanan //ranting2 glPushMatrix(); glScalef(1.5, 1.5, 1.5); glTranslatef(0,25,25); glRotatef(250,1,0,0); ranting(); glPopMatrix(); //ranting3 glPushMatrix(); glScalef(1.8, 1.8, 1.8); glTranslatef(0,-6,21.5); glRotatef(-55,1,0,0); ranting(); glPopMatrix(); glPopMatrix(); glPopMatrix(); //pohon kiri pinggir glPushMatrix(); glTranslatef(-200,-13,50); glScalef(1.2, 2, 1.0); glRotatef(120,0,1,0); pohon(); //ranting1 ranting(); // ranting kanan //ranting2 glPushMatrix(); glScalef(1.5, 1.5, 1.5); glTranslatef(0,25,25); glRotatef(250,1,0,0); ranting(); glPopMatrix(); //ranting3 glPushMatrix(); glScalef(1.8, 1.8, 1.8); glTranslatef(0,-6,21.5); glRotatef(-55,1,0,0); ranting(); glPopMatrix(); glPopMatrix(); //awan glPushMatrix(); glTranslatef(-75, 110, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-45, 110, -115); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-50, 120, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-140, 90, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-155, 90, -115); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-130, 110, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-190, 110, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-175, 120, -115); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-200, 100, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-30, 110, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-35, 95, -115); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-20, 90, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(-80, 90, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(220, 90, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(180, 90, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(190, 110, -120); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glPushMatrix(); glTranslatef(125, 110, -115); glScalef(1.8, 1.0, 1.0); awan(); glPopMatrix(); glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); //disable the color mask glDepthMask(GL_FALSE); //disable the depth mask glEnable(GL_STENCIL_TEST); //enable the stencil testing glStencilFunc(GL_ALWAYS, 1, 0xFFFFFFFF); glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE); //set the stencil buffer to replace our next lot of data //ground tanah(); //set the data plane to be replaced glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); //enable the color mask glDepthMask(GL_TRUE); //enable the depth mask glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF); glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); //set the stencil buffer to keep our next lot of data glDisable(GL_DEPTH_TEST); //disable depth testing of the reflection // glPopMatrix(); glEnable(GL_DEPTH_TEST); //enable the depth testing glDisable(GL_STENCIL_TEST); //disable the stencil testing //end of ground glEnable(GL_BLEND); //enable alpha blending glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); //set the blending function glRotated(1, 0, 0, 0); glutSwapBuffers(); glFlush(); rot++; angle++; } void init(void) { initRendering(); glEnable(GL_DEPTH_TEST); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glDepthFunc(GL_LESS); glEnable(GL_NORMALIZE); glEnable(GL_COLOR_MATERIAL); glShadeModel(GL_SMOOTH); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); //glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); _terrain = loadTerrain("heightmap.bmp", 20); _terrainTanah = loadTerrain("heightmapTanah.bmp", 20); _terrainAir = loadTerrain("heightmapAir.bmp", 20); texture[2] = loadtextures("rumput1.bmp",600,450); texture[10] = loadtextures("pintu.bmp",340,683); texture[11] = loadtextures("dinding.bmp",128,129); texture[12] = loadtextures("atap.bmp",600,597); //binding texture ImageTexture *image2 = loadTexture(); if (image2 == NULL) { printf("Image was not returned from loadTexture\n"); exit(0); } glPixelStorei(GL_UNPACK_ALIGNMENT, 1); // Generate texture/ membuat texture glGenTextures(3, texture); //binding texture untuk membuat texture 2D glBindTexture(GL_TEXTURE_2D, texture[0]); //menyesuaikan ukuran textur ketika image lebih besar dari texture glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // //menyesuaikan ukuran textur ketika image lebih kecil dari texture glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); // glTexImage2D(GL_TEXTURE_2D, 0, 3, image2->sizeX, image2->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, image2->data); } static void keyB(int key, int x, int y) { switch (key) { case GLUT_KEY_HOME: viewy++; break; case GLUT_KEY_END: viewy--; break; case GLUT_KEY_UP: viewz--; break; case GLUT_KEY_DOWN: viewz++; break; case GLUT_KEY_RIGHT: viewx++; break; case GLUT_KEY_LEFT: viewx--; break; case GLUT_KEY_F1: { glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient); glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse); } ; break; case GLUT_KEY_F2: { glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient2); glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse2); glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse); } ; break; default: break; } } void keyboard(unsigned char key, int x, int y) { if (key == 'm') { muter = muter - 1; if (muter > 360.0) muter = muter - 360.0; } if (key == 'n') { muter = muter + 1; if (muter > 360.0) muter = muter - 360.0; } if (key == 'q') { viewz++; } if (key == 'e') { viewz--; } if (key == 's') { viewy--; } if (key == 'w') { viewy++; } } void reshape(int w, int h) { glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(60, (GLfloat) w / (GLfloat) h, 0.1, 1000.0); glMatrixMode(GL_MODELVIEW); } int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_STENCIL | GLUT_DEPTH); //add a stencil buffer to the window glutInitWindowSize(800, 600); glutInitWindowPosition(100, 100); glutCreateWindow("Pedesaan"); init(); glutDisplayFunc(display); glutIdleFunc(display); glutReshapeFunc(reshape); glutSpecialFunc(keyB); glutKeyboardFunc(keyboard); glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess); glColorMaterial(GL_FRONT, GL_DIFFUSE); glutMainLoop(); return 0; }
[ "mirah.anugraheny@gmail.com" ]
mirah.anugraheny@gmail.com
d75b0481a379544ede66d18888f92f835a2aeaff
786de89be635eb21295070a6a3452f3a7fe6712c
/pypdsdata/tags/V01-01-07/pyext/types/evr/IOConfigV1.h
7f4f6fdaff4142802dad855063a0d60d4f2561b3
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,472
h
#ifndef PYPDSDATA_EVRDATA_IOCONFIGV1_H #define PYPDSDATA_EVRDATA_IOCONFIGV1_H //-------------------------------------------------------------------------- // File and Version Information: // $Id$ // // Description: // Class EvrData_IOConfigV1. // //------------------------------------------------------------------------ //----------------- // C/C++ Headers -- //----------------- //---------------------- // Base Class Headers -- //---------------------- #include "../PdsDataType.h" //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "pdsdata/psddl/evr.ddl.h" //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ // --------------------- // -- Class Interface -- // --------------------- namespace pypdsdata { namespace EvrData { /// @addtogroup pypdsdata /** * @ingroup pypdsdata * * This software was developed for the LUSI project. If you use all or * part of it, please give an appropriate acknowledgment. * * @version $Id$ * * @author Andrei Salnikov */ class IOConfigV1 : public PdsDataType<IOConfigV1,Pds::EvrData::IOConfigV1> { public: typedef PdsDataType<IOConfigV1,Pds::EvrData::IOConfigV1> BaseType; /// Initialize Python type and register it in a module static void initType( PyObject* module ); }; } // namespace EvrData } // namespace pypdsdata #endif // PYPDSDATA_EVRDATA_IOCONFIGV1_H
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
3a557ed42f68f3d3c62a8ec5a234f1d98d2d5eee
edd14bdc3f61b68ec4d6ca5ffba27c8c1538fdb5
/P07/main.cpp
fd5972e05bdd7b9d29d7b29c03f96da9239efecf
[]
no_license
Kaixi26/CG_2020
51e14675d72a3ac85f80db48bc914858d118439f
464f102f44cadd53a373a378c66de8d475a7142b
refs/heads/master
2022-05-24T19:36:18.357651
2020-05-04T14:29:09
2020-05-04T14:29:09
239,469,411
0
1
null
null
null
null
UTF-8
C++
false
false
10,275
cpp
#include<stdio.h> #include<stdlib.h> #define _USE_MATH_DEFINES #include <math.h> #include <vector> #include <IL/il.h> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glew.h> #include <GL/glut.h> #endif #include <time.h> int currCam = 0; struct { float camX = 0; float camY = 30; float camZ = 40; } CAM_FLOAT; struct { float x = 100; float y = 1; float z = 100; float angle = 0; } CAM_FPS; int startX, startY, tracking = 0; int alpha = 0, beta = 45, r = 50; unsigned int t; int img_width; int img_height; unsigned char* img_data; float* vertexB = NULL; int size; GLuint buffers[1]; void printFramerate(){ static int frames = 0; static time_t lastTime; static time_t currentTime; if(frames == 0){ time(&lastTime); } time(&currentTime); time_t tmp = currentTime - lastTime; frames++; if(gmtime(&tmp)->tm_sec >= 1){ printf("FPS: %d\n", frames); frames = 0; } } float getHeight(int x, int z){ return ((float)img_data[x + img_height*z])/(255.0f/60.0f); } float getHeightf(float x, float z){ float x1 = floor(x); float x2 = x1 + 1; float z1 = floor(z); float z2 = z1 + 1; float fx = x - x1; float fz = z - z1; float h_x1_z = getHeight(x1, z1) * (1 - fz) + getHeight(x1, z2) * fz; float h_x2_z = getHeight(x2, z1) * (1 - fz) + getHeight(x2, z2) * fz; return h_x1_z * (1 - fx) + h_x2_z * fx; } void changeSize(int w, int h) { // Prevent a divide by zero, when window is too short // (you cant make a window with zero width). if(h == 0) h = 1; // compute window's aspect ratio float ratio = w * 1.0 / h; // Reset the coordinate system before modifying glMatrixMode(GL_PROJECTION); glLoadIdentity(); // Set the viewport to be the entire window glViewport(0, 0, w, h); // Set the correct perspective gluPerspective(45,ratio,1,1000); // return to the model view matrix mode glMatrixMode(GL_MODELVIEW); } void processKeys(unsigned char key, int xx, int yy) { switch(key){ case 'w': CAM_FPS.x += cos(CAM_FPS.angle); CAM_FPS.z += sin(CAM_FPS.angle); break; case 's': CAM_FPS.x -= cos(CAM_FPS.angle); CAM_FPS.z -= sin(CAM_FPS.angle); break; case 'a': CAM_FPS.x -= cos(CAM_FPS.angle + M_PI_2); CAM_FPS.z -= sin(CAM_FPS.angle + M_PI_2); break; case 'd': CAM_FPS.x += cos(CAM_FPS.angle + M_PI_2); CAM_FPS.z += sin(CAM_FPS.angle + M_PI_2); break; case 'q': CAM_FPS.angle -= M_PI/32; break; case 'e': CAM_FPS.angle += M_PI/32; break; case '+': CAM_FPS.y += 0.5; break; case '-': CAM_FPS.y -=0.5; break; case 'c': currCam = !currCam; } // put code to process regular keys in here } void processMouseButtons(int button, int state, int xx, int yy) { if(currCam != 0) return; if (state == GLUT_DOWN) { startX = xx; startY = yy; if (button == GLUT_LEFT_BUTTON) tracking = 1; else if (button == GLUT_RIGHT_BUTTON) tracking = 2; else tracking = 0; } else if (state == GLUT_UP) { if (tracking == 1) { alpha += (xx - startX); beta += (yy - startY); } else if (tracking == 2) { r -= yy - startY; if (r < 3) r = 3.0; } tracking = 0; } } void processMouseMotion(int xx, int yy) { if(currCam != 0) return; int deltaX, deltaY; int alphaAux, betaAux; int rAux; if (!tracking) return; deltaX = xx - startX; deltaY = yy - startY; if (tracking == 1) { alphaAux = alpha + deltaX; betaAux = beta + deltaY; if (betaAux > 85.0) betaAux = 85.0; else if (betaAux < -85.0) betaAux = -85.0; rAux = r; } else if (tracking == 2) { alphaAux = alpha; betaAux = beta; rAux = r - deltaY; if (rAux < 3) rAux = 3; } CAM_FLOAT.camX = rAux * sin(alphaAux * 3.14 / 180.0) * cos(betaAux * 3.14 / 180.0); CAM_FLOAT.camZ = rAux * cos(alphaAux * 3.14 / 180.0) * cos(betaAux * 3.14 / 180.0); CAM_FLOAT.camY = rAux * sin(betaAux * 3.14 / 180.0); } void draw_axis(){ glBegin(GL_LINES); // X axis in red glColor3f(1.0f, 0.0f, 0.0f); glVertex3f( 0.0f, 0.0f, 0.0f); glVertex3f( 100.0f, 0.0f, 0.0f); // Y Axis in Green glColor3f(0.0f, 1.0f, 0.0f); glVertex3f(0.0f, 0.0f, 0.0f); glVertex3f(0.0f, 100.0f, 0.0f); // Z Axis in Blue glColor3f(0.0f, 0.0f, 1.0f); glVertex3f(0.0f, 0.0f, 0.0f); glVertex3f(0.0f, 0.0f, 100.0f); glEnd(); } // Draws a tree with base in (0,0,0) and upward direction in the Y axis void draw_tree(){ glPushMatrix(); glRotatef(90, -1, 0, 0); glColor3f(1, 0.5, 0); glutSolidCone(2, 15, 10, 10); glColor3f(0, 1, 0); glTranslatef(0, 0, 5); glutSolidCone(5, 15, 10, 10); glPopMatrix(); } void draw_trees(int N){ int drawn = 0; float sup_lim = 100; float inf_lim = -100; float sqr_max_radius = 50*50; while(drawn < N){ float x = ((float)rand() / (float)INT_MAX) * (sup_lim + abs(inf_lim)) + inf_lim; float z = ((float)rand() / (float)INT_MAX) * (sup_lim + abs(inf_lim)) + inf_lim; if(x*x + z*z < sqr_max_radius) continue; glPushMatrix(); float tx = x + img_width/2; float tz = z + img_height/2; glTranslatef(tx, getHeightf(tx,tz), tz); draw_tree(); glPopMatrix(); drawn++; } } // Draws a teapot with base in aproximatly (0,0,0) and upward direction in the Y axis pointing to the X axis void draw_teapot(float size){ glPushMatrix(); glTranslatef(0, size/1.25, 0); glutSolidTeapot(size); glPopMatrix(); } void draw_inner_teapots(int N, float radius, float size, float angle){ glPushMatrix(); glColor3f(0, 0, 1); float d_angle = 360.0/(float)N; for(int i=0; i<N; i++){ glPushMatrix(); float ang = i*d_angle*(M_PI/180.0f) + angle; float x = cos(ang)*radius + img_width/2; float z = sin(ang)*radius + img_height/2; glTranslatef(x, getHeightf(x, z), z); glRotatef(ang * (180.0f/M_PI), 0, -1, 0); draw_teapot(size); glPopMatrix(); } glPopMatrix(); } void draw_outer_teapots(int N, float radius, float size, float angle){ glPushMatrix(); glColor3f(1, 0, 0); float d_angle = 360.0/(float)N; for(int i=0; i<N; i++){ glPushMatrix(); float ang = i*d_angle*(M_PI/180.0f) + angle; float x = cos(-ang)*radius + img_width/2; float z = sin(-ang)*radius + img_height/2; glTranslatef(x, getHeightf(x, z), z); glRotatef(ang * (180.0f/M_PI) , 0, 1, 0); draw_teapot(size); glPopMatrix(); } glPopMatrix(); } void drawTerrain() { glPushMatrix(); //glTranslatef((-(float)img_width)/2.0f, -10, -((float)img_height)/2.0f); glBindBuffer(GL_ARRAY_BUFFER, buffers[0]); glVertexPointer(3, GL_FLOAT, 0, 0); glDrawArrays(GL_TRIANGLES, 0, size); glPopMatrix(); } void setupCamera(){ if(currCam == 0) gluLookAt( CAM_FLOAT.camX + img_width/2 , CAM_FLOAT.camY , CAM_FLOAT.camZ + img_height/2 , img_height/2,0.0,img_width/2 , 0.0f,1.0f,0.0f); else if(currCam == 1){ gluLookAt( CAM_FPS.x , getHeightf(CAM_FPS.x, CAM_FPS.z) + CAM_FPS.y , CAM_FPS.z , CAM_FPS.x + cos(CAM_FPS.angle) , getHeightf(CAM_FPS.x, CAM_FPS.z) + CAM_FPS.y , CAM_FPS.z + sin(CAM_FPS.angle) , 0, 1, 0); } } float teapot_angle = 0; void renderScene(void) { srand(0); float pos[4] = {-1.0, 1.0, 1.0, 0.0}; glClearColor(0.0f,0.0f,0.0f,0.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); setupCamera(); draw_axis(); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glColor3f(1,1,1); drawTerrain(); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); glColor3f(0,1,0); //printFramerate(); draw_trees(100); draw_inner_teapots(10, 20, 2, teapot_angle); draw_outer_teapots(10, 60, 2, teapot_angle); glColor3f(1.0, 170.0/255.0, 170.0/255.0); glTranslatef(img_width/2, getHeightf(img_width/2,img_height/2), img_height/2); glutSolidTorus(2, 5, 10, 10); teapot_angle += 0.01; teapot_angle = fmod(teapot_angle, 360.0); // End of frame glutSwapBuffers(); } void loadImage(){ ilGenImages(1, &t); ilBindImage(t); ilLoadImage((ILstring)"terreno.jpg"); ilConvertImage(IL_LUMINANCE, IL_UNSIGNED_BYTE); img_width = ilGetInteger(IL_IMAGE_WIDTH); img_height = ilGetInteger(IL_IMAGE_HEIGHT); img_data = ilGetData(); } void init() { // Load the height map "terreno.jpg" loadImage(); // Build the vertex arrays size = (img_width-1)*(img_height-1)*6*3; vertexB = (float*)calloc(size, sizeof(float)); int tmp = 0; for(int i=0; i<(img_width-1); i++) for(int j=0; j<(img_width-1); j++){ vertexB[tmp++] = i; vertexB[tmp++] = getHeight(i,j); vertexB[tmp++] = j; vertexB[tmp++] = i; vertexB[tmp++] = getHeight(i,j+1); vertexB[tmp++] = j+1; vertexB[tmp++] = i+1; vertexB[tmp++] = getHeight(i+1,j+1); vertexB[tmp++] = j+1; vertexB[tmp++] = i; vertexB[tmp++] = getHeight(i,j); vertexB[tmp++] = j; vertexB[tmp++] = i+1; vertexB[tmp++] = getHeight(i+1,j+1); vertexB[tmp++] = j+1; vertexB[tmp++] = i+1; vertexB[tmp++] = getHeight(i+1,j); vertexB[tmp++] = j; } printf("%d %d\n", size, tmp); // OpenGL settings glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); glEnableClientState(GL_VERTEX_ARRAY); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); glGenBuffers(1, buffers); glBindBuffer(GL_ARRAY_BUFFER,buffers[0]); glVertexPointer(3,GL_FLOAT,0,0); glBufferData(GL_ARRAY_BUFFER, tmp * sizeof(float), vertexB, GL_STATIC_DRAW); } int main(int argc, char **argv) { // init GLUT and the window glutInit(&argc, argv); glutInitDisplayMode(GLUT_DEPTH|GLUT_DOUBLE|GLUT_RGBA); glutInitWindowPosition(100,100); glutInitWindowSize(320,320); glutCreateWindow("CG@DI-UM"); // Required callback registry glutDisplayFunc(renderScene); glutIdleFunc(renderScene); glutReshapeFunc(changeSize); // Callback registration for keyboard processing glutKeyboardFunc(processKeys); glutMouseFunc(processMouseButtons); glutMotionFunc(processMouseMotion); glewInit(); ilInit(); init(); // enter GLUT's main cycle glutMainLoop(); return 0; }
[ "jorgejg575926@gmail.com" ]
jorgejg575926@gmail.com
cd2ed8e63f843f5544bd5c9ea3757be5c0b69c2e
0f034aee2abbc0787483393396892564a4916157
/Build/libs/qCC_db/moc_ccOctreeSpinBox.cpp
2f46690b207b1b8c05eeae59e070e7884f0d9def
[]
no_license
CaptainTPS/ImageMultiView
2421ca928b7fb5131a190cc2c6b461b9a5f01a66
d6af4317c194cc6fef7a10ab42bbe566279ce2bf
refs/heads/master
2021-01-23T01:18:32.454839
2017-12-12T11:43:47
2017-12-12T11:43:47
85,897,909
0
0
null
null
null
null
UTF-8
C++
false
false
3,498
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'ccOctreeSpinBox.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../../../trunk-master/libs/qCC_db/ccOctreeSpinBox.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'ccOctreeSpinBox.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.5.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE struct qt_meta_stringdata_ccOctreeSpinBox_t { QByteArrayData data[3]; char stringdata0[31]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_ccOctreeSpinBox_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_ccOctreeSpinBox_t qt_meta_stringdata_ccOctreeSpinBox = { { QT_MOC_LITERAL(0, 0, 15), // "ccOctreeSpinBox" QT_MOC_LITERAL(1, 16, 13), // "onValueChange" QT_MOC_LITERAL(2, 30, 0) // "" }, "ccOctreeSpinBox\0onValueChange\0" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_ccOctreeSpinBox[] = { // content: 7, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: name, argc, parameters, tag, flags 1, 1, 19, 2, 0x09 /* Protected */, // slots: parameters QMetaType::Void, QMetaType::Int, 2, 0 // eod }; void ccOctreeSpinBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { ccOctreeSpinBox *_t = static_cast<ccOctreeSpinBox *>(_o); Q_UNUSED(_t) switch (_id) { case 0: _t->onValueChange((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } } } const QMetaObject ccOctreeSpinBox::staticMetaObject = { { &QSpinBox::staticMetaObject, qt_meta_stringdata_ccOctreeSpinBox.data, qt_meta_data_ccOctreeSpinBox, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} }; const QMetaObject *ccOctreeSpinBox::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *ccOctreeSpinBox::qt_metacast(const char *_clname) { if (!_clname) return Q_NULLPTR; if (!strcmp(_clname, qt_meta_stringdata_ccOctreeSpinBox.stringdata0)) return static_cast<void*>(const_cast< ccOctreeSpinBox*>(this)); return QSpinBox::qt_metacast(_clname); } int ccOctreeSpinBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QSpinBox::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 1) qt_static_metacall(this, _c, _id, _a); _id -= 1; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 1) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 1; } return _id; } QT_END_MOC_NAMESPACE
[ "none" ]
none
81b1d55d4db2fdab0f62c18edc074b55018575d1
f83ef53177180ebfeb5a3e230aa29794f52ce1fc
/ACE/ACE_wrappers/TAO/tao/Connection_Handler.cpp
728338137c67f89f21533082d413bc97dd0115e1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-sun-iiop" ]
permissive
msrLi/portingSources
fe7528b3fd08eed4a1b41383c88ee5c09c2294ef
57d561730ab27804a3172b33807f2bffbc9e52ae
refs/heads/master
2021-07-08T01:22:29.604203
2019-07-10T13:07:06
2019-07-10T13:07:06
196,183,165
2
1
Apache-2.0
2020-10-13T14:30:53
2019-07-10T10:16:46
null
UTF-8
C++
false
false
14,002
cpp
// -*- C++ -*- #include "tao/Connection_Handler.h" #include "tao/ORB_Core.h" #include "tao/debug.h" #include "tao/Resume_Handle.h" #include "tao/Transport.h" #include "tao/Wait_Strategy.h" #include "ace/SOCK.h" #include "ace/Reactor.h" #include "ace/os_include/sys/os_socket.h" #include "ace/Svc_Handler.h" //@@ CONNECTION_HANDLER_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK #if !defined (__ACE_INLINE__) #include "tao/Connection_Handler.inl" #endif /* __ACE_INLINE__ */ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Connection_Handler::TAO_Connection_Handler (TAO_ORB_Core *orb_core) : orb_core_ (orb_core), transport_ (0), connection_pending_ (false), is_closed_ (false) { // Put ourselves in the connection wait state as soon as we get // created this->state_changed (TAO_LF_Event::LFS_CONNECTION_WAIT, this->orb_core_->leader_follower ()); } TAO_Connection_Handler::~TAO_Connection_Handler (void) { //@@ CONNECTION_HANDLER_DESTRUCTOR_ADD_HOOK } int TAO_Connection_Handler::shared_open (void) { // This reference counting is related to asynch connections. It // should probably be managed by the ACE_Strategy_Connector, since // that's really the reference being managed here. also, whether // open ultimately succeeds or fails, the connection attempted is // ending, so the reference must be removed in any case. this->cancel_pending_connection(); return 0; } int TAO_Connection_Handler::set_socket_option (ACE_SOCK &sock, int snd_size, int rcv_size) { #if !defined (ACE_LACKS_SO_SNDBUF) if (snd_size != 0 && sock.set_option (SOL_SOCKET, SO_SNDBUF, (void *) &snd_size, sizeof (snd_size)) == -1) { if (TAO_debug_level) TAOLIB_DEBUG ((LM_ERROR, ACE_TEXT ("TAO (%P|%t) - Connection_Handler::") ACE_TEXT ("set_socket_option, setting SO_SNDBUF failed ") ACE_TEXT ("'%m'\n"))); if (errno != ENOTSUP) return -1; } #endif /* !ACE_LACKS_SO_SNDBUF */ #if !defined (ACE_LACKS_SO_RCVBUF) if (rcv_size != 0 && sock.set_option (SOL_SOCKET, SO_RCVBUF, (void *) &rcv_size, sizeof (int)) == -1) { if (TAO_debug_level) TAOLIB_ERROR ((LM_ERROR, ACE_TEXT ("TAO (%P|%t) - Connection_Handler::") ACE_TEXT ("set_socket_option, setting SO_RCVBUF failed ") ACE_TEXT ("'%m'\n"))); if (errno != ENOTSUP) return -1; } #endif /* !ACE_LACKS_SO_RCVBUF */ #if defined (ACE_LACKS_SO_SNDBUF) && defined (ACE_LACKS_SO_RCVBUF) ACE_UNUSED_ARG (snd_size); ACE_UNUSED_ARG (rcv_size); #endif // Set the close-on-exec flag for that file descriptor. If the // operation fails we are out of luck (some platforms do not support // it and return -1). (void) sock.enable (ACE_CLOEXEC); return 0; } int TAO_Connection_Handler::svc_i (void) { int result = 0; if (TAO_debug_level > 0) TAOLIB_DEBUG ((LM_DEBUG, ACE_TEXT ("TAO (%P|%t) - Connection_Handler::svc_i begin\n"))); // Here we simply synthesize the "typical" event loop one might find // in a reactive handler, except that this can simply block waiting // for input. ACE_Time_Value *max_wait_time = 0; ACE_Time_Value timeout; ACE_Time_Value current_timeout; if (this->orb_core_->thread_per_connection_timeout (timeout)) { current_timeout = timeout; max_wait_time = &current_timeout; } TAO_Resume_Handle rh (this->orb_core_, ACE_INVALID_HANDLE); // We exit of the loop if // - If the ORB core is shutdown by another thread // - Or if the transport is null. This could happen if an error // occurred. // - Or if during processing a return value of -1 is received. while (!this->orb_core_->has_shutdown () && result >= 0) { // Let the transport know that it is used (void) this->transport ()->update_transport (); result = this->transport ()->handle_input (rh, max_wait_time); if (result == -1 && errno == ETIME) { // Ignore timeouts, they are only used to wake up and // shutdown. result = 0; // Reset errno to make sure we don't trip over an old value // of errno in case it is not reset when the recv() call // fails if the socket has been closed. errno = 0; } else if (result == -1) { // Something went wrong with the socket. Just quit return result; } current_timeout = timeout; if (TAO_debug_level > 0) TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler::svc_i - " "loop <%d> shutdown = %d\n", current_timeout.msec (), this->is_closed_)); if (this->is_closed_) { return result; } } if (TAO_debug_level > 0) TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler::svc_i - end\n")); return result; } void TAO_Connection_Handler::transport (TAO_Transport* transport) { this->transport_ = transport; // Enable reference counting on the event handler. this->transport_->event_handler_i ()->reference_counting_policy ().value ( ACE_Event_Handler::Reference_Counting_Policy::ENABLED); } int TAO_Connection_Handler::handle_output_eh (ACE_HANDLE, ACE_Event_Handler * eh) { // Let the transport that it is going to be used (void) this->transport ()->update_transport (); // Instantiate the resume handle here.. This will automatically // resume the handle once data is written.. TAO_Resume_Handle resume_handle (this->orb_core (), eh->get_handle ()); int return_value = 0; this->pre_io_hook (return_value); if (return_value != 0) { resume_handle.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED); return return_value; } // The default constraints are to never block. TAO::Transport::Drain_Constraints dc; if (this->transport ()->handle_output (dc) == TAO_Transport::DR_ERROR) { return_value = -1; } this->pos_io_hook (return_value); if (return_value != 0) { resume_handle.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED); } return return_value; } int TAO_Connection_Handler::handle_input_eh (ACE_HANDLE h, ACE_Event_Handler *eh) { // If we can't process upcalls just return if (!this->transport ()->wait_strategy ()->can_process_upcalls ()) { if (TAO_debug_level > 6) TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::handle_input_eh, " "not going to handle_input on transport " "because upcalls temporarily suspended on this thread\n", this->transport()->id())); // defer upcall at leader_follower if (this->transport ()->wait_strategy ()->defer_upcall (eh) != 0) { if (TAO_debug_level > 5) TAOLIB_ERROR ((LM_ERROR, "TAO (%P|%t) - Connection_Handler[%d]::handle_input_eh, " "Error deferring upcall handler[%d]\n", this->transport ()->id (), eh->get_handle ())); return -1; } // Returning 0 causes the wait strategy to exit and the leader thread // to enter the reactor's select() call. return 0; } int const result = this->handle_input_internal (h, eh); if (result == -1) { this->close_connection (); return 0; } return result; } int TAO_Connection_Handler::handle_input_internal ( ACE_HANDLE h, ACE_Event_Handler * eh) { // Let the transport know that it is used (void) this->transport ()->update_transport (); // Grab the transport id now and use the cached value for printing // since the transport could disappear by the time the thread // returns. size_t const t_id = this->transport ()->id (); if (TAO_debug_level > 6) { ACE_HANDLE const handle = eh->get_handle(); TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::handle_input_internal, " "handle = %d/%d\n", t_id, handle, h)); } TAO_Resume_Handle resume_handle (this->orb_core (), eh->get_handle ()); int return_value = 0; this->pre_io_hook (return_value); if (return_value != 0) return return_value; return_value = this->transport ()->handle_input (resume_handle); this->pos_io_hook (return_value); // Bug 1647; might need to change resume_handle's flag or // change handle_input return value. resume_handle.handle_input_return_value_hook(return_value); if (TAO_debug_level > 6) { ACE_HANDLE const handle = eh->get_handle (); TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::handle_input_internal, " "handle = %d/%d, retval = %d\n", t_id, handle, h, return_value)); } if (return_value != 0) { resume_handle.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED); } return return_value; } int TAO_Connection_Handler::close_connection_eh (ACE_Event_Handler *eh) { if (this->is_closed_) { return 1; } this->is_closed_ = true; // Save the ID for debugging messages ACE_HANDLE const handle = eh->get_handle (); size_t const id = this->transport ()->id (); if (TAO_debug_level) { TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::" "close_connection_eh, purging entry from cache\n", handle)); } this->transport ()->pre_close (); // @@ This seems silly, but if we have no reason to be in the // reactor, then we dont remove ourselves. if (this->transport ()->wait_strategy ()->is_registered ()) { ACE_Reactor *eh_reactor = eh->reactor (); if (this->orb_core_->has_shutdown () == 0) { // If the ORB is nil, get the reactor from orb_core which gets it // from LF. if (eh_reactor == 0) eh_reactor = this->transport()->orb_core()->reactor (); } // The Reactor must not be null, otherwise something else is // horribly broken. ACE_ASSERT (eh_reactor != 0); if (TAO_debug_level) { TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::" "close_connection_eh, removing from the reactor\n", handle)); } // Use id instead of handle. Why? "handle" may be invalid for RW // cases when drop_reply_on_shutdown is on, and when the // orb_core is shutting down. This means that the handler will // be left behind in the reactor which would create problems // later. Just forcefully remove them. If none exists reactor // will make things safer. ACE_HANDLE tmp_handle = handle; if (this->orb_core_->has_shutdown ()) tmp_handle = (ACE_HANDLE) id; eh_reactor->remove_handler (tmp_handle, ACE_Event_Handler::ALL_EVENTS_MASK | ACE_Event_Handler::DONT_CALL); // Also cancel any timers, we may create those for time-limited // buffering if (TAO_debug_level) { TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::" "close_connection_eh, cancel all timers\n", handle)); } eh_reactor->cancel_timer (eh); // @@ This seems silly, the reactor is a much better authority to // find out if a handle is registered... this->transport ()->wait_strategy ()->is_registered (false); } // This call should be made only after the cache and reactor are // cleaned up. This call can make upcalls to the application which // in turn can make remote calls (Bug 1551 and Bug 1482). The remote // calls from the application can try to use this handler from the // cache or from the reactor. So clean them up before this is // called. this->transport ()->send_connection_closed_notifications (); this->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED, this->orb_core_->leader_follower ()); if (TAO_debug_level) { TAOLIB_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Connection_Handler[%d]::" "close_connection_eh end\n", id)); } return 1; } /* * Comment hook to comment the base class implementations * that do nothing. Specialized versions from derived * class will directly override these methods. Add * all methods that are virtual, have do nothing implementations * within this hook for later specialization. */ //@@ CONNECTION_HANDLER_SPL_COMMENT_HOOK_START int TAO_Connection_Handler::set_dscp_codepoint (CORBA::Boolean) { return 0; } int TAO_Connection_Handler::set_dscp_codepoint (CORBA::Long) { return 0; } int TAO_Connection_Handler::release_os_resources (void) { return 0; } //@@ CONNECTION_HANDLER_SPL_COMMENT_HOOK_END void TAO_Connection_Handler::pre_io_hook (int &) { } void TAO_Connection_Handler::pos_io_hook (int &) { } int TAO_Connection_Handler::close_handler (u_long) { if (!this->is_closed_) { this->is_closed_ = true; this->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED, this->orb_core_->leader_follower ()); // If there was a pending connection cancel it. this->cancel_pending_connection (); // Purge transport from cache if it's in cache. this->transport ()->purge_entry(); } return 0; } //@@ CONNECTION_HANDLER_SPL_METHODS_ADD_HOOK TAO_END_VERSIONED_NAMESPACE_DECL
[ "lihuibin705@163.com" ]
lihuibin705@163.com
00c2fc40ac35c8ecac57a70eed54c14fc776bd5c
78fa18cd509bcf29b05b54a51275ee33bc441173
/test/tests.cpp
8638da3899706629f1f31f81e6d8e3a87f066d3a
[]
no_license
MaxCollider/1c-submission
272e9fd4c9d6f6b272d04413ba6a7424cdf66ff7
3295cfa4f15d5bb617f15b607a9182737870fabd
refs/heads/master
2023-04-01T21:54:25.735714
2021-04-09T20:01:54
2021-04-09T20:01:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
921
cpp
#include <iostream> #include <sstream> #include <string> #include <cassert> #include <decoder.hpp> void SimpleTest () { std::cout << "Running test: " << "SimpleTest" << std::endl; std::stringstream stream; std::string test_data = "The size of wchar_t is implementation-defined. AFAICR, Windows is 2 byte (UCS-2 / UTF-16, depending on Windows version), Linux is 4 byte (UTF-32). In any case, since the standard doesn't define Unicode semantics for wchar_t, using it is non-portable guesswork. Don't guess, use ICU."; stream << test_data; solution::Decoder decoder(stream); solution::CodeTree code_tree = std::move(decoder).gen_code_tree(); auto aan = code_tree.check_code("aan"); assert(aan); assert(*aan == 23); auto sfh = code_tree.check_code("sfh"); assert(sfh); assert(*sfh == 1); std::cout << "Passed" << std::endl; } int main () { SimpleTest(); }
[ "inversionspaces@vivaldi.net" ]
inversionspaces@vivaldi.net