Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions generator/skipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ deprecated: 535
NSCell.setEntryType:
...

unavailable/deprecated: 98
unavailable/deprecated: 101
NSAppearance.currentAppearance
NSApplication.context
NSBox.borderType
Expand Down Expand Up @@ -129,7 +129,7 @@ duplicate constructor signature: 76
NSIndexSet.indexSetWithIndexesInRange:
...

unavailable: 66
unavailable: 65
NSAlert.alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:
NSBitmapImageRep.initWithFocusedViewRect:
NSCachedImageRep.initWithSize:depth:separate:alpha:
Expand Down Expand Up @@ -158,7 +158,6 @@ unavailable: 66
NSSpeechSynthesizer.initWithVoice:
NSTextFieldCell.initImageCell:
NSTextListElement.initWithAttributedString:
NSTextViewportLayoutController.renderingSurfaceForKey:
NSWindow.initWithWindowRef:
NSUnarchiver.objectZone
NSUnarchiver.setObjectZone:
Expand All @@ -170,9 +169,10 @@ unavailable: 66
NSBundle.setPreservationPriority:forTags:
NSCalendarDate.initWithString:
NSCalendarDate.initWithString:calendarFormat:
NSCalendarDate.initWithString:calendarFormat:locale:
...

skipped selector: 49
skipped selector: 45
NSCollectionViewCompositionalLayout.new
NSCollectionLayoutSection.new
NSCollectionLayoutItem.new
Expand All @@ -195,12 +195,8 @@ skipped selector: 49
NSTextRange.new
NSTextSelectionNavigation.new
NSTextViewportLayoutController.new
NSViewCornerConfiguration.new
NSViewCornerRadii.new
NSViewCornerRadius.new
NSViewLayoutRegion.new
NSBundle.load
NSError.new
NSKeyValueSharedObserversSnapshot.new
NSKeyValueSharedObservers.new
NSLocalizedNumberFormatRule.new
Expand All @@ -213,6 +209,10 @@ skipped selector: 49
NSURLSessionDownloadTask.new
NSURLSessionStreamTask.new
NSURLSessionWebSocketMessage.new
NSURLSessionWebSocketTask.new
NSURLSessionConfiguration.new
NSURLSessionTaskTransactionMetrics.new
NSURLSessionTaskMetrics.new
...

unmapped pointer: 11
Expand Down
14 changes: 0 additions & 14 deletions include/generated/affine_transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace cocoon

/**
* @brief C++ handle for the Objective-C class `NSAffineTransform` (Foundation).
* @details A graphics coordinate transformation. In Swift, this object bridges to ''AffineTransform''; use ''NSAffineTransform'' when you need reference semantics or other Foundation-specific behavior. A transformation specifies how points in one coordinate system are transformed to points in another coordinate system. An affine transformation is a special type of transformation that preserves parallel lines in a path but does not necessarily preserve lengths or angles. Scaling, rotation, and translation are the most commonly used manipulations supported by affine transforms, but shearing is also possible. > Note: > In OS X 10.3 and earlier the ''NSAffineTransform'' class was declared and implemented entirely in the Application Kit framework. As of macOS 10.4 the ''NSAffineTransform'' class has been split across the Foundation and Application Kit frameworks. Methods for applying affine transformations to the current graphics context and a method for applying an affine transformation to an \<doc://com.apple.documentation/documentation/appkit/nsbezierpath> object are described in NSAffineTransform Additions Reference in the Application Kit. > Important: > The Swift overlay to the Foundation framework provides the ''AffineTransform'' structure, which bridges to the ''NSAffineTransform'' class. For more information about value types, see \<doc://com.apple.documentation/documentation/swift/working-with-foundation-types>.
* Handles are cheap, copyable wrappers around a retained native object: copies refer to the same underlying instance.
*
* @par Example
Expand Down Expand Up @@ -44,7 +43,6 @@ namespace cocoon
explicit AffineTransform(Adopt adopt);
/**
* @brief Calls `-[NSAffineTransform appendTransform:]`.
* @details Appends the specified matrix to the receiver's matrix. This method multiplies the receiver's matrix by the matrix in 'transform' and replaces the receiver's matrix with the results. This type of operation is the same as applying the transformations in the receiver followed by the transformations in 'transform'. - Parameter transform: The matrix to append to the receiver.
* @param transform Argument converted to the Objective-C parameter of the same role.
*/
void append_transform(const AffineTransform& transform) const;
Expand All @@ -54,36 +52,30 @@ namespace cocoon
void concat() const;
/**
* @brief Calls `-[NSAffineTransform invert]`.
* @details Replaces the receiver's matrix with its inverse matrix. Inverse matrices are useful for undoing the effects of a matrix. If a previous point (x,y) was transformed to (x',y'), inverting the matrix and applying it to point (x',y') yields the point (x,y). You can also use inverse matrices in conjunction with the 'concat()' method to remove the effects of concatenating the matrix to the current transformation matrix of the current graphic context.
*/
void invert() const;
/**
* @brief Calls `-[NSAffineTransform prependTransform:]`.
* @details Prepends the specified matrix to the receiver's matrix. This method multiplies the matrix in 'transform' by the receiver's matrix and replaces the receiver's matrix with the result. This type of operation is the same as applying the transformations in 'transform' followed by the transformations in the receiver. - Parameter transform: The matrix to prepend to the receiver.
* @param transform Argument converted to the Objective-C parameter of the same role.
*/
void prepend_transform(const AffineTransform& transform) const;
/**
* @brief Calls `-[NSAffineTransform rotateByDegrees:]`.
* @details Applies a rotation factor (measured in degrees) to the receiver's transformation matrix. After invoking this method, applying the receiver's matrix turns the axes counterclockwise about the current origin by 'angle' degrees, in addition to performing all previous transformations. - Parameter angle: The rotation angle, measured in degrees.
* @param angle Argument converted to the Objective-C parameter of the same role.
*/
void rotate_by_degrees(double angle) const;
/**
* @brief Calls `-[NSAffineTransform rotateByRadians:]`.
* @details Applies a rotation factor (measured in radians) to the receiver's transformation matrix. After invoking this method, applying the receiver's matrix turns the axes counterclockwise about the current origin by 'angle' radians, in addition to performing all previous transformations. - Parameter angle: The rotation angle, measured in radians.
* @param angle Argument converted to the Objective-C parameter of the same role.
*/
void rotate_by_radians(double angle) const;
/**
* @brief Calls `-[NSAffineTransform scaleBy:]`.
* @details Applies the specified scaling factor along both x and y axes to the receiver's transformation matrix. After invoking this method, applying the receiver's matrix modifies the unit lengths along the current x and y axes by a factor of 'scale', in addition to performing all previous transformations. - Parameter scale: The scaling factor to apply to both axes. Specifying a negative value has the effect of inverting the direction of the axes in addition to scaling them. A scaling factor of 1.0 scales the content to exactly the same size.
* @param scale Argument converted to the Objective-C parameter of the same role.
*/
void scale_by(double scale) const;
/**
* @brief Calls `-[NSAffineTransform scaleXBy:yBy:]`.
* @details Applies scaling factors to each axis of the receiver's transformation matrix. After invoking this method, applying the receiver's matrix modifies the unit length on the x axis by a factor of 'scaleX' and the y axis by a factor of 'scaleY', in addition to performing all previous transformations. A value of 1.0 for either axis scales the content on that axis to the same size. - Parameter scaleX: The scaling factor to apply to the x axis. - Parameter scaleY: The scaling factor to apply to the y axis.
* @param scale_x Argument converted to the Objective-C parameter of the same role.
* @param scale_y Argument converted to the Objective-C parameter of the same role.
*/
Expand All @@ -94,7 +86,6 @@ namespace cocoon
void set() const;
/**
* @brief Calls `+[NSAffineTransform transform]`.
* @details Creates a new affine transform initialized to the identity matrix. - Returns: A new identity transform object. This matrix transforms any point to the same point.
* @return The converted Objective-C result.
*/
static AffineTransform transform();
Expand All @@ -106,34 +97,29 @@ namespace cocoon
BezierPath transform_bezier_path(const BezierPath& path) const;
/**
* @brief Calls `-[NSAffineTransform transformPoint:]`.
* @details Applies the receiver's transform to the specified point and returns the result. - Parameter aPoint: The point in the current coordinate system to which you want to apply the matrix. - Returns: The resulting point after applying the receiver's transformations.
* @param a_point Argument converted to the Objective-C parameter of the same role.
* @return The converted Objective-C result.
*/
Point transform_point(const Point& a_point) const;
/**
* @brief Calls `-[NSAffineTransform transformSize:]`.
* @details Applies the receiver's transform to the specified size and returns the results. This method applies the current rotation and scaling factors to 'aSize'; it does not apply translation factors. You can think of this method as transforming a vector whose origin is (0, 0) and whose end point is specified by the value in 'aSize'. After the rotation and scaling factors are applied, this method effectively returns the end point of the new vector. This method is useful for transforming delta or distance values when you need to take scaling and rotation factors into account. - Parameter aSize: The size data to which you want to apply the matrix. - Returns: The resulting size after applying the receiver's transformations.
* @param a_size Argument converted to the Objective-C parameter of the same role.
* @return The converted Objective-C result.
*/
Size transform_size(const Size& a_size) const;
/**
* @brief Calls `-[NSAffineTransform translateXBy:yBy:]`.
* @details Applies the specified translation factors to the receiver's transformation matrix. Subsequent transformations cause coordinates to be shifted by 'deltaX' units along the x axis and by 'deltaY' units along the y axis. Translation factors do not affect 'NSSize' values, which specify a differential between points. - Parameter deltaX: The number of units to move along the x axis. - Parameter deltaY: The number of units to move along the y axis.
* @param delta_x Argument converted to the Objective-C parameter of the same role.
* @param delta_y Argument converted to the Objective-C parameter of the same role.
*/
void translate_x_by(double delta_x, double delta_y) const;
/**
* @brief Returns the `transformStruct` property of `NSAffineTransform`.
* @details The matrix coefficients stored as the transformation matrix. The ''NSAffineTransformStruct'' structure is an alternate representation of a transformation matrix that can be used to specify matrix values directly. The six-element structure is of the form '{m11, m12, m21, m22, tX, tY}'.
* @return The converted Objective-C result.
*/
AffineTransformStruct transform_struct() const;
/**
* @brief Sets the `transformStruct` property of `NSAffineTransform`.
* @details The matrix coefficients stored as the transformation matrix. The ''NSAffineTransformStruct'' structure is an alternate representation of a transformation matrix that can be used to specify matrix values directly. The six-element structure is of the form '{m11, m12, m21, m22, tX, tY}'.
* @param value Argument converted to the Objective-C parameter of the same role.
*/
void set_transform_struct(const AffineTransformStruct& value) const;
Expand Down
2 changes: 1 addition & 1 deletion include/generated/alert.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace cocoon
explicit Alert(Adopt adopt);
/**
* @brief Calls `-[NSAlert addButtonWithTitle:]`.
* @details Adds a button with a given title to the alert. Buttons should be added from most-to-least prominent. The exact visual arrangement of the buttons is determined by 'NSAlert' internally. In general, they are arranged from trailing-to-leading edge when laid out horizontally, and top-to-bottom when laid out vertically, with some exceptions for buttons like “Cancel”. The first three buttons are identified by the order in which they are added (not the order in which they may appear visually) as 'NSAlertFirstButtonReturn', 'NSAlertSecondButtonReturn', 'NSAlertThirdButtonReturn' in the return-code parameter. Subsequent buttons are identified as 'NSAlertThirdButtonReturn' + n, where n is an integer. By default, the first button has a key equivalent of Return, any button with a title of “Cancel” has a key equivalent of Escape, and any button with the title “Don’t Save” has a key equivalent of Command-D (but only if it’s not the first button). You can also assign different key equivalents for the buttons using the 'keyEquivalent' method of the 'NSButton' class. You can use the 'tag' property of the 'NSButton' class to set the alert presentation’s return-code. Alert button properties that are valid to customize are: - 'keyEquivalent' - 'keyEquivalentModifierMask' - 'tag' - 'hasDestructiveAction' - 'enabled' - 'title' Other button properties are not supported in alert contexts. The framework reserves the use of the button’s 'target' and 'action'. - Parameter title: Title of the button to add to the alert. - Returns: The button that was added to the alert.
* @details Adds a button with a given title to the alert. Buttons should be added from most-to-least prominent. The exact visual arrangement of the buttons is determined by 'NSAlert' internally. In general, they are arranged from trailing-to-leading edge when laid out horizontally, and top-to-bottom when laid out vertically, with some exceptions for buttons like “Cancel”. The first three buttons are identified by the order in which they are added (not the order in which they may appear visually) as 'NSAlertFirstButtonReturn', 'NSAlertSecondButtonReturn', 'NSAlertThirdButtonReturn' in the return-code parameter. Subsequent buttons are identified as 'NSAlertThirdButtonReturn' + n, where n is an integer. By default, the first button has a key equivalent of Return, any button with a title of “Cancel” has a key equivalent of Escape, and any button with the title “Don’t Save” has a key equivalent of Command-D (but only if it’s not the first button). You can also assign different key equivalents for the buttons using the 'keyEquivalent' method of the 'NSButton' class. In addition, you can use the 'tag' property of the 'NSButton' class to set the alert presentation’s return-code. The framework reserves the use of the button’s 'target' and 'action'. - Parameter title: Title of the button to add to the alert. - Returns: The button that was added to the alert.
* @param title Argument converted to the Objective-C parameter of the same role.
* @return The converted Objective-C result.
*/
Expand Down
Loading